diff --git a/test/hotspot/jtreg/runtime/os/TestTransparentHugePageUsage.java b/test/hotspot/jtreg/runtime/os/TestTransparentHugePageUsage.java index e56af001354e5..2a945fc7515c4 100644 --- a/test/hotspot/jtreg/runtime/os/TestTransparentHugePageUsage.java +++ b/test/hotspot/jtreg/runtime/os/TestTransparentHugePageUsage.java @@ -58,7 +58,7 @@ public static void main(String[] args) throws Exception { cmdLine.add("-XX:ParallelGCThreads=" + args[0]); } cmdLine.add("runtime.os.TestTransparentHugePageUsage$CatSmaps"); - ProcessBuilder builder = ProcessTools.createTestJvm(cmdLine); + ProcessBuilder builder = ProcessTools.createTestJavaProcessBuilder(cmdLine); checkUsage(new BufferedReader(new InputStreamReader(builder.start().getInputStream()))); }