--- a/src/hotspot/share/gc/shared/generationSpec.cpp Thu May 02 10:38:00 2019 +0200
+++ b/src/hotspot/share/gc/shared/generationSpec.cpp Mon Apr 15 11:47:46 2019 +0200
@@ -42,31 +42,18 @@
switch (name()) {
#if INCLUDE_SERIALGC
case Generation::DefNew:
- return new DefNewGeneration(rs, init_size());
+ return new DefNewGeneration(rs, _init_size, _min_size, _max_size);
case Generation::MarkSweepCompact:
- return new TenuredGeneration(rs, init_size(), remset);
+ return new TenuredGeneration(rs, _init_size, _min_size, _max_size, remset);
#endif
#if INCLUDE_CMSGC
case Generation::ParNew:
- return new ParNewGeneration(rs, init_size());
+ return new ParNewGeneration(rs, _init_size, _min_size, _max_size);
case Generation::ConcurrentMarkSweep: {
- assert(UseConcMarkSweepGC, "UseConcMarkSweepGC should be set");
- if (remset == NULL) {
- vm_exit_during_initialization("Rem set incompatibility.");
- }
- // Otherwise
- // The constructor creates the CMSCollector if needed,
- // else registers with an existing CMSCollector
-
- ConcurrentMarkSweepGeneration* g = NULL;
- g = new ConcurrentMarkSweepGeneration(rs, init_size(), remset);
-
- g->initialize_performance_counters();
-
- return g;
+ return new ConcurrentMarkSweepGeneration(rs, _init_size, _min_size, _max_size, remset);
}
#endif // INCLUDE_CMSGC