hotspot/src/share/vm/opto/callnode.hpp
changeset 360 21d113ecbf6a
parent 247 2aeab9ac7fea
child 594 9f4474e5dbaf
--- a/hotspot/src/share/vm/opto/callnode.hpp	Fri Apr 11 09:56:35 2008 -0400
+++ b/hotspot/src/share/vm/opto/callnode.hpp	Sun Apr 13 17:43:42 2008 -0400
@@ -725,7 +725,8 @@
 
   // Conservatively small estimate of offset of first non-header byte.
   int minimum_header_size() {
-    return is_AllocateArray() ? sizeof(arrayOopDesc) : sizeof(oopDesc);
+    return is_AllocateArray() ? arrayOopDesc::base_offset_in_bytes(T_BYTE) :
+                                instanceOopDesc::base_offset_in_bytes();
   }
 
   // Return the corresponding initialization barrier (or null if none).