JDK 23 |
---|
23 b05Fixed |
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
This function and the comment block that precedes it are an attempt to avoid spinning if the object that owns the lock is off proc, but it can't really tell that from the things it's testing. According to [~dice] the original intent was that Solaris would provide a secret API to tell that. Instead it's a function that increases the complexity of the spinning algorithm. We should run some benchmarks to determine if this function does anything and remove it if not. This function doesn't work if we use the ThreadID as owner for the ObjectMonitor which helps Loom. See JDK-8320320.
|