RFR: 8364570: Remove LockingMode related code from riscv64 [v3]

Fei Yang fyang at openjdk.org
Tue Aug 12 11:01:14 UTC 2025


On Tue, 12 Aug 2025 10:02:09 GMT, Fredrik Bredberg <fbredberg at openjdk.org> wrote:

>> Since the integration of [JDK-8359437](https://bugs.openjdk.org/browse/JDK-8359437) the `LockingMode` flag can no longer be set by the user, instead it's declared as `const int LockingMode = LM_LIGHTWEIGHT;`. This means that we can now safely remove all `LockingMode` related code from all platforms.
>> 
>> This PR removes `LockingMode` related code from the **riscv64** platform.
>> 
>> When all the `LockingMode` code has been removed from all platforms, we can go on and remove it from shared (non-platform specific) files as well. And finally remove the `LockingMode` variable itself.
>
> Fredrik Bredberg has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
> 
>  - Merge branch 'master' into 8364570_remove_lockingmode_riscv64
>  - Update two after review
>  - Update one after review
>  - 8364570: Remove LockingMode related code from riscv64

Still good to me. Thanks.

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

Marked as reviewed by fyang (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26658#pullrequestreview-3109912066


More information about the hotspot-runtime-dev mailing list