mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue