diff --git a/mmtk/Cargo.toml b/mmtk/Cargo.toml index 196f5369..99244cd3 100644 --- a/mmtk/Cargo.toml +++ b/mmtk/Cargo.toml @@ -62,3 +62,5 @@ gencopy = [] marksweep = [] pageprotect = [] immix = [] +genimmix = [] +stickyimmix = [] diff --git a/mmtk/src/api.rs b/mmtk/src/api.rs index 402eea3a..25fb34af 100644 --- a/mmtk/src/api.rs +++ b/mmtk/src/api.rs @@ -72,6 +72,10 @@ pub extern "C" fn openjdk_gc_init(calls: *const OpenJDK_Upcalls) { Some(PlanSelector::PageProtect) } else if cfg!(feature = "immix") { Some(PlanSelector::Immix) + } else if cfg!(feature = "genimmix") { + Some(PlanSelector::GenImmix) + } else if cfg!(feature = "stickyimmix") { + Some(PlanSelector::StickyImmix) } else { None };