src/os/solaris/vm/os_solaris.cpp

Print this page




5962         errno = EINPROGRESS; // fall through
5963       } else if (errno == EISCONN) {
5964         errno = 0;
5965         return OS_OK;
5966       }
5967     }
5968   }
5969   return _result;
5970 }
5971 
5972 // Get the default path to the core file
5973 // Returns the length of the string
5974 int os::get_core_path(char* buffer, size_t bufferSize) {
5975   const char* p = get_current_directory(buffer, bufferSize);
5976 
5977   if (p == NULL) {
5978     assert(p != NULL, "failed to get current directory");
5979     return 0;
5980   }
5981 



5982   return strlen(buffer);
5983 }
5984 
5985 #ifndef PRODUCT
5986 void TestReserveMemorySpecial_test() {
5987   // No tests available for this platform
5988 }
5989 #endif


5962         errno = EINPROGRESS; // fall through
5963       } else if (errno == EISCONN) {
5964         errno = 0;
5965         return OS_OK;
5966       }
5967     }
5968   }
5969   return _result;
5970 }
5971 
5972 // Get the default path to the core file
5973 // Returns the length of the string
5974 int os::get_core_path(char* buffer, size_t bufferSize) {
5975   const char* p = get_current_directory(buffer, bufferSize);
5976 
5977   if (p == NULL) {
5978     assert(p != NULL, "failed to get current directory");
5979     return 0;
5980   }
5981 
5982   jio_snprintf(buffer, bufferSize, "%s/core or core.%d",
5983                                               p, current_process_id());
5984 
5985   return strlen(buffer);
5986 }
5987 
5988 #ifndef PRODUCT
5989 void TestReserveMemorySpecial_test() {
5990   // No tests available for this platform
5991 }
5992 #endif