--- old/src/os/bsd/vm/os_bsd.cpp 2012-07-02 09:41:36.763927373 -0700 +++ new/src/os/bsd/vm/os_bsd.cpp 2012-07-02 09:41:36.679928431 -0700 @@ -5801,3 +5801,14 @@ return true; } + +// 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"); + + // Truncate if theoretical string was longer than bufferSize + n = MIN2(n, (int)bufferSize); + + return n; +}