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

Unified Diff: third_party/WebKit/Source/platform/heap/SafePoint.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/SafePoint.h
diff --git a/third_party/WebKit/Source/platform/heap/SafePoint.h b/third_party/WebKit/Source/platform/heap/SafePoint.h
index 0b96633b51b4b40dcd08a8fa33228eb410f5901a..4e3c8f45377b52bc8e28b183486132f72ba49553 100644
--- a/third_party/WebKit/Source/platform/heap/SafePoint.h
+++ b/third_party/WebKit/Source/platform/heap/SafePoint.h
@@ -11,6 +11,7 @@
namespace blink {
class SafePointScope final {
+ STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(SafePointScope);
public:
explicit SafePointScope(BlinkGC::StackState stackState, ThreadState* state = ThreadState::current())
@@ -38,6 +39,7 @@ private:
// leaveSafePoint method cannot complete without blocking, see
// SafePointBarrier::checkAndPark.
class SafePointAwareMutexLocker final {
+ STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(SafePointAwareMutexLocker);
public:
explicit SafePointAwareMutexLocker(MutexBase& mutex, BlinkGC::StackState stackState = BlinkGC::HeapPointersOnStack)
@@ -88,6 +90,7 @@ private:
};
class SafePointBarrier final {
+ USING_FAST_MALLOC(SafePointBarrier);
WTF_MAKE_NONCOPYABLE(SafePointBarrier);
public:
SafePointBarrier();

Powered by Google App Engine
This is Rietveld 408576698