changeset 3603:46c017102631

7195968: NPG: oopDesc::list_ptr_from_klass is broken Summary: Remove incorrect cast Reviewed-by: brutisso, coleenp
author stefank
date Tue, 04 Sep 2012 13:01:03 +0200
parents 03049e0e8544
children ca11db66f9de
files src/share/vm/oops/oop.inline.hpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/oops/oop.inline.hpp	Mon Sep 03 18:37:12 2012 -0400
+++ b/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;