mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-25 01:30:10 +00:00
7195968: NPG: oopDesc::list_ptr_from_klass is broken
Remove incorrect cast Reviewed-by: brutisso, coleenp
This commit is contained in:
parent
eff152a7be
commit
3610a76e25
@ -135,7 +135,7 @@ inline void oopDesc::set_klass_to_list_ptr(oop k) {
|
||||
inline oop oopDesc::list_ptr_from_klass() {
|
||||
// This is only to be used during GC, for from-space objects.
|
||||
if (UseCompressedKlassPointers) {
|
||||
return (oop)decode_heap_oop((oop)(address)_metadata._compressed_klass);
|
||||
return decode_heap_oop(_metadata._compressed_klass);
|
||||
} else {
|
||||
// Special case for GC
|
||||
return (oop)(address)_metadata._klass;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user