Mercurial > hg > truffle
comparison src/share/vm/utilities/debug.cpp @ 227:8d852b81e775
6694099: Hotspot vm_exit_out_of_memory should dump core
Summary: This fix enables the generation of core file when process runs out of C-heap.
Reviewed-by: sbohne
author | poonam |
---|---|
date | Sun, 22 Jun 2008 20:07:58 -0700 |
parents | ba764ed4b6f2 |
children | 9c2ecc2ffb12 |
comparison
equal
deleted
inserted
replaced
226:d5ba4f8aa38a | 227:8d852b81e775 |
---|---|
206 | 206 |
207 if (first_time_here) { | 207 if (first_time_here) { |
208 Thread* thread = ThreadLocalStorage::get_thread_slow(); | 208 Thread* thread = ThreadLocalStorage::get_thread_slow(); |
209 VMError(thread, size, message, file_name, line_no).report_and_die(); | 209 VMError(thread, size, message, file_name, line_no).report_and_die(); |
210 } | 210 } |
211 vm_abort(); | 211 |
212 // Dump core and abort | |
213 vm_abort(true); | |
212 } | 214 } |
213 | 215 |
214 void report_vm_out_of_memory_vararg(const char* file_name, int line_no, size_t size, const char* format, ...) { | 216 void report_vm_out_of_memory_vararg(const char* file_name, int line_no, size_t size, const char* format, ...) { |
215 char buffer[256]; | 217 char buffer[256]; |
216 va_list ap; | 218 va_list ap; |