mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8005076: Creating a CDS archive with one alignment and running another causes a crash
Save the alignment when writing the CDS and compare it when reading the CDS. Reviewed-by: kvn, coleenp
This commit is contained in:
parent
89e575df23
commit
cfea76669a
4 changed files with 19 additions and 16 deletions
|
@ -63,6 +63,7 @@ private:
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue