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

Unified Diff: runtime/vm/heap.h

Issue 1703383002: - Do not repeatedly allocate and release Monitor objects. (Closed) Base URL: git@github.com:dart-lang/sdk.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
« no previous file with comments | « runtime/vm/gc_marker.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.h
diff --git a/runtime/vm/heap.h b/runtime/vm/heap.h
index cfc1b549d3e6d9b91e81db6ff94375ff741654bf..f116af55f56e99ad6689d0d882638ab9561809d9 100644
--- a/runtime/vm/heap.h
+++ b/runtime/vm/heap.h
@@ -244,6 +244,9 @@ class Heap {
Isolate* isolate() const { return isolate_; }
+ Monitor* barrier() const { return barrier_; }
+ Monitor* barrier_done() const { return barrier_done_; }
+
bool ShouldPretenure(intptr_t class_id) const;
void SetupExternalPage(void* pointer, uword size, bool is_executable) {
@@ -329,6 +332,8 @@ class Heap {
void GetMergedAddressRange(uword* start, uword* end) const;
Isolate* isolate_;
+ Monitor* barrier_;
+ Monitor* barrier_done_;
// The different spaces used for allocation.
Scavenger new_space_;
« no previous file with comments | « runtime/vm/gc_marker.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698