8360164: AOT cache creation crashes in ~ThreadTotalCPUTimeClosure()

Reviewed-by: shade, kvn
Backport-of: 7d7e60c8aebc4b4c1e7121be702393e5bc46e9ce
This commit is contained in:
Ioi Lam 2025-07-08 17:36:10 +00:00
parent afe6bd6910
commit b8965318c1

View File

@ -837,11 +837,10 @@ void MetaspaceShared::preload_and_dump(TRAPS) {
struct stat st;
if (os::stat(AOTCache, &st) != 0) {
tty->print_cr("AOTCache creation failed: %s", AOTCache);
vm_exit(0);
} else {
tty->print_cr("AOTCache creation is complete: %s " INT64_FORMAT " bytes", AOTCache, (int64_t)(st.st_size));
vm_exit(0);
}
vm_direct_exit(0);
}
}
}