summaryrefslogtreecommitdiff
path: root/deps/v8/test/unittests/heap/local-heap-unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/unittests/heap/local-heap-unittest.cc')
-rw-r--r--deps/v8/test/unittests/heap/local-heap-unittest.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/deps/v8/test/unittests/heap/local-heap-unittest.cc b/deps/v8/test/unittests/heap/local-heap-unittest.cc
index 919578f2fb..92b5eef8dc 100644
--- a/deps/v8/test/unittests/heap/local-heap-unittest.cc
+++ b/deps/v8/test/unittests/heap/local-heap-unittest.cc
@@ -170,8 +170,11 @@ TEST_F(LocalHeapTest, GCEpilogue) {
CHECK(thread2->Start());
epilogue[1].WaitUntilStarted();
epilogue[2].WaitUntilStarted();
- heap->PreciseCollectAllGarbage(Heap::kNoGCFlags,
- GarbageCollectionReason::kTesting);
+ {
+ UnparkedScope scope(&lh);
+ heap->PreciseCollectAllGarbage(Heap::kNoGCFlags,
+ GarbageCollectionReason::kTesting);
+ }
epilogue[1].RequestStop();
epilogue[2].RequestStop();
thread1->Join();