diff src/share/vm/oops/methodDataOop.hpp @ 2333:f767174aac14

7021653: Parfait issue in hotspot/src/share/vm/oops/methodDataOops.hpp Summary: Fix compilation error(s) Reviewed-by: kvn, phh, jcoomes, dholmes
author coleenp
date Thu, 03 Mar 2011 19:53:03 -0500
parents a97fd181b813
children bad7ecd0b6ed
line wrap: on
line diff
--- a/src/share/vm/oops/methodDataOop.hpp	Thu Mar 03 19:52:23 2011 -0500
+++ b/src/share/vm/oops/methodDataOop.hpp	Thu Mar 03 19:53:03 2011 -0500
@@ -228,7 +228,7 @@
     return byte_offset_of(DataLayout, _header._struct._bci);
   }
   static ByteSize cell_offset(int index) {
-    return byte_offset_of(DataLayout, _cells[index]);
+    return byte_offset_of(DataLayout, _cells) + in_ByteSize(index * cell_size);
   }
   // Return a value which, when or-ed as a byte into _flags, sets the flag.
   static int flag_number_to_byte_constant(int flag_number) {