We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c378e2 commit f48ad21Copy full SHA for f48ad21
src/hotspot/share/oops/oop.cpp
@@ -83,7 +83,10 @@ char* oopDesc::print_value_string() {
83
84
void oopDesc::print_value_on(outputStream* st) const {
85
oop obj = const_cast<oopDesc*>(this);
86
- if (java_lang_String::is_instance(obj)) {
+ // We can't use java_lang_String::is_instance since that has klass assertions enabled.
87
+ // If the klass is garbage we want to just fail the check and continue printing, as
88
+ // opposed to aborting the VM entirely.
89
+ if (obj != nullptr && obj->klass_without_asserts() == vmClasses::String_klass()) {
90
java_lang_String::print(obj, st);
91
print_address_on(st);
92
} else {
0 commit comments