Mercurial > hg > truffle
diff src/share/vm/memory/filemap.hpp @ 7461:561148896559
8005076: Creating a CDS archive with one alignment and running another causes a crash.
Summary: Save the alignment when writing the CDS and compare it when reading the CDS.
Reviewed-by: kvn, coleenp
author | hseigel |
---|---|
date | Tue, 08 Jan 2013 13:38:11 -0500 |
parents | 716c64bda5ba |
children | fad90b102190 |
line wrap: on
line diff
--- a/src/share/vm/memory/filemap.hpp Mon Jan 07 15:32:51 2013 -0500 +++ b/src/share/vm/memory/filemap.hpp Tue Jan 08 13:38:11 2013 -0500 @@ -63,6 +63,7 @@ int _magic; // identify file type. int _version; // (from enum, above.) size_t _alignment; // how shared archive should be aligned + int _obj_alignment; // value of ObjectAlignmentInBytes struct space_info { int _file_offset; // sizeof(this) rounded to vm page size