src/share/vm/runtime/thread.cpp

Print this page




3640     create_vm_init_libraries();
3641   }
3642 
3643   // Notify JVMTI agents that VM initialization is complete - nop if no agents.
3644   JvmtiExport::post_vm_initialized();
3645 
3646   if (TRACE_START() != JNI_OK) {
3647     vm_exit_during_initialization("Failed to start tracing backend.");
3648   }
3649 
3650   if (CleanChunkPoolAsync) {
3651     Chunk::start_chunk_pool_cleaner_task();
3652   }
3653 
3654 #if INCLUDE_JVMCI
3655   if (EnableJVMCI) {
3656     const char* jvmciCompiler = Arguments::PropertyList_get_value(Arguments::system_properties(), "jvmci.compiler");
3657     if (jvmciCompiler != NULL) {
3658       JVMCIRuntime::save_compiler(jvmciCompiler);
3659     }
3660     JVMCIRuntime::maybe_print_flags(CHECK_JNI_ERR);
3661   }
3662 #endif // INCLUDE_JVMCI
3663 
3664   // initialize compiler(s)
3665 #if defined(COMPILER1) || defined(COMPILER2) || defined(SHARK) || INCLUDE_JVMCI
3666   CompileBroker::compilation_init(CHECK_JNI_ERR);
3667 #endif
3668 
3669   // Pre-initialize some JSR292 core classes to avoid deadlock during class loading.
3670   // It is done after compilers are initialized, because otherwise compilations of
3671   // signature polymorphic MH intrinsics can be missed
3672   // (see SystemDictionary::find_method_handle_intrinsic).
3673   initialize_jsr292_core_classes(CHECK_JNI_ERR);
3674 
3675 #if INCLUDE_MANAGEMENT
3676   Management::initialize(THREAD);
3677 
3678   if (HAS_PENDING_EXCEPTION) {
3679     // management agent fails to start possibly due to
3680     // configuration problem and is responsible for printing




3640     create_vm_init_libraries();
3641   }
3642 
3643   // Notify JVMTI agents that VM initialization is complete - nop if no agents.
3644   JvmtiExport::post_vm_initialized();
3645 
3646   if (TRACE_START() != JNI_OK) {
3647     vm_exit_during_initialization("Failed to start tracing backend.");
3648   }
3649 
3650   if (CleanChunkPoolAsync) {
3651     Chunk::start_chunk_pool_cleaner_task();
3652   }
3653 
3654 #if INCLUDE_JVMCI
3655   if (EnableJVMCI) {
3656     const char* jvmciCompiler = Arguments::PropertyList_get_value(Arguments::system_properties(), "jvmci.compiler");
3657     if (jvmciCompiler != NULL) {
3658       JVMCIRuntime::save_compiler(jvmciCompiler);
3659     }

3660   }
3661 #endif // INCLUDE_JVMCI
3662 
3663   // initialize compiler(s)
3664 #if defined(COMPILER1) || defined(COMPILER2) || defined(SHARK) || INCLUDE_JVMCI
3665   CompileBroker::compilation_init(CHECK_JNI_ERR);
3666 #endif
3667 
3668   // Pre-initialize some JSR292 core classes to avoid deadlock during class loading.
3669   // It is done after compilers are initialized, because otherwise compilations of
3670   // signature polymorphic MH intrinsics can be missed
3671   // (see SystemDictionary::find_method_handle_intrinsic).
3672   initialize_jsr292_core_classes(CHECK_JNI_ERR);
3673 
3674 #if INCLUDE_MANAGEMENT
3675   Management::initialize(THREAD);
3676 
3677   if (HAS_PENDING_EXCEPTION) {
3678     // management agent fails to start possibly due to
3679     // configuration problem and is responsible for printing