mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8230841: Remove oopDesc::equals()
Reviewed-by: rkennke, tschatzl
This commit is contained in:
parent
cb50d3b4f3
commit
2d6874b861
52 changed files with 119 additions and 132 deletions
|
@ -171,7 +171,7 @@ bool ObjectSynchronizer::quick_notify(oopDesc* obj, Thread* self, bool all) {
|
|||
|
||||
if (mark.has_monitor()) {
|
||||
ObjectMonitor* const mon = mark.monitor();
|
||||
assert(oopDesc::equals((oop) mon->object(), obj), "invariant");
|
||||
assert(mon->object() == obj, "invariant");
|
||||
if (mon->owner() != self) return false; // slow-path for IMS exception
|
||||
|
||||
if (mon->first_waiter() != NULL) {
|
||||
|
@ -215,7 +215,7 @@ bool ObjectSynchronizer::quick_enter(oop obj, Thread* self,
|
|||
|
||||
if (mark.has_monitor()) {
|
||||
ObjectMonitor* const m = mark.monitor();
|
||||
assert(oopDesc::equals((oop) m->object(), obj), "invariant");
|
||||
assert(m->object() == obj, "invariant");
|
||||
Thread* const owner = (Thread *) m->_owner;
|
||||
|
||||
// Lock contention and Transactional Lock Elision (TLE) diagnostics
|
||||
|
@ -1301,7 +1301,7 @@ ObjectMonitor* ObjectSynchronizer::inflate(Thread* self,
|
|||
ObjectMonitor* inf = mark.monitor();
|
||||
markWord dmw = inf->header();
|
||||
assert(dmw.is_neutral(), "invariant: header=" INTPTR_FORMAT, dmw.value());
|
||||
assert(oopDesc::equals((oop) inf->object(), object), "invariant");
|
||||
assert(inf->object() == object, "invariant");
|
||||
assert(ObjectSynchronizer::verify_objmon_isinpool(inf), "monitor is invalid");
|
||||
return inf;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue