From 511e72629023c12a23437dc666c4c21ba7a2a456 Mon Sep 17 00:00:00 2001 From: Yi Lin Date: Tue, 15 Aug 2023 16:26:32 +1200 Subject: [PATCH] Add features for genimmix and stickyimmix (#228) We currently allow build with a fixed plan to work with the current performance CI. https://github.com/mmtk/mmtk-core/pull/901 attempts to add more plans to our performance CI. This PR adds some missing features for genimmix and stickyimmix. We do not need those plans once we move to the new `running-ng` scripts. --- mmtk/Cargo.toml | 2 ++ mmtk/src/api.rs | 4 ++++ 2 files changed, 6 insertions(+) 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 };