Java Code Examples for sun.hotspot.WhiteBox#incMetaspaceCapacityUntilGC()
The following examples show how to use
sun.hotspot.WhiteBox#incMetaspaceCapacityUntilGC() .
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: TestCapacityUntilGCWrapAround.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) { if (Platform.is32bit()) { WhiteBox wb = WhiteBox.getWhiteBox(); long before = wb.metaspaceCapacityUntilGC(); // Now force possible overflow of capacity_until_GC. long after = wb.incMetaspaceCapacityUntilGC(MAX_UINT); Asserts.assertGTE(after, before, "Increasing with MAX_UINT should not cause wrap around: " + after + " < " + before); Asserts.assertLTE(after, MAX_UINT, "Increasing with MAX_UINT should not cause value larger than MAX_UINT:" + after); } }
Example 2
Source File: TestCapacityUntilGCWrapAround.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) { if (Platform.is32bit()) { WhiteBox wb = WhiteBox.getWhiteBox(); long before = wb.metaspaceCapacityUntilGC(); // Now force possible overflow of capacity_until_GC. long after = wb.incMetaspaceCapacityUntilGC(MAX_UINT); Asserts.assertGTE(after, before, "Increasing with MAX_UINT should not cause wrap around: " + after + " < " + before); Asserts.assertLTE(after, MAX_UINT, "Increasing with MAX_UINT should not cause value larger than MAX_UINT:" + after); } }
Example 3
Source File: TestCapacityUntilGCWrapAround.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) { if (Platform.is32bit()) { WhiteBox wb = WhiteBox.getWhiteBox(); long before = wb.metaspaceCapacityUntilGC(); // Now force possible overflow of capacity_until_GC. long after = wb.incMetaspaceCapacityUntilGC(MAX_UINT); Asserts.assertGTE(after, before, "Increasing with MAX_UINT should not cause wrap around: " + after + " < " + before); Asserts.assertLTE(after, MAX_UINT, "Increasing with MAX_UINT should not cause value larger than MAX_UINT:" + after); } }
Example 4
Source File: TestCapacityUntilGCWrapAround.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) { if (Platform.is32bit()) { WhiteBox wb = WhiteBox.getWhiteBox(); long before = wb.metaspaceCapacityUntilGC(); // Now force possible overflow of capacity_until_GC. long after = wb.incMetaspaceCapacityUntilGC(MAX_UINT); Asserts.assertGTE(after, before, "Increasing with MAX_UINT should not cause wrap around: " + after + " < " + before); Asserts.assertLTE(after, MAX_UINT, "Increasing with MAX_UINT should not cause value larger than MAX_UINT:" + after); } }
Example 5
Source File: TestCapacityUntilGCWrapAround.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) { if (Platform.is32bit()) { WhiteBox wb = WhiteBox.getWhiteBox(); long before = wb.metaspaceCapacityUntilGC(); // Now force possible overflow of capacity_until_GC. long after = wb.incMetaspaceCapacityUntilGC(MAX_UINT); Asserts.assertGTE(after, before, "Increasing with MAX_UINT should not cause wrap around: " + after + " < " + before); Asserts.assertLTE(after, MAX_UINT, "Increasing with MAX_UINT should not cause value larger than MAX_UINT:" + after); } }
Example 6
Source File: TestCapacityUntilGCWrapAround.java From hottub with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) { if (Platform.is32bit()) { WhiteBox wb = WhiteBox.getWhiteBox(); long before = wb.metaspaceCapacityUntilGC(); // Now force possible overflow of capacity_until_GC. long after = wb.incMetaspaceCapacityUntilGC(MAX_UINT); Asserts.assertGTE(after, before, "Increasing with MAX_UINT should not cause wrap around: " + after + " < " + before); Asserts.assertLTE(after, MAX_UINT, "Increasing with MAX_UINT should not cause value larger than MAX_UINT:" + after); } }