Skip to content

Commit 7d7e60c

Browse files
committed
8360164: AOT cache creation crashes in ~ThreadTotalCPUTimeClosure()
Reviewed-by: ccheung, kvn, dholmes
1 parent 534d2b3 commit 7d7e60c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/hotspot/share/cds/metaspaceShared.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -837,11 +837,10 @@ void MetaspaceShared::preload_and_dump(TRAPS) {
837837
struct stat st;
838838
if (os::stat(AOTCache, &st) != 0) {
839839
tty->print_cr("AOTCache creation failed: %s", AOTCache);
840-
vm_exit(0);
841840
} else {
842841
tty->print_cr("AOTCache creation is complete: %s " INT64_FORMAT " bytes", AOTCache, (int64_t)(st.st_size));
843-
vm_exit(0);
844842
}
843+
vm_direct_exit(0);
845844
}
846845
}
847846
}

0 commit comments

Comments
 (0)