mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
Merge
This commit is contained in:
commit
44a46005b8
60 changed files with 1112 additions and 553 deletions
|
@ -3636,6 +3636,16 @@ jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
|
|||
CompileBroker::compilation_init();
|
||||
#endif
|
||||
|
||||
if (EnableInvokeDynamic) {
|
||||
// Pre-initialize some JSR292 core classes to avoid deadlock during class loading.
|
||||
// It is done after compilers are initialized, because otherwise compilations of
|
||||
// signature polymorphic MH intrinsics can be missed
|
||||
// (see SystemDictionary::find_method_handle_intrinsic).
|
||||
initialize_class(vmSymbols::java_lang_invoke_MethodHandle(), CHECK_0);
|
||||
initialize_class(vmSymbols::java_lang_invoke_MemberName(), CHECK_0);
|
||||
initialize_class(vmSymbols::java_lang_invoke_MethodHandleNatives(), CHECK_0);
|
||||
}
|
||||
|
||||
#if INCLUDE_MANAGEMENT
|
||||
Management::initialize(THREAD);
|
||||
#endif // INCLUDE_MANAGEMENT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue