diff src/share/vm/oops/arrayOop.hpp @ 1571:2d127394260e

6916623: Align object to 16 bytes to use Compressed Oops with java heap up to 64Gb Summary: Added new product ObjectAlignmentInBytes flag to control object alignment. Reviewed-by: twisti, ysr, iveresov
author kvn
date Thu, 27 May 2010 18:01:56 -0700
parents 0fbdb4381b99
children e9ff18c4ace7
line wrap: on
line diff
--- a/src/share/vm/oops/arrayOop.hpp	Thu May 27 09:54:07 2010 -0700
+++ b/src/share/vm/oops/arrayOop.hpp	Thu May 27 18:01:56 2010 -0700
@@ -92,7 +92,7 @@
   static int header_size(BasicType type) {
     size_t typesize_in_bytes = header_size_in_bytes();
     return (int)(Universe::element_type_should_be_aligned(type)
-      ? align_object_size(typesize_in_bytes/HeapWordSize)
+      ? align_object_offset(typesize_in_bytes/HeapWordSize)
       : typesize_in_bytes/HeapWordSize);
   }