comparison src/os/linux/vm/os_linux.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 bf2edd3c9b0f
comparison
equal deleted inserted replaced
6199:3f1ab0c19c30 6200:65906dc96aa1
5445 if (::stat(libmawtpath, &statbuf) == 0) return false; 5445 if (::stat(libmawtpath, &statbuf) == 0) return false;
5446 5446
5447 return true; 5447 return true;
5448 } 5448 }
5449 5449
5450 // Get the default path to the core file
5451 // Returns the length of the string
5452 int os::get_core_path(char* buffer, size_t bufferSize) {
5453 const char* p = get_current_directory(buffer, bufferSize);
5454
5455 if (p == NULL) {
5456 assert(p != NULL, "failed to get current directory");
5457 return 0;
5458 }
5459
5460 return strlen(buffer);
5461 }
5450 5462
5451 #ifdef JAVASE_EMBEDDED 5463 #ifdef JAVASE_EMBEDDED
5452 // 5464 //
5453 // A thread to watch the '/dev/mem_notify' device, which will tell us when the OS is running low on memory. 5465 // A thread to watch the '/dev/mem_notify' device, which will tell us when the OS is running low on memory.
5454 // 5466 //