mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +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
|
@ -6537,3 +6537,16 @@ int os::bind(int fd, struct sockaddr* him, socklen_t len) {
|
|||
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue