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

src/os/linux/vm/os_linux.cpp

Print this page

        

*** 5445,5454 **** --- 5445,5466 ---- if (::stat(libmawtpath, &statbuf) == 0) return false; 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) { + const char* p = get_current_directory(buffer, bufferSize); + + if (p == NULL) { + assert(p != NULL, "failed to get current directory"); + return 0; + } + + return strlen(buffer); + } #ifdef JAVASE_EMBEDDED // // A thread to watch the '/dev/mem_notify' device, which will tell us when the OS is running low on memory. //
src/os/linux/vm/os_linux.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File