mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8199781: Don't use naked == for comparing oops
Reviewed-by: coleenp, eosterlund, jrose
This commit is contained in:
parent
8b50176bdc
commit
b938ae51ce
36 changed files with 1484 additions and 1282 deletions
|
@ -607,7 +607,7 @@ bool ThreadStackTrace::is_owned_monitor_on_stack(oop object) {
|
|||
for (int j = 0; j < len; j++) {
|
||||
oop monitor = locked_monitors->at(j);
|
||||
assert(monitor != NULL, "must be a Java object");
|
||||
if (monitor == object) {
|
||||
if (oopDesc::equals(monitor, object)) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue