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

Unified Diff: runtime/vm/heap.h

Issue 18259014: Object ID Ring with tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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: runtime/vm/heap.h
diff --git a/runtime/vm/heap.h b/runtime/vm/heap.h
index 359efeae2766c7302df49f6e4123f7fa11925a25..690e621891a80b52e549abb6b8fef361af7c5188 100644
--- a/runtime/vm/heap.h
+++ b/runtime/vm/heap.h
@@ -196,6 +196,19 @@ class Heap {
return size <= kNewAllocatableSize;
}
+ void set_object_id_ring_table(RawObject** object_id_ring_table,
+ intptr_t object_id_ring_table_size) {
+ ASSERT(!gc_in_progress_);
+ object_id_ring_table_ = object_id_ring_table;
+ object_id_ring_table_size_ = object_id_ring_table_size;
+ }
+ RawObject** get_object_id_ring_table() {
+ return object_id_ring_table_;
+ }
+ intptr_t get_object_id_ring_table_size() {
+ return object_id_ring_table_size_;
+ }
+
private:
class GCStats : public ValueObject {
public:
@@ -255,6 +268,10 @@ class Heap {
// GC on the heap is in progress.
bool gc_in_progress_;
+ // Ring of objects who have a vm service id assigned to them.
+ RawObject** object_id_ring_table_;
+ intptr_t object_id_ring_table_size_;
+
friend class GCTestHelper;
DISALLOW_COPY_AND_ASSIGN(Heap);
};
« no previous file with comments | « runtime/vm/gc_marker.cc ('k') | runtime/vm/heap.cc » ('j') | runtime/vm/object_id_ring.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698