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

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

Issue 2818413002: Revert change to HeapAllocator::IsAllocationAllowed by r464359 (Closed)
Patch Set: 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
« 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: 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 1402dcd075e55f0578befe4b5bf017eb83e7e2b7..ee61d0b2f8386635ea81b725b7c6716a2a0e7273 100644
--- a/third_party/WebKit/Source/platform/heap/HeapAllocator.h
+++ b/third_party/WebKit/Source/platform/heap/HeapAllocator.h
@@ -148,8 +148,7 @@ class PLATFORM_EXPORT HeapAllocator {
static void DeleteArray(void* ptr) { NOTREACHED(); }
static bool IsAllocationAllowed() {
- return ThreadState::Current()->IsAllocationAllowed() &&
- !ThreadState::Current()->IsObjectResurrectionForbidden();
+ return ThreadState::Current()->IsAllocationAllowed();
}
static bool IsObjectResurrectionForbidden() {
« 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