equal
deleted
inserted
replaced
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 } |