6302804: Hotspot VM dies ungraceful death when C heap is exhausted in various places

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
This commit is contained in:
Coleen Phillimore 2011-01-03 14:09:11 -05:00
parent dd59086fcc
commit dec384330b
6 changed files with 71 additions and 23 deletions

View file

@ -226,7 +226,7 @@ static jint _exiting_out_of_mem = 0;
void report_vm_out_of_memory(const char* file, int line, size_t size,
const char* message) {
if (Debugging || error_is_suppressed(file, line)) return;
if (Debugging) return;
// We try to gather additional information for the first out of memory
// error only; gathering additional data might cause an allocation and a