Skip to content

Commit

Permalink
Add OpenJ9PropsExt properties for serviceability_jvmti_j9
Browse files Browse the repository at this point in the history
vm.cds is set to false for
serviceability/jvmti/CanGenerateAllClassHook/CanGenerateAllClassHook.java
which is specific to hotspot sharedclass;
vm.flagless is set to true for
serviceability/jvmti/RedefineClasses/RedefineLeak.java which OpenJ9
passes;
vm.opt.final.ClassUnloading is set to false for
serviceability/jvmti/RedefineClasses/RedefinePreviousVersions.java which
looks for a hotspot specific "Class unloading: has_previous_versions =
false".

Signed-off-by: Jason Feng <fengj@ca.ibm.com>
  • Loading branch information
JasonFengJ9 committed Oct 7, 2022
1 parent 9c604b0 commit 89ec672
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions closed/test/jtreg-ext/requires/OpenJ9PropsExt.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ public Map<String, String> call() {
Map<String, String> map = new HashMap<>();
try {
map.put("vm.bits", vmBits());
map.put("vm.cds", "false");
map.put("vm.compiler2.enabled", "false");
map.put("vm.continuations", "false");
map.put("vm.flagless", "true");
map.put("vm.gc.G1", "false");
map.put("vm.gc.Parallel", "false");
map.put("vm.gc.Serial", "false");
Expand All @@ -49,6 +51,7 @@ public Map<String, String> call() {
map.put("vm.jvmti", "true");
map.put("vm.musl", "false");
map.put("vm.openj9", "true");
map.put("vm.opt.final.ClassUnloading", "false");
}
catch (Exception e) {
e.printStackTrace();
Expand Down

0 comments on commit 89ec672

Please sign in to comment.