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

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

Issue 1609943003: Make platform/heap to use USING_FAST_MALLOC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed compile error Created 4 years, 11 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/Heap.cpp
diff --git a/third_party/WebKit/Source/platform/heap/Heap.cpp b/third_party/WebKit/Source/platform/heap/Heap.cpp
index 4972af8d0f2acdb66bba58274e7319c156d4f192..d519c717427faab95c758cb7b50bb68804bfa504 100644
--- a/third_party/WebKit/Source/platform/heap/Heap.cpp
+++ b/third_party/WebKit/Source/platform/heap/Heap.cpp
@@ -51,6 +51,7 @@
namespace blink {
class GCForbiddenScope final {
+ DISALLOW_NEW();
public:
explicit GCForbiddenScope(ThreadState* state)
: m_state(state)
@@ -69,6 +70,7 @@ private:
};
class GCScope final {
+ STACK_ALLOCATED();
public:
GCScope(ThreadState* state, BlinkGC::StackState stackState, BlinkGC::GCType gcType)
: m_state(state)
@@ -127,7 +129,8 @@ private:
OwnPtr<Visitor> m_visitor;
};
-class ResumeThreadScope {
+class ResumeThreadScope final {
+ STACK_ALLOCATED();
public:
explicit ResumeThreadScope(BlinkGC::GCType gcType)
: m_resumeThreads(gcType != BlinkGC::ThreadTerminationGC)
@@ -156,7 +159,7 @@ void Heap::init()
s_postMarkingCallbackStack = new CallbackStack();
s_globalWeakCallbackStack = new CallbackStack();
s_ephemeronStack = new CallbackStack();
- s_heapDoesNotContainCache = new HeapDoesNotContainCache();
+ s_heapDoesNotContainCache = HeapDoesNotContainCache::create();
s_freePagePool = new FreePagePool();
s_orphanedPagePool = new OrphanedPagePool();
s_allocatedSpace = 0;

Powered by Google App Engine
This is Rietveld 408576698