equal
deleted
inserted
replaced
33 // |
33 // |
34 // Also, this is a C header file. Do not use C++ here. |
34 // Also, this is a C header file. Do not use C++ here. |
35 |
35 |
36 #define NUM_CDS_REGIONS 9 |
36 #define NUM_CDS_REGIONS 9 |
37 #define CDS_ARCHIVE_MAGIC 0xf00baba2 |
37 #define CDS_ARCHIVE_MAGIC 0xf00baba2 |
38 #define CURRENT_CDS_ARCHIVE_VERSION 4 |
38 #define CURRENT_CDS_ARCHIVE_VERSION 5 |
39 #define INVALID_CDS_ARCHIVE_VERSION -1 |
39 #define INVALID_CDS_ARCHIVE_VERSION -1 |
40 |
40 |
41 struct CDSFileMapRegion { |
41 struct CDSFileMapRegion { |
42 int _crc; // crc checksum of the current space |
42 int _crc; // crc checksum of the current space |
43 size_t _file_offset; // sizeof(this) rounded to vm page size |
43 size_t _file_offset; // sizeof(this) rounded to vm page size |
47 // by archive heap space |
47 // by archive heap space |
48 } _addr; |
48 } _addr; |
49 size_t _used; // for setting space top on read |
49 size_t _used; // for setting space top on read |
50 int _read_only; // read only space? |
50 int _read_only; // read only space? |
51 int _allow_exec; // executable code in space? |
51 int _allow_exec; // executable code in space? |
|
52 void* _oopmap; // bitmap for relocating embedded oops |
|
53 size_t _oopmap_size_in_bits; |
52 }; |
54 }; |
53 |
55 |
54 struct CDSFileMapHeaderBase { |
56 struct CDSFileMapHeaderBase { |
55 unsigned int _magic; // identify file type |
57 unsigned int _magic; // identify file type |
56 int _crc; // header crc checksum |
58 int _crc; // header crc checksum |