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

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

Issue 927513003: Revert "Oilpan: Add more asserts to Heap::collectGarbage" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/Heap.cpp
diff --git a/Source/platform/heap/Heap.cpp b/Source/platform/heap/Heap.cpp
index f12a9ba73e03f3b9832b0905c7c82afe196fa0b7..89a7ffa5d3f73507760ac7c63b618f53a7a76407 100644
--- a/Source/platform/heap/Heap.cpp
+++ b/Source/platform/heap/Heap.cpp
@@ -2348,9 +2348,6 @@ void Heap::postGC(ThreadState::GCType gcType)
void Heap::collectGarbage(ThreadState::StackState stackState, ThreadState::GCType gcType)
{
- ASSERT(!ThreadState::current()->isSweepingInProgress());
- ASSERT(!ThreadState::current()->sweepForbidden());
-
ThreadState* state = ThreadState::current();
ThreadState::GCState originalGCState = state->gcState();
state->setGCState(ThreadState::StoppingOtherThreads);
@@ -2432,9 +2429,6 @@ void Heap::collectGarbage(ThreadState::StackState stackState, ThreadState::GCTyp
void Heap::collectGarbageForTerminatingThread(ThreadState* state)
{
- ASSERT(!ThreadState::current()->isSweepingInProgress());
- ASSERT(!ThreadState::current()->sweepForbidden());
-
// We explicitly do not enter a safepoint while doing thread specific
// garbage collection since we don't want to allow a global GC at the
// same time as a thread local GC.
« 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