< prev index next >

src/hotspot/share/runtime/thread.cpp

Print this page
rev 51882 : imported patch 8211176-eager-object-monitor-init

@@ -3603,10 +3603,13 @@
   Arguments::process_sun_java_launcher_properties(args);
 
   // Initialize the os module
   os::init();
 
+  // Initialize the ObjectMonitor module
+  ObjectMonitor::init();
+
   // Record VM creation timing statistics
   TraceVmCreationTime create_vm_timer;
   create_vm_timer.start();
 
   // Initialize system properties.

@@ -3719,11 +3722,11 @@
   // Enable guard page *after* os::create_main_thread(), otherwise it would
   // crash Linux VM, see notes in os_linux.cpp.
   main_thread->create_stack_guard_pages();
 
   // Initialize Java-Level synchronization subsystem
-  ObjectMonitor::Initialize();
+  ObjectMonitor::init_2();
 
   // Initialize global modules
   jint status = init_globals();
   if (status != JNI_OK) {
     main_thread->smr_delete();
< prev index next >