From 7d7e60c8aebc4b4c1e7121be702393e5bc46e9ce Mon Sep 17 00:00:00 2001 From: Ioi Lam Date: Tue, 1 Jul 2025 20:22:13 +0000 Subject: [PATCH] 8360164: AOT cache creation crashes in ~ThreadTotalCPUTimeClosure() Reviewed-by: ccheung, kvn, dholmes --- src/hotspot/share/cds/metaspaceShared.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hotspot/share/cds/metaspaceShared.cpp b/src/hotspot/share/cds/metaspaceShared.cpp index 6c6b64a0cb2..6e0385fc99c 100644 --- a/src/hotspot/share/cds/metaspaceShared.cpp +++ b/src/hotspot/share/cds/metaspaceShared.cpp @@ -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); } } }