8187819: gc/TestFullGCALot.java fails on jdk10 started with "-XX:-UseCompressedOops" option
Need to initialized metaspace performance counters before their potential use Reviewed-by: tschatzl, sjohanss
This commit is contained in:
parent
d1cbd17c2c
commit
cb1ea0fc33
@ -687,6 +687,10 @@ jint universe_init() {
|
||||
|
||||
Metaspace::global_initialize();
|
||||
|
||||
// Initialize performance counters for metaspaces
|
||||
MetaspaceCounters::initialize_performance_counters();
|
||||
CompressedClassSpaceCounters::initialize_performance_counters();
|
||||
|
||||
AOTLoader::universe_init();
|
||||
|
||||
// Checks 'AfterMemoryInit' constraints.
|
||||
@ -1085,10 +1089,6 @@ bool universe_post_init() {
|
||||
// ("weak") refs processing infrastructure initialization
|
||||
Universe::heap()->post_initialize();
|
||||
|
||||
// Initialize performance counters for metaspaces
|
||||
MetaspaceCounters::initialize_performance_counters();
|
||||
CompressedClassSpaceCounters::initialize_performance_counters();
|
||||
|
||||
MemoryService::add_metaspace_memory_pools();
|
||||
|
||||
MemoryService::set_universe_heap(Universe::heap());
|
||||
|
@ -24,7 +24,7 @@
|
||||
/*
|
||||
* @test TestFullGCALot
|
||||
* @key gc
|
||||
* @bug 4187687
|
||||
* @bug 4187687 8187819
|
||||
* @summary Ensure no access violation when using FullGCALot
|
||||
* @requires vm.debug
|
||||
* @run main/othervm -XX:NewSize=10m -XX:+FullGCALot -XX:FullGCALotInterval=120 TestFullGCALot
|
||||
|
Loading…
Reference in New Issue
Block a user