changeset 13198 | 271c557a7623 |
parent 13195 | be27e1b6a4b9 |
child 13340 | 40c424a6ff53 |
--- a/hotspot/src/os/bsd/vm/os_bsd.cpp Tue Jul 03 01:41:29 2012 -0400 +++ b/hotspot/src/os/bsd/vm/os_bsd.cpp Tue Jul 03 17:35:00 2012 -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; +}