5052 if (::stat(libmawtpath, &statbuf) == 0) return false; 5053 5054 // check libawt_xawt.so 5055 strcpy(libmawtpath, buf); 5056 strcat(libmawtpath, new_xawtstr); 5057 if (::stat(libmawtpath, &statbuf) == 0) return false; 5058 5059 return true; 5060 } 5061 5062 // Get the default path to the core file 5063 // Returns the length of the string 5064 int os::get_core_path(char* buffer, size_t bufferSize) { 5065 const char* p = get_current_directory(buffer, bufferSize); 5066 5067 if (p == NULL) { 5068 assert(p != NULL, "failed to get current directory"); 5069 return 0; 5070 } 5071 5072 return strlen(buffer); 5073 } 5074 5075 #ifndef PRODUCT 5076 void TestReserveMemorySpecial_test() { 5077 // No tests available for this platform 5078 } 5079 #endif | 5052 if (::stat(libmawtpath, &statbuf) == 0) return false; 5053 5054 // check libawt_xawt.so 5055 strcpy(libmawtpath, buf); 5056 strcat(libmawtpath, new_xawtstr); 5057 if (::stat(libmawtpath, &statbuf) == 0) return false; 5058 5059 return true; 5060 } 5061 5062 // Get the default path to the core file 5063 // Returns the length of the string 5064 int os::get_core_path(char* buffer, size_t bufferSize) { 5065 const char* p = get_current_directory(buffer, bufferSize); 5066 5067 if (p == NULL) { 5068 assert(p != NULL, "failed to get current directory"); 5069 return 0; 5070 } 5071 5072 jio_snprintf(buffer, bufferSize, "%s/core or core.%d", 5073 p, current_process_id()); 5074 5075 return strlen(buffer); 5076 } 5077 5078 #ifndef PRODUCT 5079 void TestReserveMemorySpecial_test() { 5080 // No tests available for this platform 5081 } 5082 #endif |