--- old/test/jtreg-ext/requires/VMProps.java 2016-05-26 15:30:13.301300098 +0300 +++ new/test/jtreg-ext/requires/VMProps.java 2016-05-26 15:30:13.245300101 +0300 @@ -52,10 +52,32 @@ map.put("vm.flavor", vmFlavor()); map.put("vm.compMode", vmCompMode()); map.put("vm.bits", vmBits()); + map.put("vm.arch", vmArch()); dump(map); return map; } + + /** + * @return vm.arch value extracted from the "os.arch" property of tested JDK. + */ + protected String vmArch() { + String arch = System.getProperty("os.arch"); + if (arch.equals("x86_64") || arch.equals("amd64")) { + return "x64"; + } + else if (arch.contains("86")) { + return "x86"; + } + else if (arch.equals("aarch64")) { + return "arm64"; + } else { + return arch; + } + } + + + /** * @return VM type value extracted from the "java.vm.name" property. */