< prev index next >
test/jdk/java/util/concurrent/atomic/VMSupportsCS8.java
Print this page
rev 59383 : [mq]: final
*** 1,7 ****
/*
! * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 33,43 ****
public class VMSupportsCS8 {
public static void main(String[] args) throws Exception {
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).*")) {
System.out.println("This system is known to have hardware CS8");
--- 33,43 ----
public class VMSupportsCS8 {
public static void main(String[] args) throws Exception {
String isalist = System.getProperty("sun.cpu.isalist");
if (isalist != null && isalist.matches
! (".*\\b(pentium_pro|ia64|amd64).*")
||
System.getProperty("os.arch").matches
(".*\\b(ia64|amd64).*")) {
System.out.println("This system is known to have hardware CS8");
< prev index next >