Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
7460:6c3f47d964f3 | 7461:561148896559 |
---|---|
61 | 61 |
62 struct FileMapHeader { | 62 struct FileMapHeader { |
63 int _magic; // identify file type. | 63 int _magic; // identify file type. |
64 int _version; // (from enum, above.) | 64 int _version; // (from enum, above.) |
65 size_t _alignment; // how shared archive should be aligned | 65 size_t _alignment; // how shared archive should be aligned |
66 int _obj_alignment; // value of ObjectAlignmentInBytes | |
66 | 67 |
67 struct space_info { | 68 struct space_info { |
68 int _file_offset; // sizeof(this) rounded to vm page size | 69 int _file_offset; // sizeof(this) rounded to vm page size |
69 char* _base; // copy-on-write base address | 70 char* _base; // copy-on-write base address |
70 size_t _capacity; // for validity checking | 71 size_t _capacity; // for validity checking |