mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8069005: Hotspot crashes in System.out.println with assert(resolved_method->method_holder()->is_linked()) failed: must be linked
Move java.lang.Class initialization sooner in bootstrapping the jvm Reviewed-by: dholmes, hseigel
This commit is contained in:
parent
301298546c
commit
c6e557977e
1 changed files with 2 additions and 3 deletions
|
@ -3230,6 +3230,8 @@ void Threads::initialize_java_lang_classes(JavaThread* main_thread, TRAPS) {
|
||||||
|
|
||||||
// Initialize java_lang.System (needed before creating the thread)
|
// Initialize java_lang.System (needed before creating the thread)
|
||||||
initialize_class(vmSymbols::java_lang_System(), CHECK);
|
initialize_class(vmSymbols::java_lang_System(), CHECK);
|
||||||
|
// The VM creates & returns objects of this class. Make sure it's initialized.
|
||||||
|
initialize_class(vmSymbols::java_lang_Class(), CHECK);
|
||||||
initialize_class(vmSymbols::java_lang_ThreadGroup(), CHECK);
|
initialize_class(vmSymbols::java_lang_ThreadGroup(), CHECK);
|
||||||
Handle thread_group = create_initial_thread_group(CHECK);
|
Handle thread_group = create_initial_thread_group(CHECK);
|
||||||
Universe::set_main_thread_group(thread_group());
|
Universe::set_main_thread_group(thread_group());
|
||||||
|
@ -3241,9 +3243,6 @@ void Threads::initialize_java_lang_classes(JavaThread* main_thread, TRAPS) {
|
||||||
java_lang_Thread::set_thread_status(thread_object,
|
java_lang_Thread::set_thread_status(thread_object,
|
||||||
java_lang_Thread::RUNNABLE);
|
java_lang_Thread::RUNNABLE);
|
||||||
|
|
||||||
// The VM creates & returns objects of this class. Make sure it's initialized.
|
|
||||||
initialize_class(vmSymbols::java_lang_Class(), CHECK);
|
|
||||||
|
|
||||||
// The VM preresolves methods to these classes. Make sure that they get initialized
|
// The VM preresolves methods to these classes. Make sure that they get initialized
|
||||||
initialize_class(vmSymbols::java_lang_reflect_Method(), CHECK);
|
initialize_class(vmSymbols::java_lang_reflect_Method(), CHECK);
|
||||||
initialize_class(vmSymbols::java_lang_ref_Finalizer(), CHECK);
|
initialize_class(vmSymbols::java_lang_ref_Finalizer(), CHECK);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue