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

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

Issue 1477023003: Refactor the Heap into ThreadHeap to prepare for per thread heaps Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 4e3c8f45377b52bc8e28b183486132f72ba49553..d9bbd15f5f0af3a99b71aae836244b0084bfff1a 100644
--- a/third_party/WebKit/Source/platform/heap/SafePoint.h
+++ b/third_party/WebKit/Source/platform/heap/SafePoint.h
@@ -93,7 +93,7 @@ class SafePointBarrier final {
USING_FAST_MALLOC(SafePointBarrier);
WTF_MAKE_NONCOPYABLE(SafePointBarrier);
public:
- SafePointBarrier();
+ explicit SafePointBarrier(Heap*);
~SafePointBarrier();
// Request other attached threads that are not at safe points to park
@@ -128,6 +128,7 @@ private:
Mutex m_mutex;
ThreadCondition m_parked;
ThreadCondition m_resume;
+ Heap* m_heap;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698