RFR: 8323724: Remove potential re-inflation from FastHashCode under LM_LIGHTWEIGHT

Axel Boldt-Christmas aboldtch at openjdk.org
Thu Apr 25 07:57:27 UTC 2024


On Wed, 24 Apr 2024 16:18:25 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> > This enhancement will remove the last code path which can inflate an ObjectMonitor from a non java thread, which in turn will simplify the is_lock_owned logic and allow for stronger assertions.
> 
> Is there an RFE for this? It looks like a good cleanup.

`is_lock_owned` was removed in #17626 . But the all the `nullptr` checks in `inflate_impl` can be removed and ` current->is_Java_thread()` can be asserted when `LockingMode == LM_LIGHTWEIGHT`. 

I do not believe there is an RFE for this.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/18876#issuecomment-2076590227


More information about the hotspot-runtime-dev mailing list