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

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

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/PersistentNode.h
diff --git a/third_party/WebKit/Source/platform/heap/PersistentNode.h b/third_party/WebKit/Source/platform/heap/PersistentNode.h
index f6ebddbfeca63fea2fd166576e6028f3a785378b..5fb806f8785784d323f997af1a5ba8c6a76a9b93 100644
--- a/third_party/WebKit/Source/platform/heap/PersistentNode.h
+++ b/third_party/WebKit/Source/platform/heap/PersistentNode.h
@@ -7,6 +7,7 @@
#include "platform/PlatformExport.h"
#include "platform/heap/ThreadState.h"
+#include "wtf/Allocator.h"
#include "wtf/Assertions.h"
#include "wtf/MainThread.h"
#include "wtf/ThreadingPrimitives.h"
@@ -16,6 +17,7 @@ namespace blink {
class CrossThreadPersistentRegion;
class PersistentNode final {
+ DISALLOW_NEW();
public:
PersistentNode()
: m_self(nullptr)
@@ -96,6 +98,7 @@ private:
};
struct PersistentNodeSlots final {
+ USING_FAST_MALLOC(PersistentNodeSlots);
private:
static const int slotCount = 256;
PersistentNodeSlots* m_next;
@@ -109,6 +112,7 @@ private:
// a predefined number of PersistentNodes. You can call allocatePersistentNode/
// freePersistentNode to allocate/free a PersistentNode on the region.
class PLATFORM_EXPORT PersistentRegion final {
+ USING_FAST_MALLOC(PersistentRegion);
public:
PersistentRegion()
: m_freeListHead(nullptr)
@@ -159,6 +163,7 @@ private:
};
class CrossThreadPersistentRegion final {
+ USING_FAST_MALLOC(CrossThreadPersistentRegion);
public:
CrossThreadPersistentRegion() : m_persistentRegion(adoptPtr(new PersistentRegion)) { }

Powered by Google App Engine
This is Rietveld 408576698