1.1 --- a/src/share/vm/memory/filemap.cpp Mon Jan 07 15:32:51 2013 -0500 1.2 +++ b/src/share/vm/memory/filemap.cpp Tue Jan 08 13:38:11 2013 -0500 1.3 @@ -119,6 +119,7 @@ 1.4 _header._magic = 0xf00baba2; 1.5 _header._version = _current_version; 1.6 _header._alignment = alignment; 1.7 + _header._obj_alignment = ObjectAlignmentInBytes; 1.8 1.9 // The following fields are for sanity checks for whether this archive 1.10 // will function correctly with this JVM and the bootclasspath it's 1.11 @@ -473,6 +474,12 @@ 1.12 " version or build of HotSpot."); 1.13 return false; 1.14 } 1.15 + if (_header._obj_alignment != ObjectAlignmentInBytes) { 1.16 + fail_continue("The shared archive file's ObjectAlignmentInBytes of %d" 1.17 + " does not equal the current ObjectAlignmentInBytes of %d.", 1.18 + _header._obj_alignment, ObjectAlignmentInBytes); 1.19 + return false; 1.20 + } 1.21 1.22 // Cannot verify interpreter yet, as it can only be created after the GC 1.23 // heap has been initialized.