7195968: NPG: oopDesc::list_ptr_from_klass is broken
Summary: Remove incorrect cast
Reviewed-by: brutisso, coleenp
--- 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;