mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
8266764: [REDO] JDK-8255493 Support for pre-generated java.lang.invoke classes in CDS dynamic archive
Reviewed-by: ccheung, iklam
This commit is contained in:
parent
8c71144a23
commit
2066f497b9
16 changed files with 407 additions and 75 deletions
|
@ -509,7 +509,15 @@ void before_exit(JavaThread* thread) {
|
|||
|
||||
#if INCLUDE_CDS
|
||||
if (DynamicDumpSharedSpaces) {
|
||||
ExceptionMark em(thread);
|
||||
DynamicArchive::dump();
|
||||
if (thread->has_pending_exception()) {
|
||||
ResourceMark rm(thread);
|
||||
oop pending_exception = thread->pending_exception();
|
||||
log_error(cds)("ArchiveClassesAtExit has failed %s: %s", pending_exception->klass()->external_name(),
|
||||
java_lang_String::as_utf8_string(java_lang_Throwable::message(pending_exception)));
|
||||
thread->clear_pending_exception();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue