Chromium Code Reviews| Index: third_party/WebKit/Source/platform/heap/ThreadState.cpp |
| diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.cpp b/third_party/WebKit/Source/platform/heap/ThreadState.cpp |
| index a656dfecef2e02a9c2983e0263dc42c4602ed4d9..6034024373f964b8d177132e22129f6379ebdc05 100644 |
| --- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp |
| +++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp |
| @@ -233,6 +233,8 @@ void ThreadState::runTerminationGC() { |
| // Set the terminate flag on all heap pages of this thread. This is used to |
| // ensure we don't trace pages on other threads that are not part of the |
| // thread local GC. |
| + // TODO(haraken): Remove this. This is not needed once we remove a thread- |
|
sof
2017/02/08 12:06:19
oh, i suppose that is now possible with orphaned p
|
| + // local termination GC. |
| prepareForThreadStateTermination(); |
| ProcessHeap::crossThreadPersistentRegion().prepareForThreadStateTermination( |
| @@ -244,7 +246,8 @@ void ThreadState::runTerminationGC() { |
| int currentCount = getPersistentRegion()->numberOfPersistents(); |
| ASSERT(currentCount >= 0); |
| while (currentCount != oldCount) { |
| - collectGarbageForTerminatingThread(); |
| + collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, |
| + BlinkGC::ThreadTerminationGC); |
| // Release the thread-local static persistents that were |
| // instantiated while running the termination GC. |
| releaseStaticPersistentNodes(); |