Mercurial > hg > graal-compiler
comparison src/share/vm/utilities/debug.cpp @ 2095:36c186bcc085
6302804: Hotspot VM dies ungraceful death when C heap is exhausted in various places.
Summary: enhance the error reporting mechanism to help user to fix the problem rather than making it look like a VM error.
Reviewed-by: kvn, kamg
author | coleenp |
---|---|
date | Mon, 03 Jan 2011 14:09:11 -0500 |
parents | 2f644f85485d |
children | 3582bf76420e |
comparison
equal
deleted
inserted
replaced
2075:06e4b9c9db76 | 2095:36c186bcc085 |
---|---|
224 // Used by report_vm_out_of_memory to detect recursion. | 224 // Used by report_vm_out_of_memory to detect recursion. |
225 static jint _exiting_out_of_mem = 0; | 225 static jint _exiting_out_of_mem = 0; |
226 | 226 |
227 void report_vm_out_of_memory(const char* file, int line, size_t size, | 227 void report_vm_out_of_memory(const char* file, int line, size_t size, |
228 const char* message) { | 228 const char* message) { |
229 if (Debugging || error_is_suppressed(file, line)) return; | 229 if (Debugging) return; |
230 | 230 |
231 // We try to gather additional information for the first out of memory | 231 // We try to gather additional information for the first out of memory |
232 // error only; gathering additional data might cause an allocation and a | 232 // error only; gathering additional data might cause an allocation and a |
233 // recursive out_of_memory condition. | 233 // recursive out_of_memory condition. |
234 | 234 |