mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8212184: Incorrect oop ref strength used for referents in FinalReference
Reviewed-by: eosterlund, kbarrett
This commit is contained in:
parent
ca91f514d8
commit
54d4acf73f
3 changed files with 13 additions and 1 deletions
|
@ -127,6 +127,9 @@ void java_lang_ref_Reference::set_discovered_raw(oop ref, oop value) {
|
|||
HeapWord* java_lang_ref_Reference::discovered_addr_raw(oop ref) {
|
||||
return ref->obj_field_addr_raw<HeapWord>(discovered_offset);
|
||||
}
|
||||
bool java_lang_ref_Reference::is_final(oop ref) {
|
||||
return InstanceKlass::cast(ref->klass())->reference_type() == REF_FINAL;
|
||||
}
|
||||
bool java_lang_ref_Reference::is_phantom(oop ref) {
|
||||
return InstanceKlass::cast(ref->klass())->reference_type() == REF_PHANTOM;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue