@@ -34,10 +34,15 @@ inline markOop ObjectMonitor::header() const { return _header; } +inline volatile markOop* ObjectMonitor::header_addr() { + assert((intptr_t)this == (intptr_t)&_header, "sync code expects this"); + return &_header; +} + inline void ObjectMonitor::set_header(markOop hdr) { _header = hdr; } inline jint ObjectMonitor::count() const {