< prev index next >

test/jdk/java/util/concurrent/atomic/VMSupportsCS8.java

Print this page
rev 52426 : 8185496: Improve performance of system properties initialization in initPhase1
8213424: VersionProps duplicate and skipped initialization

@@ -31,11 +31,12 @@
 
 import java.lang.reflect.Field;
 
 public class VMSupportsCS8 {
     public static void main(String[] args) throws Exception {
-        if (System.getProperty("sun.cpu.isalist").matches
+        String isalist = System.getProperty("sun.cpu.isalist");
+        if (isalist != null && isalist.matches
             (".*\\b(sparcv9|pentium_pro|ia64|amd64).*")
             ||
             System.getProperty("os.arch").matches
             (".*\\b(ia64|amd64).*")) {
 
< prev index next >