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

Unified Diff: vm/heap.cc

Issue 11722026: Do not emit pointer information for embedded singleton VM Isolate objects while generating code. Th… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 years, 12 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: vm/heap.cc
===================================================================
--- vm/heap.cc (revision 16624)
+++ vm/heap.cc (working copy)
@@ -35,7 +35,7 @@
"old gen heap size in MB,"
"e.g: --old_gen_heap_size=1024 allocates a 1024MB old gen heap");
-Heap::Heap() : read_only_(false) {
+Heap::Heap() : read_only_(false), gc_in_progress_(false) {
new_space_ = new Scavenger(this,
(FLAG_new_gen_heap_size * MB),
kNewObjectAlignmentOffset);
@@ -367,6 +367,8 @@
void Heap::RecordBeforeGC(Space space, GCReason reason) {
+ ASSERT(!gc_in_progress_);
+ gc_in_progress_ = true;
stats_.num_++;
stats_.space_ = space;
stats_.reason_ = reason;
@@ -392,6 +394,8 @@
stats_.after_.new_capacity_ = new_space_->capacity();
stats_.after_.old_used_ = old_space_->in_use();
stats_.after_.old_capacity_ = old_space_->capacity();
+ ASSERT(gc_in_progress_);
+ gc_in_progress_ = false;
}

Powered by Google App Engine
This is Rietveld 408576698