8252980: comment only changes extracted from JDK-8247281

Reviewed-by: iklam, dholmes
This commit is contained in:
Daniel D. Daugherty 2020-09-09 23:35:17 +00:00
parent 433394203d
commit f9339616e1
2 changed files with 7 additions and 10 deletions

View file

@ -706,9 +706,6 @@ void ObjectMonitor::EnterI(TRAPS) {
assert(_owner == Self, "invariant");
assert(object() != NULL, "invariant");
// I'd like to write:
// guarantee (((oop)(object()))->mark() == markWord::encode(this), "invariant") ;
// but as we're at a safepoint that's not safe.
UnlinkAfterAcquire(Self, &node);
if (_succ == Self) _succ = NULL;