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

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

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/HeapAllocator.h
diff --git a/third_party/WebKit/Source/platform/heap/HeapAllocator.h b/third_party/WebKit/Source/platform/heap/HeapAllocator.h
index f52965b22cff122a5d648bfe3bbb2e57b75313e6..134422a3e04e5dbb887003a85baa8170f025c48b 100644
--- a/third_party/WebKit/Source/platform/heap/HeapAllocator.h
+++ b/third_party/WebKit/Source/platform/heap/HeapAllocator.h
@@ -151,6 +151,10 @@ class PLATFORM_EXPORT HeapAllocator {
return ThreadState::Current()->IsAllocationAllowed();
}
+ static bool IsBackingReallocationAllowed() {
kouhei (in TOK) 2017/04/12 06:14:01 Can we make it clear that this is inside prefinali
haraken 2017/04/12 06:44:34 Maybe we can rename this to IsObjectRessurectionFo
keishi 2017/04/12 09:43:53 Done.
+ return ThreadState::Current()->IsBackingReallocationAllowed();
+ }
+
template <typename T>
static bool IsHeapObjectAlive(T* object) {
return ThreadHeap::IsHeapObjectAlive(object);

Powered by Google App Engine
This is Rietveld 408576698