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

Kelvin Nilsen kdnilsen at openjdk.org
Wed Jun 26 17:02:09 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.

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

Marked as reviewed by kdnilsen (Author).

PR Review: https://git.openjdk.org/jdk/pull/19859#pullrequestreview-2142481062


More information about the hotspot-gc-dev mailing list