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

Unified Diff: runtime/vm/class_table.cc

Issue 503363005: - Add and enable concurrent sweeper. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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/class_table.cc
===================================================================
--- runtime/vm/class_table.cc (revision 39573)
+++ runtime/vm/class_table.cc (working copy)
@@ -48,6 +48,19 @@
}
+ClassTable::ClassTable(ClassTable* original)
+ : top_(original->top_),
+ capacity_(original->top_),
+ table_(reinterpret_cast<RawClass**>(
+ calloc(original->top_, sizeof(RawClass*)))),
+ class_heap_stats_table_(NULL),
+ predefined_class_heap_stats_table_(NULL) {
+ for (intptr_t i = 1; i < top_; i++) {
+ table_[i] = original->At(i);
+ }
+}
+
+
ClassTable::~ClassTable() {
free(table_);
free(predefined_class_heap_stats_table_);
« no previous file with comments | « runtime/vm/class_table.h ('k') | runtime/vm/gc_sweeper.h » ('j') | runtime/vm/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698