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

src/os/bsd/vm/os_bsd.cpp

Print this page

        

*** 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