Skip to content

Commit

Permalink
Use DynamicHeapSize between 1MiB and 500MiB
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Oct 16, 2024
1 parent 820aa46 commit 671abc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gc/mmtk/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ pub extern "C" fn mmtk_builder_default() -> *mut MMTKBuilder {
let plan_selector = "MarkSweep".parse::<PlanSelector>().unwrap();
builder.options.plan.set(plan_selector);

// 100MiB
builder.options.gc_trigger.set(GCTriggerSelector::FixedHeapSize(100 << 20));
// Between 1MiB and 500MiB
builder.options.gc_trigger.set(GCTriggerSelector::DynamicHeapSize(1 << 20, 500 << 20));

Box::into_raw(Box::new(builder))
}
Expand Down

0 comments on commit 671abc8

Please sign in to comment.