--- a/hotspot/src/os/bsd/vm/os_bsd.cpp Sun Dec 14 23:03:00 2014 +0000
+++ b/hotspot/src/os/bsd/vm/os_bsd.cpp Sun Dec 14 20:18:17 2014 -0500
@@ -4673,7 +4673,7 @@
// Get the default path to the core file
// Returns the length of the string
int os::get_core_path(char* buffer, size_t bufferSize) {
- int n = jio_snprintf(buffer, bufferSize, "/cores");
+ int n = jio_snprintf(buffer, bufferSize, "/cores/core.%d", current_process_id());
// Truncate if theoretical string was longer than bufferSize
n = MIN2(n, (int)bufferSize);