diff --git a/test/hotspot/jtreg/runtime/cds/appcds/aotCache/JcmdOnTrainingProcess.java b/test/hotspot/jtreg/runtime/cds/appcds/aotCache/JcmdOnTrainingProcess.java index dea3171b08d..f0342d85773 100644 --- a/test/hotspot/jtreg/runtime/cds/appcds/aotCache/JcmdOnTrainingProcess.java +++ b/test/hotspot/jtreg/runtime/cds/appcds/aotCache/JcmdOnTrainingProcess.java @@ -38,11 +38,12 @@ * @run driver JcmdOnTrainingProcess */ +import java.io.IOException; + import jdk.test.lib.JDKToolLauncher; -import jdk.test.lib.process.ProcessTools; import jdk.test.lib.apps.LingeredApp; import jdk.test.lib.process.OutputAnalyzer; -import java.io.IOException; +import jdk.test.lib.process.ProcessTools; public class JcmdOnTrainingProcess { public static void main(String[] args) throws Exception { @@ -64,7 +65,8 @@ public class JcmdOnTrainingProcess { LingeredApp.startApp(theApp, "-cp", "LingeredApp.jar", "-XX:AOTMode=record", - "-XX:AOTConfiguration=LingeredApp.aotconfig"); + "-XX:AOTConfiguration=LingeredApp.aotconfig", + "-XX:NativeMemoryTracking=summary"); long pid = theApp.getPid(); JDKToolLauncher jcmd = JDKToolLauncher.createUsingTestJDK("jcmd"); @@ -79,8 +81,8 @@ public class JcmdOnTrainingProcess { return output; } catch (Exception e) { throw new RuntimeException("Test failed: " + e); - } } - catch (IOException e) { + } + } catch (IOException e) { throw new RuntimeException("Test failed: " + e); } finally {