< prev index next > src/hotspot/share/gc/shenandoah/shenandoahInitLogger.cpp
Print this page
#include "precompiled.hpp"
#include "gc/shenandoah/shenandoahHeap.inline.hpp"
#include "gc/shenandoah/shenandoahHeapRegion.hpp"
#include "gc/shenandoah/shenandoahInitLogger.hpp"
+ #include "gc/shenandoah/shenandoahGeneration.hpp"
+ #include "gc/shenandoah/shenandoahYoungGeneration.hpp"
#include "gc/shenandoah/heuristics/shenandoahHeuristics.hpp"
#include "gc/shenandoah/mode/shenandoahMode.hpp"
#include "logging/log.hpp"
#include "runtime/globals.hpp"
#include "utilities/globalDefinitions.hpp"
ShenandoahHeap* heap = ShenandoahHeap::heap();
log_info(gc, init)("Mode: %s",
heap->mode()->name());
- log_info(gc, init)("Heuristics: %s",
- heap->heuristics()->name());
+ if (!heap->mode()->is_generational()) {
+ log_info(gc, init)("Heuristics: %s", heap->global_generation()->heuristics()->name());
+ } else {
+ log_info(gc, init)("Young Heuristics: %s", heap->young_generation()->heuristics()->name());
+ log_info(gc, init)("Old Heuristics: %s", heap->old_generation()->heuristics()->name());
+ log_info(gc, init)("Young Generation Max: " SIZE_FORMAT "%s",
+ byte_size_in_proper_unit(heap->young_generation()->max_capacity()),
+ proper_unit_for_byte_size(heap->young_generation()->max_capacity()));
+ }
+
+
log_info(gc, init)("Heap Region Count: " SIZE_FORMAT,
ShenandoahHeapRegion::region_count());
log_info(gc, init)("Heap Region Size: " SIZE_FORMAT "%s",
< prev index next >