mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8138922: StubCodeDesc constructor publishes partially-constructed objects on StubCodeDesc::_list
Reviewed-by: kvn, coleenp, dholmes
This commit is contained in:
parent
596b56f6c7
commit
e675738256
7 changed files with 35 additions and 54 deletions
|
@ -3600,6 +3600,9 @@ jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
|
|||
vm_exit_during_initialization("Failed to initialize tracing backend");
|
||||
}
|
||||
|
||||
// No more stub generation allowed after that point.
|
||||
StubCodeDesc::freeze();
|
||||
|
||||
// Set flag that basic initialization has completed. Used by exceptions and various
|
||||
// debug stuff, that does not work until all basic classes have been initialized.
|
||||
set_init_completed();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue