8008454: test/runtime/NMT/PrintNMTStatistics is broken
Added @run tag so that it actually runs the test, also fixed broken command line and incorrect parsing. Also reviewed by gerard.ziemski@oracle.com Reviewed-by: mgerdin, zgu
This commit is contained in:
parent
ba67f14480
commit
c458eb3fd6
@ -27,7 +27,9 @@
|
|||||||
* @bug 8005936
|
* @bug 8005936
|
||||||
* @summary Make sure PrintNMTStatistics works on normal JVM exit
|
* @summary Make sure PrintNMTStatistics works on normal JVM exit
|
||||||
* @library /testlibrary /testlibrary/whitebox
|
* @library /testlibrary /testlibrary/whitebox
|
||||||
* @run compile PrintNMTStatistics.java
|
* @build PrintNMTStatistics
|
||||||
|
* @run main ClassFileInstaller sun.hotspot.WhiteBox
|
||||||
|
* @run main PrintNMTStatistics
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import com.oracle.java.testlibrary.*;
|
import com.oracle.java.testlibrary.*;
|
||||||
@ -52,8 +54,10 @@ public class PrintNMTStatistics {
|
|||||||
|
|
||||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
|
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
|
||||||
"-XX:+UnlockDiagnosticVMOptions",
|
"-XX:+UnlockDiagnosticVMOptions",
|
||||||
|
"-Xbootclasspath/a:.",
|
||||||
|
"-XX:+WhiteBoxAPI",
|
||||||
"-XX:NativeMemoryTracking=summary",
|
"-XX:NativeMemoryTracking=summary",
|
||||||
"+XX:+PrintNMTStatistics",
|
"-XX:+PrintNMTStatistics",
|
||||||
"PrintNMTStatistics",
|
"PrintNMTStatistics",
|
||||||
"test");
|
"test");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user