--- old/test/jdk/com/sun/management/HotSpotDiagnosticMXBean/CheckOrigin.java 2018-06-21 20:20:24.658765399 -0700 +++ new/test/jdk/com/sun/management/HotSpotDiagnosticMXBean/CheckOrigin.java 2018-06-21 20:20:23.970421377 -0700 @@ -55,19 +55,12 @@ if (args.length == 0) { // start a process that has options set in a number of different ways - File flagsFile = File.createTempFile("CheckOriginFlags", null); - try (PrintWriter pw = - new PrintWriter(new FileWriter(flagsFile))) { - pw.println("+PrintSafepointStatistics"); - } - ProcessBuilder pb = ProcessTools. createJavaProcessBuilder( "--add-exports", "jdk.attach/sun.tools.attach=ALL-UNNAMED", "-XX:+UseConcMarkSweepGC", // this will cause MaxNewSize to be FLAG_SET_ERGO "-XX:+UseCodeAging", "-XX:+UseCerealGC", // Should be ignored. - "-XX:Flags=" + flagsFile.getAbsolutePath(), "-Djdk.attach.allowAttachSelf", "-cp", System.getProperty("test.class.path"), "CheckOrigin", @@ -107,8 +100,6 @@ // Set in JAVA_TOOL_OPTIONS checkOrigin("IgnoreUnrecognizedVMOptions", Origin.ENVIRON_VAR); checkOrigin("PrintVMOptions", Origin.ENVIRON_VAR); - // Set in -XX:Flags file - checkOrigin("PrintSafepointStatistics", Origin.CONFIG_FILE); // Set through j.l.m checkOrigin("HeapDumpOnOutOfMemoryError", Origin.MANAGEMENT); // Should be set by the VM, when we set UseConcMarkSweepGC