< prev index next >
src/hotspot/share/gc/shared/gcInitLogger.cpp
Print this page
@@ -21,92 +21,92 @@
* questions.
*
*/
#include "precompiled.hpp"
-#include "gc/shared/initLogger.hpp"
+#include "gc/shared/gcInitLogger.hpp"
#include "logging/log.hpp"
#include "oops/compressedOops.hpp"
#include "runtime/globals.hpp"
#include "runtime/vm_version.hpp"
#include "utilities/globalDefinitions.hpp"
-void InitLogger::print_all() {
+void GCInitLogger::print_all() {
print_version();
print_cpu();
print_memory();
print_large_pages();
print_numa();
print_compressed_oops();
print_heap();
print_workers();
}
-void InitLogger::print() {
- InitLogger init_log;
+void GCInitLogger::print() {
+ GCInitLogger init_log;
init_log.print_all();
}
-void InitLogger::print_version() {
+void GCInitLogger::print_version() {
log_info(gc, init)("Version: %s (%s)",
VM_Version::vm_release(),
VM_Version::jdk_debug_level());
}
-void InitLogger::print_cpu() {
+void GCInitLogger::print_cpu() {
log_info(gc, init)("CPUs: %u total, %u available",
os::processor_count(),
os::initial_active_processor_count());
}
-void InitLogger::print_memory() {
+void GCInitLogger::print_memory() {
log_info(gc, init)("Memory: " JULONG_FORMAT "M", os::physical_memory() / M);
}
-void InitLogger::print_large_pages() {
+void GCInitLogger::print_large_pages() {
log_info(gc, init)("Large Page Support: %s", large_pages_support());
}
-void InitLogger::print_numa() {
+void GCInitLogger::print_numa() {
if (UseNUMA) {
log_info(gc, init)("NUMA Support: Enabled");
log_info(gc, init)("NUMA Nodes: " SIZE_FORMAT, os::numa_get_groups_num());
} else {
log_info(gc, init)("NUMA Support: Disabled");
}
}
-void InitLogger::print_compressed_oops() {
+void GCInitLogger::print_compressed_oops() {
if (UseCompressedOops) {
log_info(gc, init)("Compressed Oops: Enabled (%s)",
CompressedOops::mode_to_string(CompressedOops::mode()));
} else {
log_info(gc, init)("Compressed Oops: Disabled");
}
}
-void InitLogger::print_heap() {
+void GCInitLogger::print_heap() {
log_info(gc, init)("Heap Min Capacity: " SIZE_FORMAT "%s",
byte_size_in_exact_unit(MinHeapSize), exact_unit_for_byte_size(MinHeapSize));
log_info(gc, init)("Heap Initial Capacity: " SIZE_FORMAT "%s",
byte_size_in_exact_unit(InitialHeapSize), exact_unit_for_byte_size(InitialHeapSize));
log_info(gc, init)("Heap Max Capacity: " SIZE_FORMAT "%s",
byte_size_in_exact_unit(MaxHeapSize), exact_unit_for_byte_size(MaxHeapSize));
log_info(gc, init)("Pre-touch: %s", AlwaysPreTouch ? "Enabled" : "Disabled");
}
-void InitLogger::print_workers() {
+void GCInitLogger::print_workers() {
if (ParallelGCThreads > 0) {
log_info(gc, init)("Parallel Workers: %u", ParallelGCThreads);
}
if (ConcGCThreads > 0) {
log_info(gc, init)("Concurrent Workers: %u", ConcGCThreads);
}
}
-const char* InitLogger::large_pages_support() {
+const char* GCInitLogger::large_pages_support() {
if (UseLargePages) {
#ifdef LINUX
if (UseTransparentHugePages) {
return "Enabled (Transparent)";
} else {
< prev index next >