Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8253910: UseCompressedClassPointers depends on UseCompressedOops in v…
…mError.cpp

Reviewed-by: rrich, dholmes
  • Loading branch information
shipilev committed Jan 11, 2021
1 parent e0d748d commit a03e22bb14e0873a599320676fc9d2128a1e23cb
Showing with 19 additions and 11 deletions.
  1. +19 −11 src/hotspot/share/utilities/vmError.cpp
@@ -341,7 +341,7 @@ static void report_vm_version(outputStream* st, char* buf, int buflen) {
buf, jdk_debug_level, runtime_version);

// This is the long version with some default settings added
st->print_cr("# Java VM: %s%s%s (%s%s, %s%s%s%s%s, %s, %s)",
st->print_cr("# Java VM: %s%s%s (%s%s, %s%s%s%s%s%s, %s, %s)",
VM_Version::vm_name(),
(*vendor_version != '\0') ? " " : "", vendor_version,
jdk_debug_level,
@@ -355,6 +355,7 @@ static void report_vm_version(outputStream* st, char* buf, int buflen) {
"", "",
#endif
UseCompressedOops ? ", compressed oops" : "",
UseCompressedClassPointers ? ", compressed class ptrs" : "",
GCConfig::hs_err_name(),
VM_Version::vm_platform_string()
);
@@ -920,11 +921,15 @@ void VMError::report(outputStream* st, bool _verbose) {

if (_verbose && UseCompressedOops) {
CompressedOops::print_mode(st);
if (UseCompressedClassPointers) {
CDS_ONLY(MetaspaceShared::print_on(st);)
Metaspace::print_compressed_class_space(st);
CompressedKlassPointers::print_mode(st);
}
st->cr();
}

STEP("printing compressed klass pointers mode")

if (_verbose && UseCompressedClassPointers) {
CDS_ONLY(MetaspaceShared::print_on(st);)
Metaspace::print_compressed_class_space(st);
CompressedKlassPointers::print_mode(st);
st->cr();
}
#endif
@@ -1131,11 +1136,14 @@ void VMError::print_vm_info(outputStream* st) {
// STEP("printing compressed oops mode")
if (UseCompressedOops) {
CompressedOops::print_mode(st);
if (UseCompressedClassPointers) {
CDS_ONLY(MetaspaceShared::print_on(st);)
Metaspace::print_compressed_class_space(st);
CompressedKlassPointers::print_mode(st);
}
st->cr();
}

// STEP("printing compressed class ptrs mode")
if (UseCompressedClassPointers) {
CDS_ONLY(MetaspaceShared::print_on(st);)
Metaspace::print_compressed_class_space(st);
CompressedKlassPointers::print_mode(st);
st->cr();
}
#endif

0 comments on commit a03e22b

Please sign in to comment.