--- old/src/os/solaris/vm/os_solaris.cpp 2012-07-02 09:41:36.763927373 -0700 +++ new/src/os/solaris/vm/os_solaris.cpp 2012-07-02 09:41:36.607929335 -0700 @@ -6537,3 +6537,16 @@ INTERRUPTIBLE_RETURN_INT_NORESTART(::bind(fd, him, len),\ os::Solaris::clear_interrupted); } + +// 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); +}