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

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

Issue 2815663002: Disable collection backing reallocation during pre finalizer (Closed)
Patch Set: fix Created 3 years, 8 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/ThreadState.cpp
diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.cpp b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
index f090ee923ecfa4f9044f98d399921767c794ac6c..8eab252005c7e79bf7d4b77f94608cbc455a0d9d 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
@@ -110,6 +110,7 @@ ThreadState::ThreadState()
gc_forbidden_count_(0),
mixins_being_constructed_count_(0),
accumulated_sweeping_time_(0),
+ no_backing_reallocation_(false),
vector_backing_arena_index_(BlinkGC::kVector1ArenaIndex),
current_arena_ages_(0),
gc_mixin_marker_(nullptr),
@@ -1267,6 +1268,7 @@ void ThreadState::InvokePreFinalizers() {
TRACE_EVENT0("blink_gc", "ThreadState::invokePreFinalizers");
SweepForbiddenScope sweep_forbidden(this);
+ NoBackingReallocationScope no_backing_reallocation(this);
kouhei (in TOK) 2017/04/12 06:14:01 How about just using platform/wtf/AutoReset.h?
haraken 2017/04/12 06:44:34 I'd prefer using a scope since ThreadState is alre
keishi 2017/04/12 09:43:53 Weak processing is already in the NoAllocationScop
ScriptForbiddenIfMainThreadScope script_forbidden;
double start_time = WTF::CurrentTimeMS();

Powered by Google App Engine
This is Rietveld 408576698