Java Code Examples for sun.hotspot.WhiteBox#isContainerized()
The following examples show how to use
sun.hotspot.WhiteBox#isContainerized() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CheckContainerized.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) { System.out.println("CheckContainerized: Entering"); WhiteBox wb = WhiteBox.getWhiteBox(); if (wb.isContainerized()) { System.out.println(INSIDE_A_CONTAINER); } else { System.out.println(OUTSIDE_OF_CONTAINER); } }
Example 2
Source File: CheckContainerized.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) { System.out.println("CheckContainerized: Entering"); WhiteBox wb = WhiteBox.getWhiteBox(); if (wb.isContainerized()) { System.out.println(INSIDE_A_CONTAINER); } else { System.out.println(OUTSIDE_OF_CONTAINER); } }