[vm/tsan] Fix reported tsan race in message handler test

Closes https://github.com/dart-lang/sdk/issues/42097

Change-Id: I3fb89e18936b3ec95def268cd270ada889e0e9b5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149322
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
This commit is contained in:
Martin Kustermann 2020-05-28 17:25:58 +00:00 committed by commit-bot@chromium.org
parent 039581df15
commit 4c83df8741

View file

@ -348,8 +348,8 @@ static void SendMessages(uword param) {
}
VM_UNIT_TEST_CASE(MessageHandler_Run) {
ThreadPool pool;
TestMessageHandler handler;
ThreadPool pool;
MessageHandlerTestPeer handler_peer(&handler);
EXPECT(!handler.HasLivePorts());