< prev index next >

src/hotspot/share/oops/markWord.hpp

Print this page
rev 56776 : v2.00 -> v2.07 (CR7/v2.07/10-for-jdk14) patches combined into one; merge with 8230876.patch (2019.10.17) and jdk-14+21.

@@ -226,10 +226,14 @@
     return (mask_bits(value(), lock_mask_in_place) != unlocked_value);
   }
   bool is_unlocked() const {
     return (mask_bits(value(), biased_lock_mask_in_place) == unlocked_value);
   }
+  // ObjectMonitor::install_displaced_markword_in_object() uses
+  // is_marked() on ObjectMonitor::_header as part of the restoration
+  // protocol for an object's header. In this usage, the mark bits are
+  // only ever set (and cleared) on the ObjectMonitor::_header field.
   bool is_marked()   const {
     return (mask_bits(value(), lock_mask_in_place) == marked_value);
   }
   bool is_neutral()  const { return (mask_bits(value(), biased_lock_mask_in_place) == unlocked_value); }
 
< prev index next >