7195968: NPG: oopDesc::list_ptr_from_klass is broken
authorstefank
Tue, 04 Sep 2012 13:01:03 +0200
changeset 13730 df5705977fc5
parent 13729 3826a6124401
child 13731 6c79c797ca4c
7195968: NPG: oopDesc::list_ptr_from_klass is broken Summary: Remove incorrect cast Reviewed-by: brutisso, coleenp
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;