diff options
author | mikael <none@none> | 2012-07-03 17:35:00 -0700 |
---|---|---|
committer | mikael <none@none> | 2012-07-03 17:35:00 -0700 |
commit | 95ee5c2b8ab83aa9bab9c8b6d5b389a0d75f9ae6 (patch) | |
tree | 99d5a546d4c94fbaf032efb04c1e70ae2d208cf8 /src/os/linux | |
parent | e4c0e9e25659e1b3dbdba3a1bc5c3e128ba96e4a (diff) |
7129724: MAC: Core file location is wrong in crash report
Summary: Updated core path location to reflect macosx default
Reviewed-by: dholmes, kamg
Diffstat (limited to 'src/os/linux')
-rw-r--r-- | src/os/linux/vm/os_linux.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/os/linux/vm/os_linux.cpp b/src/os/linux/vm/os_linux.cpp index ce7c71b9d..df6eb0e71 100644 --- a/src/os/linux/vm/os_linux.cpp +++ b/src/os/linux/vm/os_linux.cpp @@ -5447,6 +5447,18 @@ bool os::is_headless_jre() { 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 // |