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

Side by Side Diff: Source/platform/heap/MarkingVisitor.h

Issue 1162403003: Oilpan: Remove checkMarkingAllowed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MarkingVisitor_h 5 #ifndef MarkingVisitor_h
6 #define MarkingVisitor_h 6 #define MarkingVisitor_h
7 7
8 #include "platform/heap/MarkingVisitorImpl.h" 8 #include "platform/heap/MarkingVisitorImpl.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 if (Mode != ThreadLocalMarking) 183 if (Mode != ThreadLocalMarking)
184 return true; 184 return true;
185 185
186 BasePage* page = pageFromObject(objectPointer); 186 BasePage* page = pageFromObject(objectPointer);
187 ASSERT(!page->orphaned()); 187 ASSERT(!page->orphaned());
188 // When doing a thread local GC, the marker checks if 188 // When doing a thread local GC, the marker checks if
189 // the object resides in another thread's heap. If it 189 // the object resides in another thread's heap. If it
190 // does, the object should not be marked & traced. 190 // does, the object should not be marked & traced.
191 return page->terminating(); 191 return page->terminating();
192 } 192 }
193
194 #if ENABLE(ASSERT)
195 virtual void checkMarkingAllowed() override
196 {
197 ASSERT(ThreadState::current()->isInGC());
198 }
199 #endif
200 }; 193 };
201 194
202 } // namespace blink 195 } // namespace blink
203 196
204 #endif 197 #endif
OLDNEW
« no previous file with comments | « Source/platform/heap/InlinedGlobalMarkingVisitor.h ('k') | Source/platform/heap/MarkingVisitorImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698