< prev index next >

src/share/vm/runtime/thread.cpp

Print this page
rev 8933 : 8046148.01

*** 35,44 **** --- 35,45 ---- #include "gc/shared/workgroup.hpp" #include "interpreter/interpreter.hpp" #include "interpreter/linkResolver.hpp" #include "interpreter/oopMapCache.hpp" #include "jvmtifiles/jvmtiEnv.hpp" + #include "logging/logConfiguration.hpp" #include "memory/metaspaceShared.hpp" #include "memory/oopFactory.hpp" #include "memory/universe.inline.hpp" #include "oops/instanceKlass.hpp" #include "oops/objArrayOop.hpp"
*** 3304,3322 **** --- 3305,3330 ---- Arguments::process_sun_java_launcher_properties(args); // Initialize the os module before using TLS os::init(); + // Record VM creation timing statistics + TraceVmCreationTime create_vm_timer; + create_vm_timer.start(); + // Initialize system properties. Arguments::init_system_properties(); // So that JDK version can be used as a discriminator when parsing arguments JDK_Version_init(); // Update/Initialize System properties after JDK version number is known Arguments::init_version_specific_system_properties(); + // Make sure to initialize log configuration *before* parsing arguments + LogConfiguration::initialize(create_vm_timer.begin_time()); + // Parse arguments jint parse_result = Arguments::parse(args); if (parse_result != JNI_OK) return parse_result; os::init_before_ergo();
*** 3339,3352 **** os::pause(); } HOTSPOT_VM_INIT_BEGIN(); - // Record VM creation timing statistics - TraceVmCreationTime create_vm_timer; - create_vm_timer.start(); - // Timing (must come after argument parsing) TraceTime timer("Create VM", TraceStartupTime); // Initialize the os module after parsing the args jint os_init_2_result = os::init_2(); --- 3347,3356 ----
*** 3490,3499 **** --- 3494,3504 ---- // 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(); + LogConfiguration::post_initialize(); Metaspace::post_initialize(); HOTSPOT_VM_INIT_END(); // record VM initialization completion time
*** 3964,3973 **** --- 3969,3980 ---- delete thread; // exit_globals() will delete tty exit_globals(); + LogConfiguration::finalize(); + return true; } jboolean Threads::is_supported_jni_version_including_1_1(jint version) {
< prev index next >