mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8047714: Fix for JDK-6546236 made Solaris os::yield() a no-op
Reviewed-by: hseigel, lfoltan
This commit is contained in:
parent
4f7e4160a0
commit
5a8cc5f33d
15 changed files with 23 additions and 47 deletions
|
@ -449,7 +449,7 @@ static markOop ReadStableMark (oop obj) {
|
|||
++its;
|
||||
if (its > 10000 || !os::is_MP()) {
|
||||
if (its & 1) {
|
||||
os::NakedYield();
|
||||
os::naked_yield();
|
||||
TEVENT(Inflate: INFLATING - yield);
|
||||
} else {
|
||||
// Note that the following code attenuates the livelock problem but is not
|
||||
|
@ -479,7 +479,7 @@ static markOop ReadStableMark (oop obj) {
|
|||
if ((YieldThenBlock++) >= 16) {
|
||||
Thread::current()->_ParkEvent->park(1);
|
||||
} else {
|
||||
os::NakedYield();
|
||||
os::naked_yield();
|
||||
}
|
||||
}
|
||||
Thread::muxRelease(InflationLocks + ix);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue