src/os/aix/vm/os_aix.cpp

Print this page




5055   if (::stat(libmawtpath, &statbuf) == 0) return false;
5056 
5057   // check libawt_xawt.so
5058   strcpy(libmawtpath, buf);
5059   strcat(libmawtpath, new_xawtstr);
5060   if (::stat(libmawtpath, &statbuf) == 0) return false;
5061 
5062   return true;
5063 }
5064 
5065 // Get the default path to the core file
5066 // Returns the length of the string
5067 int os::get_core_path(char* buffer, size_t bufferSize) {
5068   const char* p = get_current_directory(buffer, bufferSize);
5069 
5070   if (p == NULL) {
5071     assert(p != NULL, "failed to get current directory");
5072     return 0;
5073   }
5074 



5075   return strlen(buffer);
5076 }
5077 
5078 #ifndef PRODUCT
5079 void TestReserveMemorySpecial_test() {
5080   // No tests available for this platform
5081 }
5082 #endif


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