comparison src/os/bsd/vm/os_bsd.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 3b01d0321dfa
comparison
equal deleted inserted replaced
6199:3f1ab0c19c30 6200:65906dc96aa1
5799 strcat(libmawtpath, new_xawtstr); 5799 strcat(libmawtpath, new_xawtstr);
5800 if (::stat(libmawtpath, &statbuf) == 0) return false; 5800 if (::stat(libmawtpath, &statbuf) == 0) return false;
5801 5801
5802 return true; 5802 return true;
5803 } 5803 }
5804
5805 // Get the default path to the core file
5806 // Returns the length of the string
5807 int os::get_core_path(char* buffer, size_t bufferSize) {
5808 int n = jio_snprintf(buffer, bufferSize, "/cores");
5809
5810 // Truncate if theoretical string was longer than bufferSize
5811 n = MIN2(n, (int)bufferSize);
5812
5813 return n;
5814 }