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

Unified Diff: third_party/WebKit/Source/platform/heap/TraceTraits.h

Issue 2304023003: StackFrameDepth should be managed per ThreadHeap (Closed)
Patch Set: fix Created 4 years, 3 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
Index: third_party/WebKit/Source/platform/heap/TraceTraits.h
diff --git a/third_party/WebKit/Source/platform/heap/TraceTraits.h b/third_party/WebKit/Source/platform/heap/TraceTraits.h
index 5bae4425f4752d695cf3d0e2f8f3d91ccd1325b1..a9b6a64e403eb699cbf8f8f24554a777deffe03d 100644
--- a/third_party/WebKit/Source/platform/heap/TraceTraits.h
+++ b/third_party/WebKit/Source/platform/heap/TraceTraits.h
@@ -70,8 +70,8 @@ public:
// but test and appropriately handle them should they occur
// in release builds.
//
- ASSERT(StackFrameDepth::isAcceptableStackUse());
- if (LIKELY(StackFrameDepth::isSafeToRecurse())) {
+ DCHECK(visitor->isAcceptableStackUse());
+ if (LIKELY(visitor->isAcceptableStackUse())) {
keishi 2016/09/06 12:54:22 I saw a 30% regression with oilpan_gc_times.blink_
haraken 2016/09/06 13:03:11 Hmm? isAcceptableStackUse is just calling isSafeTo
keishi 2016/09/07 05:38:21 I guess the problem with this PS is that it isn't
keishi 2016/09/07 05:39:26 I guess the problem with this CL is that it isn't
if (visitor->ensureMarked(t)) {
TraceTrait<T>::trace(visitor, const_cast<T*>(t));
}

Powered by Google App Engine
This is Rietveld 408576698