mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-15 10:23:28 +00:00
8357917: Assert in MetaspaceShared::preload_and_dump() when printing exception
Reviewed-by: kvn, jrose
This commit is contained in:
parent
96fb31e2db
commit
72b9aafd5a
@ -799,8 +799,9 @@ void MetaspaceShared::preload_and_dump(TRAPS) {
|
||||
"%zuM", MaxHeapSize/M);
|
||||
MetaspaceShared::writing_error();
|
||||
} else {
|
||||
oop message = java_lang_Throwable::message(PENDING_EXCEPTION);
|
||||
aot_log_error(aot)("%s: %s", PENDING_EXCEPTION->klass()->external_name(),
|
||||
java_lang_String::as_utf8_string(java_lang_Throwable::message(PENDING_EXCEPTION)));
|
||||
message == nullptr ? "(null)" : java_lang_String::as_utf8_string(message));
|
||||
MetaspaceShared::writing_error(err_msg("Unexpected exception, use -Xlog:aot%s,exceptions=trace for detail",
|
||||
CDSConfig::new_aot_flags_used() ? "" : ",cds"));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user