< prev index next >
test/testlibrary/com/oracle/java/testlibrary/Platform.java
Print this page
rev 8910 : full patch for jfr
*** 1,7 ****
/*
! * Copyright (c) 2013, 2018, 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) 2013, 2019, 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.
*** 26,41 ****
--- 26,43 ----
import java.util.regex.Pattern;
import com.oracle.java.testlibrary.Utils;
public class Platform {
+ public static final String vmInfo = System.getProperty("java.vm.info");
private static final String osName = System.getProperty("os.name");
private static final String dataModel = System.getProperty("sun.arch.data.model");
private static final String vmVersion = System.getProperty("java.vm.version");
private static final String osArch = System.getProperty("os.arch");
public static final String vmName = System.getProperty("java.vm.name");
private static final String userName = System.getProperty("user.name");
+ private static final String vmContributor = System.getProperty("java.vm.contributor");
public static boolean isClient() {
return vmName.endsWith(" Client VM");
}
*** 53,62 ****
--- 55,68 ----
public static boolean isEmbedded() {
return vmName.contains("Embedded");
}
+ public static boolean isEmulatedClient() {
+ return vmInfo.contains(" emulated-client");
+ }
+
public static boolean is32bit() {
return dataModel.equals("32");
}
public static boolean is64bit() {
< prev index next >