diff options
Diffstat (limited to 'runtime/runtime.cc')
| -rw-r--r-- | runtime/runtime.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc index a1ea3cf5bf..0e382ff65a 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -697,6 +697,8 @@ bool Runtime::Init(const RuntimeOptions& raw_options, bool ignore_unrecognized) options->image_isa_, options->collector_type_, options->background_collector_type_, + options->large_object_space_type_, + options->large_object_threshold_, options->parallel_gc_threads_, options->conc_gc_threads_, options->low_memory_mode_, @@ -996,14 +998,14 @@ void Runtime::DumpLockHolders(std::ostream& os) { } } -void Runtime::SetStatsEnabled(bool new_state) { +void Runtime::SetStatsEnabled(bool new_state, bool suspended) { if (new_state == true) { GetStats()->Clear(~0); // TODO: wouldn't it make more sense to clear _all_ threads' stats? Thread::Current()->GetStats()->Clear(~0); - GetInstrumentation()->InstrumentQuickAllocEntryPoints(); + GetInstrumentation()->InstrumentQuickAllocEntryPoints(suspended); } else { - GetInstrumentation()->UninstrumentQuickAllocEntryPoints(); + GetInstrumentation()->UninstrumentQuickAllocEntryPoints(suspended); } stats_enabled_ = new_state; } |