# HG changeset patch # User stefank # Date 1346756463 -7200 # Node ID df5705977fc5aaebd5af7cbdc55e33c87ada51d9 # Parent 3826a6124401beb575a1443df248f1e07750d9aa 7195968: NPG: oopDesc::list_ptr_from_klass is broken Summary: Remove incorrect cast Reviewed-by: brutisso, coleenp diff -r 3826a6124401 -r df5705977fc5 hotspot/src/share/vm/oops/oop.inline.hpp --- a/hotspot/src/share/vm/oops/oop.inline.hpp Mon Sep 03 18:37:12 2012 -0400 +++ b/hotspot/src/share/vm/oops/oop.inline.hpp Tue Sep 04 13:01:03 2012 +0200 @@ -135,7 +135,7 @@ 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;