< prev index next >

src/os_cpu/solaris_sparc/vm/os_solaris_sparc.cpp

Print this page




 295 }
 296 
 297 
 298 bool os::is_allocatable(size_t bytes) {
 299 #ifdef _LP64
 300    return true;
 301 #else
 302    return (bytes <= (size_t)3835*M);
 303 #endif
 304 }
 305 
 306 extern "C" JNIEXPORT int
 307 JVM_handle_solaris_signal(int sig, siginfo_t* info, void* ucVoid,
 308                           int abort_if_unrecognized) {
 309   ucontext_t* uc = (ucontext_t*) ucVoid;
 310 
 311   Thread* t = ThreadLocalStorage::get_thread_slow();
 312 
 313   // Must do this before SignalHandlerMark, if crash protection installed we will longjmp away
 314   // (no destructors can be run)
 315   os::WatcherThreadCrashProtection::check_crash_protection(sig, t);
 316 
 317   SignalHandlerMark shm(t);
 318 
 319   if(sig == SIGPIPE || sig == SIGXFSZ) {
 320     if (os::Solaris::chained_handler(sig, info, ucVoid)) {
 321       return true;
 322     } else {
 323       if (PrintMiscellaneous && (WizardMode || Verbose)) {
 324         char buf[64];
 325         warning("Ignoring %s - see 4229104 or 6499219",
 326                 os::exception_name(sig, buf, sizeof(buf)));
 327 
 328       }
 329       return true;
 330     }
 331   }
 332 
 333   JavaThread* thread = NULL;
 334   VMThread* vmthread = NULL;
 335   if (os::Solaris::signal_handlers_are_installed) {




 295 }
 296 
 297 
 298 bool os::is_allocatable(size_t bytes) {
 299 #ifdef _LP64
 300    return true;
 301 #else
 302    return (bytes <= (size_t)3835*M);
 303 #endif
 304 }
 305 
 306 extern "C" JNIEXPORT int
 307 JVM_handle_solaris_signal(int sig, siginfo_t* info, void* ucVoid,
 308                           int abort_if_unrecognized) {
 309   ucontext_t* uc = (ucontext_t*) ucVoid;
 310 
 311   Thread* t = ThreadLocalStorage::get_thread_slow();
 312 
 313   // Must do this before SignalHandlerMark, if crash protection installed we will longjmp away
 314   // (no destructors can be run)
 315   os::ThreadCrashProtection::check_crash_protection(sig, t);
 316 
 317   SignalHandlerMark shm(t);
 318 
 319   if(sig == SIGPIPE || sig == SIGXFSZ) {
 320     if (os::Solaris::chained_handler(sig, info, ucVoid)) {
 321       return true;
 322     } else {
 323       if (PrintMiscellaneous && (WizardMode || Verbose)) {
 324         char buf[64];
 325         warning("Ignoring %s - see 4229104 or 6499219",
 326                 os::exception_name(sig, buf, sizeof(buf)));
 327 
 328       }
 329       return true;
 330     }
 331   }
 332 
 333   JavaThread* thread = NULL;
 334   VMThread* vmthread = NULL;
 335   if (os::Solaris::signal_handlers_are_installed) {


< prev index next >