mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-19 18:07:49 +00:00
8038947: HotSpotDiagnosticMXBean/CheckOrigin.java 'NewSize' should have origin 'ERGONOMIC' but had 'DEFAULT'
Reviewed-by: mchung, jbachorik
This commit is contained in:
parent
93378ad4b9
commit
ec7f5007ee
@ -58,6 +58,7 @@ public class CheckOrigin {
|
||||
|
||||
ProcessBuilder pb = ProcessTools.
|
||||
createJavaProcessBuilder(
|
||||
"-XX:+UseConcMarkSweepGC", // this will cause UseParNewGC to be FLAG_SET_ERGO
|
||||
"-XX:+PrintGCDetails",
|
||||
"-XX:Flags=" + flagsFile.getAbsolutePath(),
|
||||
"-cp", System.getProperty("test.class.path") + File.pathSeparator + getToolsJarPath(),
|
||||
@ -84,12 +85,20 @@ public class CheckOrigin {
|
||||
setOptionUsingAttach("HeapDumpPath", "/a/sample/path");
|
||||
|
||||
// check the origin field for all the options we set
|
||||
|
||||
// Not set, so should be default
|
||||
checkOrigin("ManagementServer", Origin.DEFAULT);
|
||||
// Set on the command line
|
||||
checkOrigin("PrintGCDetails", Origin.VM_CREATION);
|
||||
// Set in _JAVA_OPTIONS
|
||||
checkOrigin("PrintOopAddress", Origin.ENVIRON_VAR);
|
||||
// Set in -XX:Flags file
|
||||
checkOrigin("PrintSafepointStatistics", Origin.CONFIG_FILE);
|
||||
// Set through j.l.m
|
||||
checkOrigin("HeapDumpOnOutOfMemoryError", Origin.MANAGEMENT);
|
||||
checkOrigin("NewSize", Origin.ERGONOMIC);
|
||||
// Should be set by the VM, when we set UseConcMarkSweepGC
|
||||
checkOrigin("UseParNewGC", Origin.ERGONOMIC);
|
||||
// Set using attach
|
||||
checkOrigin("HeapDumpPath", Origin.ATTACH_ON_DEMAND);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user