Integrated: 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.

This pull request has now been integrated.

Changeset: 4ebb7712
Author:    Zhengyu Gu <zgu at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/4ebb77120af5a4ccbfde63b24cb50e05a3161f16
Stats:     13 lines in 3 files changed: 3 ins; 8 del; 2 mod

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

Reviewed-by: shade, wkemper, kdnilsen

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

PR: https://git.openjdk.org/jdk/pull/19859


More information about the hotspot-gc-dev mailing list