6694099: Hotspot vm_exit_out_of_memory should dump core

This fix enables the generation of core file when process runs out of C-heap.

Reviewed-by: sbohne
This commit is contained in:
Poonam Bajaj 2008-06-22 20:07:58 -07:00
parent 69eb2b72c6
commit 1f819855d5
4 changed files with 16 additions and 8 deletions

View file

@ -208,7 +208,9 @@ void report_vm_out_of_memory(const char* file_name, int line_no, size_t size, co
Thread* thread = ThreadLocalStorage::get_thread_slow();
VMError(thread, size, message, file_name, line_no).report_and_die();
}
vm_abort();
// Dump core and abort
vm_abort(true);
}
void report_vm_out_of_memory_vararg(const char* file_name, int line_no, size_t size, const char* format, ...) {