--- a/src/hotspot/share/gc/serial/tenuredGeneration.cpp Thu May 02 10:38:00 2019 +0200
+++ b/src/hotspot/share/gc/serial/tenuredGeneration.cpp Mon Apr 15 11:47:46 2019 +0200
@@ -45,6 +45,8 @@
TenuredGeneration::TenuredGeneration(ReservedSpace rs,
size_t initial_byte_size,
+ size_t min_byte_size,
+ size_t max_byte_size,
CardTableRS* remset) :
CardGeneration(rs, initial_byte_size, remset)
{
@@ -60,10 +62,9 @@
// initialize performance counters
const char* gen_name = "old";
- GenCollectorPolicy* gcp = GenCollectedHeap::heap()->gen_policy();
// Generation Counters -- generation 1, 1 subspace
_gen_counters = new GenerationCounters(gen_name, 1, 1,
- gcp->min_old_size(), gcp->max_old_size(), &_virtual_space);
+ min_byte_size, max_byte_size, &_virtual_space);
_gc_counters = new CollectorCounters("Serial full collection pauses", 1);