# HG changeset patch # User jcm # Date 1484717962 28800 # Node ID 68ed4de0f9c8c61f814ca1f131ca2e33a0e3201a # Parent 2622e9ad2ad32c1f28ab73fcc8f0e655dabb252c 8166002: Emulate client build on platforms with reduced virtual address space Summary: The default VM ergonomics on Windows/x86 (32-bit) are changed to client like. Reviewed-by: kvn, iveresov diff -r 2622e9ad2ad3 -r 68ed4de0f9c8 test/jtreg-ext/requires/VMProps.java --- a/test/jtreg-ext/requires/VMProps.java Fri Jan 13 18:26:33 2017 +0100 +++ b/test/jtreg-ext/requires/VMProps.java Tue Jan 17 21:39:22 2017 -0800 @@ -64,6 +64,7 @@ map.put("vm.simpleArch", vmArch()); map.put("vm.debug", vmDebug()); map.put("vm.jvmci", vmJvmci()); + map.put("vm.emulatedClient", vmEmulatedClient()); map.put("vm.cpu.features", cpuFeatures()); vmGC(map); // vm.gc.X = true/false @@ -169,6 +170,17 @@ } /** + * @return true if VM runs in emulated-client mode and false otherwise. + */ + protected String vmEmulatedClient() { + String vmInfo = System.getProperty("java.vm.info"); + if (vmInfo == null) { + return "false"; + } + return "" + vmInfo.contains(" emulated-client"); + } + + /** * @return supported CPU features */ protected String cpuFeatures() { diff -r 2622e9ad2ad3 -r 68ed4de0f9c8 test/lib/jdk/test/lib/Platform.java --- a/test/lib/jdk/test/lib/Platform.java Fri Jan 13 18:26:33 2017 +0100 +++ b/test/lib/jdk/test/lib/Platform.java Tue Jan 17 21:39:22 2017 -0800 @@ -63,6 +63,10 @@ return vmName.contains("Embedded"); } + public static boolean isEmulatedClient() { + return vmInfo.contains(" emulated-client"); + } + public static boolean isTieredSupported() { return compiler.contains("Tiered Compilers"); }