Need sponsor to push attached 8187819 into http://hg.openjdk.java.net/jdk10/hs

Alexander Harlap alexander.harlap at oracle.com
Thu Nov 16 19:46:43 UTC 2017


I need a sponsor to push attached8187819.patch - gc/TestFullGCALot.java 
fails on jdk10 started with "-XX:-UseCompressedOops" option

Patch should go into jdk10/hs

Reviewed by Thomas Schatzl  and Stefan Johansson.

Thank you,

Alex

-------------- next part --------------
# HG changeset patch
# User aharlap
# Date 1510859204 18000
# Node ID b84e87a8ac77f4798614ccf72eee50cfc88f004c
# Parent  d85284ccd1bd865ebb1391d921be7a8ebfc5f2c9
8187819: gc/TestFullGCALot.java fails on jdk10 started with "-XX:-UseCompressedOops" option
Summary: Need to initialized metaspace performance counters before their potential use
Reviewed-by: tschatzl, sjohanss

diff -r d85284ccd1bd -r b84e87a8ac77 src/hotspot/share/memory/universe.cpp
--- a/src/hotspot/share/memory/universe.cpp	Fri Nov 03 17:09:25 2017 -0700
+++ b/src/hotspot/share/memory/universe.cpp	Thu Nov 16 14:06:44 2017 -0500
@@ -695,6 +695,10 @@
 
   Metaspace::global_initialize();
 
+  // Initialize performance counters for metaspaces
+  MetaspaceCounters::initialize_performance_counters();
+  CompressedClassSpaceCounters::initialize_performance_counters();
+
   AOTLoader::universe_init();
 
   // Checks 'AfterMemoryInit' constraints.
@@ -1112,10 +1116,6 @@
   // ("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());
diff -r d85284ccd1bd -r b84e87a8ac77 test/hotspot/jtreg/gc/TestFullGCALot.java
--- a/test/hotspot/jtreg/gc/TestFullGCALot.java	Fri Nov 03 17:09:25 2017 -0700
+++ b/test/hotspot/jtreg/gc/TestFullGCALot.java	Thu Nov 16 14:06:44 2017 -0500
@@ -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


More information about the hotspot-gc-dev mailing list