mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
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:
parent
dd59086fcc
commit
dec384330b
6 changed files with 71 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue