mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +02:00
8276787: Improve warning messages for -XX:+RecordDynamicDumpInfo
Reviewed-by: ccheung, stuefe
This commit is contained in:
parent
8ed384cfb6
commit
a77d8ddf11
11 changed files with 255 additions and 113 deletions
|
@ -426,8 +426,8 @@ extern volatile jint vm_created;
|
|||
JVM_ENTRY_NO_ENV(void, JVM_BeforeHalt())
|
||||
#if INCLUDE_CDS
|
||||
// Link all classes for dynamic CDS dumping before vm exit.
|
||||
if (DynamicDumpSharedSpaces) {
|
||||
DynamicArchive::prepare_for_dynamic_dumping();
|
||||
if (DynamicArchive::should_dump_at_vm_exit()) {
|
||||
DynamicArchive::prepare_for_dump_at_exit();
|
||||
}
|
||||
#endif
|
||||
EventShutdown event;
|
||||
|
@ -3706,7 +3706,7 @@ JVM_ENTRY(void, JVM_DumpDynamicArchive(JNIEnv *env, jstring archiveName))
|
|||
ResourceMark rm(THREAD);
|
||||
Handle file_handle(THREAD, JNIHandles::resolve_non_null(archiveName));
|
||||
char* archive_name = java_lang_String::as_utf8_string(file_handle());
|
||||
DynamicArchive::dump(archive_name, CHECK);
|
||||
DynamicArchive::dump_for_jcmd(archive_name, CHECK);
|
||||
#endif // INCLUDE_CDS
|
||||
JVM_END
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue