5071 if (::stat(libmawtpath, &statbuf) == 0) return false; 5072 5073 // check libawt_xawt.so 5074 strcpy(libmawtpath, buf); 5075 strcat(libmawtpath, new_xawtstr); 5076 if (::stat(libmawtpath, &statbuf) == 0) return false; 5077 5078 return true; 5079 } 5080 5081 // Get the default path to the core file 5082 // Returns the length of the string 5083 int os::get_core_path(char* buffer, size_t bufferSize) { 5084 const char* p = get_current_directory(buffer, bufferSize); 5085 5086 if (p == NULL) { 5087 assert(p != NULL, "failed to get current directory"); 5088 return 0; 5089 } 5090 5091 return strlen(buffer); 5092 } 5093 5094 #ifndef PRODUCT 5095 void TestReserveMemorySpecial_test() { 5096 // No tests available for this platform 5097 } 5098 #endif | 5071 if (::stat(libmawtpath, &statbuf) == 0) return false; 5072 5073 // check libawt_xawt.so 5074 strcpy(libmawtpath, buf); 5075 strcat(libmawtpath, new_xawtstr); 5076 if (::stat(libmawtpath, &statbuf) == 0) return false; 5077 5078 return true; 5079 } 5080 5081 // Get the default path to the core file 5082 // Returns the length of the string 5083 int os::get_core_path(char* buffer, size_t bufferSize) { 5084 const char* p = get_current_directory(buffer, bufferSize); 5085 5086 if (p == NULL) { 5087 assert(p != NULL, "failed to get current directory"); 5088 return 0; 5089 } 5090 5091 jio_snprintf(buffer, bufferSize, "%s/core or core.%d", current_process_id()); 5092 5093 return strlen(buffer); 5094 } 5095 5096 #ifndef PRODUCT 5097 void TestReserveMemorySpecial_test() { 5098 // No tests available for this platform 5099 } 5100 #endif |