Skip to content

Commit

Permalink
Count finalizer time toward the mature GC
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Phoenix committed Apr 7, 2010
1 parent 0d489c6 commit 4737d1a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion vm/vm.cpp
Expand Up @@ -360,7 +360,18 @@ namespace rubinius {

}

om->run_finalizers(this);
// Count the finalizers toward running the mature gc. Not great,
// but better than not seeing the time at all.
#ifdef RBX_PROFILER
if(unlikely(shared.profiling())) {
profiler::MethodEntry method(this, profiler::kMatureGC);
om->run_finalizers(this);
} else {
om->run_finalizers(this);
}
#else
om->run_finalizers(this);
#endif
}

void VM::set_const(const char* name, Object* val) {
Expand Down

0 comments on commit 4737d1a

Please sign in to comment.