src/hotspot/share/runtime/sharedRuntime.cpp
changeset 57777 90ead0febf56
parent 57710 05ff6e27de45
child 57893 49fea19f0726
equal deleted inserted replaced
57774:21dccfac0ec5 57777:90ead0febf56
  3110        kptr2 < fr.interpreter_frame_monitor_begin();
  3110        kptr2 < fr.interpreter_frame_monitor_begin();
  3111        kptr2 = fr.next_monitor_in_interpreter_frame(kptr2) ) {
  3111        kptr2 = fr.next_monitor_in_interpreter_frame(kptr2) ) {
  3112     if (kptr2->obj() != NULL) {         // Avoid 'holes' in the monitor array
  3112     if (kptr2->obj() != NULL) {         // Avoid 'holes' in the monitor array
  3113       BasicLock *lock = kptr2->lock();
  3113       BasicLock *lock = kptr2->lock();
  3114       // Inflate so the displaced header becomes position-independent
  3114       // Inflate so the displaced header becomes position-independent
  3115       if (lock->displaced_header()->is_unlocked())
  3115       if (lock->displaced_header().is_unlocked())
  3116         ObjectSynchronizer::inflate_helper(kptr2->obj());
  3116         ObjectSynchronizer::inflate_helper(kptr2->obj());
  3117       // Now the displaced header is free to move
  3117       // Now the displaced header is free to move
  3118       buf[i++] = (intptr_t)lock->displaced_header();
  3118       buf[i++] = (intptr_t)lock->displaced_header().value();
  3119       buf[i++] = cast_from_oop<intptr_t>(kptr2->obj());
  3119       buf[i++] = cast_from_oop<intptr_t>(kptr2->obj());
  3120     }
  3120     }
  3121   }
  3121   }
  3122   assert(i - max_locals == active_monitor_count*2, "found the expected number of monitors");
  3122   assert(i - max_locals == active_monitor_count*2, "found the expected number of monitors");
  3123 
  3123