diff 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
line wrap: on
line diff
--- a/src/share/vm/utilities/debug.cpp	Tue Jun 17 13:08:15 2008 -0700
+++ b/src/share/vm/utilities/debug.cpp	Sun Jun 22 20:07:58 2008 -0700
@@ -208,7 +208,9 @@
     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, ...) {