mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +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
|
@ -1364,7 +1364,7 @@ JVM_ENTRY(jobject, JVM_GetStackAccessControlContext(JNIEnv *env, jclass cls))
|
|||
protection_domain = method->method_holder()->protection_domain();
|
||||
}
|
||||
|
||||
if ((previous_protection_domain != protection_domain) && (protection_domain != NULL)) {
|
||||
if ((!oopDesc::equals(previous_protection_domain, protection_domain)) && (protection_domain != NULL)) {
|
||||
local_array->push(protection_domain);
|
||||
previous_protection_domain = protection_domain;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue