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

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

Issue 351253002: [oilpan]: Don't sweep while in safepoint. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/ThreadState.cpp
diff --git a/Source/platform/heap/ThreadState.cpp b/Source/platform/heap/ThreadState.cpp
index af776ba616d92b59d2873b8aa605cf9062bb9aea..40de3661665d8ca1f1155228c56ea75b6adf3cfc 100644
--- a/Source/platform/heap/ThreadState.cpp
+++ b/Source/platform/heap/ThreadState.cpp
@@ -198,7 +198,7 @@ public:
if (locker)
locker->reset();
pushAllRegisters(this, state, parkAfterPushRegisters);
- state->performPendingSweep();
+ state->setSweepRequested();
haraken 2014/06/26 13:52:11 Do we need to call this? I guess setSweepRequeste
Mads Ager (chromium) 2014/06/26 13:52:40 I don't think we need to actually set sweep reques
wibling-chromium 2014/06/27 10:07:48 No, that is actually wrong. We risk sweeping when
wibling-chromium 2014/06/27 10:07:48 Done.
}
}
@@ -758,6 +758,7 @@ void ThreadState::safePoint(StackState stackState)
s_safePointBarrier->checkAndPark(this);
m_atSafePoint = false;
m_stackState = HeapPointersOnStack;
+ performPendingSweep();
}
#ifdef ADDRESS_SANITIZER
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698