comparison src/os/solaris/vm/os_solaris.cpp @ 6200:65906dc96aa1

7129724: MAC: Core file location is wrong in crash report Summary: Updated core path location to reflect macosx default Reviewed-by: dholmes, kamg
author mikael
date Tue, 03 Jul 2012 17:35:00 -0700
parents d2a62e0f25eb
children 957c266d8bc5 da91efe96a93
comparison
equal deleted inserted replaced
6199:3f1ab0c19c30 6200:65906dc96aa1
6535 6535
6536 int os::bind(int fd, struct sockaddr* him, socklen_t len) { 6536 int os::bind(int fd, struct sockaddr* him, socklen_t len) {
6537 INTERRUPTIBLE_RETURN_INT_NORESTART(::bind(fd, him, len),\ 6537 INTERRUPTIBLE_RETURN_INT_NORESTART(::bind(fd, him, len),\
6538 os::Solaris::clear_interrupted); 6538 os::Solaris::clear_interrupted);
6539 } 6539 }
6540
6541 // Get the default path to the core file
6542 // Returns the length of the string
6543 int os::get_core_path(char* buffer, size_t bufferSize) {
6544 const char* p = get_current_directory(buffer, bufferSize);
6545
6546 if (p == NULL) {
6547 assert(p != NULL, "failed to get current directory");
6548 return 0;
6549 }
6550
6551 return strlen(buffer);
6552 }