src/os/bsd/vm/os_bsd.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/os/bsd/vm/os_bsd.cpp	Tue Jun 26 17:29:44 2012
--- new/src/os/bsd/vm/os_bsd.cpp	Tue Jun 26 17:29:44 2012

*** 5799,5803 **** --- 5799,5816 ---- strcat(libmawtpath, new_xawtstr); if (::stat(libmawtpath, &statbuf) == 0) return false; return true; } + + // Generate the candidate core paths into the supplied buffer + // Return the number of characters actually generated + int os::get_core_paths(char* buffer, size_t bufferSize) { + int n; + + n = jio_snprintf(buffer, bufferSize, "/cores/core.%d", current_process_id()); + + // Truncate if theoretical string was longer than bufferSize + n = MIN2(n, (int)bufferSize); + + return n; + }

src/os/bsd/vm/os_bsd.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File