8264735: Make dynamic dump repeatable

Reviewed-by: ccheung, iklam
This commit is contained in:
Yumin Qi 2021-07-07 19:41:45 +00:00
parent d1cecaaa22
commit f741e4ca74
14 changed files with 208 additions and 36 deletions

View file

@ -502,7 +502,7 @@ void before_exit(JavaThread* thread) {
#if INCLUDE_CDS
if (DynamicDumpSharedSpaces) {
ExceptionMark em(thread);
DynamicArchive::dump();
DynamicArchive::dump(thread);
if (thread->has_pending_exception()) {
ResourceMark rm(thread);
oop pending_exception = thread->pending_exception();