Skip to content

Commit

Permalink
Add features for genimmix and stickyimmix (#228)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
qinsoon authored Aug 15, 2023
1 parent 48a8277 commit 511e726
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mmtk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,5 @@ gencopy = []
marksweep = []
pageprotect = []
immix = []
genimmix = []
stickyimmix = []
4 changes: 4 additions & 0 deletions mmtk/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down

0 comments on commit 511e726

Please sign in to comment.