comparison src/share/vm/memory/filemap.hpp @ 8720:fad90b102190

8008310: Some adjustments needed to minimal VM warnings and errors for unsupported command line options Summary: Changes to arguments.cpp for warnings vs. errors. Changes for CDS arguments. Reviewed-by: coleenp, cjplummer
author jprovino
date Wed, 06 Mar 2013 13:38:17 -0500
parents 561148896559
children 221df7e37535
comparison
equal deleted inserted replaced
8685:5cf033ff06c4 8720:fad90b102190
110 size_t alignment() { return _header._alignment; } 110 size_t alignment() { return _header._alignment; }
111 size_t space_capacity(int i) { return _header._space[i]._capacity; } 111 size_t space_capacity(int i) { return _header._space[i]._capacity; }
112 char* region_base(int i) { return _header._space[i]._base; } 112 char* region_base(int i) { return _header._space[i]._base; }
113 struct FileMapHeader* header() { return &_header; } 113 struct FileMapHeader* header() { return &_header; }
114 114
115 static void set_current_info(FileMapInfo* info) { _current_info = info; } 115 static void set_current_info(FileMapInfo* info) {
116 static FileMapInfo* current_info() { return _current_info; } 116 CDS_ONLY(_current_info = info;)
117 }
118
119 static FileMapInfo* current_info() {
120 CDS_ONLY(return _current_info;)
121 NOT_CDS(return NULL;)
122 }
123
117 static void assert_mark(bool check); 124 static void assert_mark(bool check);
118 125
119 // File manipulation. 126 // File manipulation.
120 bool initialize(); 127 bool initialize() NOT_CDS_RETURN_(false);
121 bool open_for_read(); 128 bool open_for_read();
122 void open_for_write(); 129 void open_for_write();
123 void write_header(); 130 void write_header();
124 void write_space(int i, Metaspace* space, bool read_only); 131 void write_space(int i, Metaspace* space, bool read_only);
125 void write_region(int region, char* base, size_t size, 132 void write_region(int region, char* base, size_t size,
139 // Errors. 146 // Errors.
140 static void fail_stop(const char *msg, ...); 147 static void fail_stop(const char *msg, ...);
141 void fail_continue(const char *msg, ...); 148 void fail_continue(const char *msg, ...);
142 149
143 // Return true if given address is in the mapped shared space. 150 // Return true if given address is in the mapped shared space.
144 bool is_in_shared_space(const void* p); 151 bool is_in_shared_space(const void* p) NOT_CDS_RETURN_(false);
145 }; 152 };
146 153
147 #endif // SHARE_VM_MEMORY_FILEMAP_HPP 154 #endif // SHARE_VM_MEMORY_FILEMAP_HPP