--- old/test/jtreg-ext/requires/VMProps.java 2018-06-14 11:33:54.998167976 -0700 +++ new/test/jtreg-ext/requires/VMProps.java 2018-06-14 11:33:54.778167984 -0700 @@ -22,7 +22,10 @@ */ package requires; +import java.io.BufferedInputStream; +import java.io.FileInputStream; import java.io.IOException; +import java.io.InputStream; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; @@ -31,6 +34,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Properties; import java.util.concurrent.Callable; import java.util.concurrent.TimeUnit; import java.util.regex.Matcher; @@ -79,6 +83,7 @@ // vm.graal.enabled is true if Graal is used as JIT map.put("vm.graal.enabled", isGraalEnabled()); map.put("docker.support", dockerSupport()); + map.put("release.implementor", implementor()); vmGC(map); // vm.gc.X = true/false vmOptFinalFlags(map); @@ -421,6 +426,18 @@ } + private String implementor() { + try (InputStream in = new BufferedInputStream(new FileInputStream( + System.getProperty("java.home") + "/release"))) { + Properties properties = new Properties(); + properties.load(in); + return properties.getProperty("IMPLEMENTOR").replace("\"", ""); + } catch (IOException e) { + e.printStackTrace(); + } + return null; + } + /** * Dumps the map to the file if the file name is given as the property.