hotspot/src/os_cpu/solaris_x86/vm/os_solaris_x86.cpp
changeset 2154 72a9b7284ccf
parent 2105 347008ce7984
parent 2131 98f9cef66a34
child 2338 a8660a1b709b
equal deleted inserted replaced
2106:ec595a5e793e 2154:72a9b7284ccf
   297     sse_status = (*try_sse)() ? SSE_SUPPORTED : SSE_NOT_SUPPORTED;
   297     sse_status = (*try_sse)() ? SSE_SUPPORTED : SSE_NOT_SUPPORTED;
   298   }
   298   }
   299 
   299 
   300 }
   300 }
   301 
   301 
       
   302 #endif // AMD64
       
   303 
   302 bool os::supports_sse() {
   304 bool os::supports_sse() {
       
   305 #ifdef AMD64
       
   306   return true;
       
   307 #else
   303   if (sse_status == SSE_UNKNOWN)
   308   if (sse_status == SSE_UNKNOWN)
   304     check_for_sse_support();
   309     check_for_sse_support();
   305   return sse_status == SSE_SUPPORTED;
   310   return sse_status == SSE_SUPPORTED;
   306 }
       
   307 
       
   308 #endif // AMD64
   311 #endif // AMD64
       
   312 }
   309 
   313 
   310 bool os::is_allocatable(size_t bytes) {
   314 bool os::is_allocatable(size_t bytes) {
   311 #ifdef AMD64
   315 #ifdef AMD64
   312   return true;
   316   return true;
   313 #else
   317 #else
   688     struct sigaction oldAct;
   692     struct sigaction oldAct;
   689     sigaction(sig, (struct sigaction *)0, &oldAct);
   693     sigaction(sig, (struct sigaction *)0, &oldAct);
   690     if (oldAct.sa_sigaction != signalHandler) {
   694     if (oldAct.sa_sigaction != signalHandler) {
   691       void* sighand = oldAct.sa_sigaction ? CAST_FROM_FN_PTR(void*,  oldAct.sa_sigaction)
   695       void* sighand = oldAct.sa_sigaction ? CAST_FROM_FN_PTR(void*,  oldAct.sa_sigaction)
   692                                           : CAST_FROM_FN_PTR(void*, oldAct.sa_handler);
   696                                           : CAST_FROM_FN_PTR(void*, oldAct.sa_handler);
   693       warning("Unexpected Signal %d occured under user-defined signal handler %#lx", sig, (long)sighand);
   697       warning("Unexpected Signal %d occurred under user-defined signal handler %#lx", sig, (long)sighand);
   694     }
   698     }
   695   }
   699   }
   696 
   700 
   697   if (pc == NULL && uc != NULL) {
   701   if (pc == NULL && uc != NULL) {
   698     pc = (address) uc->uc_mcontext.gregs[REG_PC];
   702     pc = (address) uc->uc_mcontext.gregs[REG_PC];