Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Unified Diff: Source/platform/heap/ThreadState.h

Issue 1160143002: Oilpan: Always enter a GCScope when we run a GC (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/heap/Heap.cpp ('k') | Source/web/WebHeap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/ThreadState.h
diff --git a/Source/platform/heap/ThreadState.h b/Source/platform/heap/ThreadState.h
index f8af346631fa121da15e5d4ba5d5858c4069318a..5d93b22443d6fdd4070326c53671b7770a675050 100644
--- a/Source/platform/heap/ThreadState.h
+++ b/Source/platform/heap/ThreadState.h
@@ -187,6 +187,7 @@ public:
enum GCType {
GCWithSweep, // Sweeping is completed in Heap::collectGarbage().
GCWithoutSweep, // Lazy sweeping is scheduled.
+ ThreadTerminationGC, // A thread-local GC scheduled before the thread shutdown.
};
// See setGCState() for possible state transitions.
@@ -393,7 +394,7 @@ public:
void safePoint(StackState);
// Mark current thread as running inside safepoint.
- void enterSafePointWithPointers(void* scopeMarker) { enterSafePoint(HeapPointersOnStack, scopeMarker); }
+ void enterSafePoint(StackState, void*);
void leaveSafePoint(SafePointAwareMutexLocker* = nullptr);
bool isAtSafePoint() const { return m_atSafePoint; }
@@ -622,7 +623,6 @@ private:
ThreadState();
~ThreadState();
- void enterSafePoint(StackState, void*);
NO_SANITIZE_ADDRESS void copyStackUntilSafePointScope();
void clearSafePointScopeMarker()
{
« no previous file with comments | « Source/platform/heap/Heap.cpp ('k') | Source/web/WebHeap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698