RFR: 8334769: Shenandoah: Move CodeCache_lock close to its use in ShenandoahConcurrentNMethodIterator
Zhengyu Gu
zgu at openjdk.org
Wed Jun 26 20:27:13 UTC 2024
On Mon, 24 Jun 2024 13:46:23 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:
> ShenandoahConcurrentNMethodIterator requires CodeCache_lock at begin and end of iteration.
>
> Currently, the CodeCache_lock is acquired by their callers, which is not very obvious and readable. Let's move the lock inside the methods.
Thanks, @shipilev @earthling-amzn and @kdnilsen
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19859#issuecomment-2192562583
More information about the hotspot-gc-dev
mailing list