410 void write_header(); |
410 void write_header(); |
411 void write_region(int region, char* base, size_t size, |
411 void write_region(int region, char* base, size_t size, |
412 bool read_only, bool allow_exec); |
412 bool read_only, bool allow_exec); |
413 size_t write_archive_heap_regions(GrowableArray<MemRegion> *heap_mem, |
413 size_t write_archive_heap_regions(GrowableArray<MemRegion> *heap_mem, |
414 GrowableArray<ArchiveHeapOopmapInfo> *oopmaps, |
414 GrowableArray<ArchiveHeapOopmapInfo> *oopmaps, |
415 int first_region_id, int max_num_regions, |
415 int first_region_id, int max_num_regions); |
416 bool print_log); |
|
417 void write_bytes(const void* buffer, size_t count); |
416 void write_bytes(const void* buffer, size_t count); |
418 void write_bytes_aligned(const void* buffer, size_t count); |
417 void write_bytes_aligned(const void* buffer, size_t count); |
419 size_t read_bytes(void* buffer, size_t count); |
418 size_t read_bytes(void* buffer, size_t count); |
420 char* map_regions(int regions[], char* saved_base[], size_t len); |
419 char* map_regions(int regions[], char* saved_base[], size_t len); |
421 char* map_region(int i, char** top_ret); |
420 char* map_region(int i, char** top_ret); |
477 } |
476 } |
478 |
477 |
479 char* region_addr(int idx); |
478 char* region_addr(int idx); |
480 |
479 |
481 private: |
480 private: |
|
481 void seek_to_position(size_t pos); |
482 char* skip_first_path_entry(const char* path) NOT_CDS_RETURN_(NULL); |
482 char* skip_first_path_entry(const char* path) NOT_CDS_RETURN_(NULL); |
483 int num_paths(const char* path) NOT_CDS_RETURN_(0); |
483 int num_paths(const char* path) NOT_CDS_RETURN_(0); |
484 GrowableArray<const char*>* create_path_array(const char* path) NOT_CDS_RETURN_(NULL); |
484 GrowableArray<const char*>* create_path_array(const char* path) NOT_CDS_RETURN_(NULL); |
485 bool fail(const char* msg, const char* name) NOT_CDS_RETURN_(false); |
485 bool fail(const char* msg, const char* name) NOT_CDS_RETURN_(false); |
486 bool check_paths(int shared_path_start_idx, int num_paths, |
486 bool check_paths(int shared_path_start_idx, int num_paths, |