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

Backport-of: a03e22bb14e0873a599320676fc9d2128a1e23cb
  • Loading branch information
shipilev committed Mar 3, 2021
1 parent 6be71ba commit 3266d0bc21421f024d7e08e3b046701eaedc6447
Showing 1 changed file with 19 additions and 11 deletions.
@@ -339,7 +339,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,
@@ -353,6 +353,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()
);
@@ -919,11 +920,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
@@ -1130,11 +1135,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

1 comment on commit 3266d0b

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 3266d0b Mar 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.