src/hotspot/share/include/cds.h
changeset 55698 284ac8027efa
parent 54927 1512d88b24c6
child 57898 5ddb746d45e0
equal deleted inserted replaced
55697:7fd4446c02ee 55698:284ac8027efa
    31 // We should use only standard C types. Do not use custom types such as bool, intx,
    31 // We should use only standard C types. Do not use custom types such as bool, intx,
    32 // etc, to avoid introducing unnecessary dependencies to other HotSpot type declarations.
    32 // etc, to avoid introducing unnecessary dependencies to other HotSpot type declarations.
    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 8 // this must be the same as MetaspaceShared::n_regions
    37 #define CDS_ARCHIVE_MAGIC 0xf00baba2
    37 #define CDS_ARCHIVE_MAGIC 0xf00baba2
    38 #define CDS_DYNAMIC_ARCHIVE_MAGIC 0xf00baba8
    38 #define CDS_DYNAMIC_ARCHIVE_MAGIC 0xf00baba8
    39 #define CURRENT_CDS_ARCHIVE_VERSION 5
    39 #define CURRENT_CDS_ARCHIVE_VERSION 6
    40 #define INVALID_CDS_ARCHIVE_VERSION -1
    40 #define INVALID_CDS_ARCHIVE_VERSION -1
    41 
    41 
    42 struct CDSFileMapRegion {
    42 struct CDSFileMapRegion {
    43   int        _crc;           // crc checksum of the current space
    43   int        _crc;           // crc checksum of the current space
    44   size_t     _file_offset;   // sizeof(this) rounded to vm page size
    44   size_t     _file_offset;   // sizeof(this) rounded to vm page size