RFR: 8334769: Shenandoah: Move CodeCache_lock close to its use in ShenandoahConcurrentNMethodIterator

William Kemper wkemper at openjdk.org
Wed Jun 26 16:52:08 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.

Marked as reviewed by wkemper (Committer).

Looks good to me.

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

PR Review: https://git.openjdk.org/jdk/pull/19859#pullrequestreview-2142452683
PR Comment: https://git.openjdk.org/jdk/pull/19859#issuecomment-2192193004


More information about the hotspot-gc-dev mailing list