From ae5ed37be23490c8cbb2c15733935f822ef6b703 Mon Sep 17 00:00:00 2001 From: Jason Feng Date: Fri, 7 Oct 2022 11:32:26 -0400 Subject: [PATCH] Add OpenJ9PropsExt properties for serviceability_jvmti_j9 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 --- closed/test/jtreg-ext/requires/OpenJ9PropsExt.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/closed/test/jtreg-ext/requires/OpenJ9PropsExt.java b/closed/test/jtreg-ext/requires/OpenJ9PropsExt.java index 9904ba963f7..6c5cb577643 100644 --- a/closed/test/jtreg-ext/requires/OpenJ9PropsExt.java +++ b/closed/test/jtreg-ext/requires/OpenJ9PropsExt.java @@ -37,8 +37,10 @@ public Map call() { Map 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"); @@ -49,6 +51,7 @@ public Map 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();