< prev index next >

src/hotspot/os/aix/os_aix.cpp

Print this page

        

*** 1204,1222 **** ::exit(1); } // Die immediately, no exit hook, no abort hook, no cleanup. - // Dump a core file, if possible, for debugging. void os::die() { ! if (TestUnresponsiveErrorHandler && !CreateCoredumpOnCrash) { ! // For TimeoutInErrorHandlingTest.java, we just kill the VM ! // and don't take the time to generate a core file. ! os::signal_raise(SIGKILL); ! } else { ! ::abort(); ! } } intx os::current_thread_id() { return (intx)pthread_self(); } --- 1204,1215 ---- ::exit(1); } // Die immediately, no exit hook, no abort hook, no cleanup. void os::die() { ! ::abort(); } intx os::current_thread_id() { return (intx)pthread_self(); }
*** 1325,1349 **** } // RTLD_LAZY is currently not implemented. The dl is loaded immediately with all its dependants. void * result= ::dlopen(filename, RTLD_LAZY); if (result != NULL) { - Events::log(NULL, "Loaded shared library %s", filename); // Reload dll cache. Don't do this in signal handling. LoadedLibraries::reload(); return result; } else { // error analysis when dlopen fails ! const char* error_report = ::dlerror(); ! if (error_report == NULL) { ! error_report = "dlerror returned no error description"; ! } ! if (ebuf != NULL && ebuflen > 0) { snprintf(ebuf, ebuflen - 1, "%s, LIBPATH=%s, LD_LIBRARY_PATH=%s : %s", filename, ::getenv("LIBPATH"), ::getenv("LD_LIBRARY_PATH"), error_report); } - Events::log(NULL, "Loading shared library %s failed, %s", filename, error_report); } return NULL; } void* os::dll_lookup(void* handle, const char* name) { --- 1318,1337 ---- } // RTLD_LAZY is currently not implemented. The dl is loaded immediately with all its dependants. void * result= ::dlopen(filename, RTLD_LAZY); if (result != NULL) { // Reload dll cache. Don't do this in signal handling. LoadedLibraries::reload(); return result; } else { // error analysis when dlopen fails ! const char* const error_report = ::dlerror(); ! if (error_report && ebuf && ebuflen > 0) { snprintf(ebuf, ebuflen - 1, "%s, LIBPATH=%s, LD_LIBRARY_PATH=%s : %s", filename, ::getenv("LIBPATH"), ::getenv("LD_LIBRARY_PATH"), error_report); } } return NULL; } void* os::dll_lookup(void* handle, const char* name) {
< prev index next >