mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8008310: Some adjustments needed to minimal VM warnings and errors for unsupported command line options
Changes to arguments.cpp for warnings vs. errors. Changes for CDS arguments. Reviewed-by: coleenp, cjplummer
This commit is contained in:
parent
715db0beb3
commit
a6be16446d
3 changed files with 46 additions and 26 deletions
|
@ -112,12 +112,19 @@ public:
|
|||
char* region_base(int i) { return _header._space[i]._base; }
|
||||
struct FileMapHeader* header() { return &_header; }
|
||||
|
||||
static void set_current_info(FileMapInfo* info) { _current_info = info; }
|
||||
static FileMapInfo* current_info() { return _current_info; }
|
||||
static void set_current_info(FileMapInfo* info) {
|
||||
CDS_ONLY(_current_info = info;)
|
||||
}
|
||||
|
||||
static FileMapInfo* current_info() {
|
||||
CDS_ONLY(return _current_info;)
|
||||
NOT_CDS(return NULL;)
|
||||
}
|
||||
|
||||
static void assert_mark(bool check);
|
||||
|
||||
// File manipulation.
|
||||
bool initialize();
|
||||
bool initialize() NOT_CDS_RETURN_(false);
|
||||
bool open_for_read();
|
||||
void open_for_write();
|
||||
void write_header();
|
||||
|
@ -141,7 +148,7 @@ public:
|
|||
void fail_continue(const char *msg, ...);
|
||||
|
||||
// Return true if given address is in the mapped shared space.
|
||||
bool is_in_shared_space(const void* p);
|
||||
bool is_in_shared_space(const void* p) NOT_CDS_RETURN_(false);
|
||||
};
|
||||
|
||||
#endif // SHARE_VM_MEMORY_FILEMAP_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue