< prev index next >

src/hotspot/share/runtime/synchronizer.inline.hpp

Print this page
*** 32,10 ***
--- 32,14 ---
  
  inline ObjectMonitor* ObjectSynchronizer::read_monitor(markWord mark) {
    return mark.monitor();
  }
  
+ inline ObjectMonitor* ObjectSynchronizer::read_monitor(Thread* current, oop obj) {
+   return ObjectSynchronizer::read_monitor(current, obj, obj->mark());
+ }
+ 
  inline ObjectMonitor* ObjectSynchronizer::read_monitor(Thread* current, oop obj, markWord mark) {
    if (!UseObjectMonitorTable) {
      return read_monitor(mark);
    } else {
      return LightweightSynchronizer::get_monitor_from_table(current, obj);
< prev index next >