8061715: gc/g1/TestShrinkAuxiliaryData15.java fails with java.lang.RuntimeException: heap decommit failed - after > before
Test for auxiliary data in G1 fails as they cannot precisely measure this aux data size. I've added whitebox method to get this size. Reviewed-by: tschatzl, jwilhelm, mgerdin
This commit is contained in:
parent
b5eaf480f9
commit
02c878c431
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
package sun.hotspot;
|
package sun.hotspot;
|
||||||
|
|
||||||
|
import java.lang.management.MemoryUsage;
|
||||||
import java.lang.reflect.Executable;
|
import java.lang.reflect.Executable;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -94,8 +95,10 @@ public class WhiteBox {
|
|||||||
// G1
|
// G1
|
||||||
public native boolean g1InConcurrentMark();
|
public native boolean g1InConcurrentMark();
|
||||||
public native boolean g1IsHumongous(Object o);
|
public native boolean g1IsHumongous(Object o);
|
||||||
|
public native long g1NumMaxRegions();
|
||||||
public native long g1NumFreeRegions();
|
public native long g1NumFreeRegions();
|
||||||
public native int g1RegionSize();
|
public native int g1RegionSize();
|
||||||
|
public native MemoryUsage g1AuxiliaryMemoryUsage();
|
||||||
public native Object[] parseCommandLine(String commandline, char delim, DiagnosticCommand[] args);
|
public native Object[] parseCommandLine(String commandline, char delim, DiagnosticCommand[] args);
|
||||||
|
|
||||||
// NMT
|
// NMT
|
||||||
|
Loading…
Reference in New Issue
Block a user