Skip to content

Commit 511e726

Browse files
authored
Add features for genimmix and stickyimmix (#228)
We currently allow build with a fixed plan to work with the current performance CI. mmtk/mmtk-core#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.
1 parent 48a8277 commit 511e726

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

mmtk/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,5 @@ gencopy = []
6262
marksweep = []
6363
pageprotect = []
6464
immix = []
65+
genimmix = []
66+
stickyimmix = []

mmtk/src/api.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ pub extern "C" fn openjdk_gc_init(calls: *const OpenJDK_Upcalls) {
7272
Some(PlanSelector::PageProtect)
7373
} else if cfg!(feature = "immix") {
7474
Some(PlanSelector::Immix)
75+
} else if cfg!(feature = "genimmix") {
76+
Some(PlanSelector::GenImmix)
77+
} else if cfg!(feature = "stickyimmix") {
78+
Some(PlanSelector::StickyImmix)
7579
} else {
7680
None
7781
};

0 commit comments

Comments
 (0)