mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
7129724: MAC: Core file location is wrong in crash report
Updated core path location to reflect macosx default Reviewed-by: dholmes, kamg
This commit is contained in:
parent
d1080de4ee
commit
af253d110d
5 changed files with 45 additions and 5 deletions
|
@ -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
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue