hotspot/src/os/solaris/vm/osThread_solaris.cpp
changeset 23865 ba4aeedb2a9f
parent 23443 15e8ed68f73a
child 25351 7c198a690050
equal deleted inserted replaced
23863:76fc8456723d 23865:ba4aeedb2a9f
    47 void OSThread::pd_destroy() {
    47 void OSThread::pd_destroy() {
    48 }
    48 }
    49 
    49 
    50 // copied from synchronizer.cpp
    50 // copied from synchronizer.cpp
    51 
    51 
    52 void OSThread::handle_spinlock_contention(int tries) {
       
    53   if (NoYieldsInMicrolock) return;
       
    54 
       
    55   if (tries > 10) {
       
    56     os::yield_all(tries); // Yield to threads of any priority
       
    57   } else if (tries > 5) {
       
    58     os::yield();          // Yield to threads of same or higher priority
       
    59   }
       
    60 }
       
    61 
       
    62 void OSThread::SR_handler(Thread* thread, ucontext_t* uc) {
    52 void OSThread::SR_handler(Thread* thread, ucontext_t* uc) {
    63   os::Solaris::SR_handler(thread, uc);
    53   os::Solaris::SR_handler(thread, uc);
    64 }
    54 }