comparison src/share/vm/utilities/debug.cpp @ 2177:3582bf76420e

6990754: Use native memory and reference counting to implement SymbolTable Summary: move symbols from permgen into C heap and reference count them Reviewed-by: never, acorn, jmasa, stefank
author coleenp
date Thu, 27 Jan 2011 16:11:27 -0800
parents 36c186bcc085
children 1d1603768966
comparison
equal deleted inserted replaced
2176:27e4ea99855d 2177:3582bf76420e
261 #ifndef PRODUCT 261 #ifndef PRODUCT
262 warning("Untested: %s in %s: %d\n", message, file, line); 262 warning("Untested: %s in %s: %d\n", message, file, line);
263 #endif // PRODUCT 263 #endif // PRODUCT
264 } 264 }
265 265
266 void report_out_of_shared_space(SharedSpaceType shared_space) {
267 static const char* name[] = {
268 "permanent generation",
269 "shared read only space",
270 "shared read write space",
271 "shared miscellaneous data space"
272 };
273 static const char* flag[] = {
274 "PermGen",
275 "SharedReadOnlySize",
276 "SharedReadWriteSize",
277 "SharedMiscDataSize"
278 };
279
280 warning("\nThe %s is not large enough\n"
281 "to preload requested classes. Use -XX:%s=\n"
282 "to increase the initial size of %s.\n",
283 name[shared_space], flag[shared_space], name[shared_space]);
284 exit(2);
285 }
286
266 void report_java_out_of_memory(const char* message) { 287 void report_java_out_of_memory(const char* message) {
267 static jint out_of_memory_reported = 0; 288 static jint out_of_memory_reported = 0;
268 289
269 // A number of threads may attempt to report OutOfMemoryError at around the 290 // A number of threads may attempt to report OutOfMemoryError at around the
270 // same time. To avoid dumping the heap or executing the data collection 291 // same time. To avoid dumping the heap or executing the data collection