Integrated: 8290062: Remove nmethodLocker for nmethods on-stack

Axel Boldt-Christmas duke at openjdk.org
Mon Aug 1 05:27:39 UTC 2022


On Mon, 11 Jul 2022 07:49:09 GMT, Axel Boldt-Christmas <duke at openjdk.org> wrote:

> From JBS:
> 
>> The nmethodLocker is pretty nasty as it prevents an nmethod from being freed, but without really keeping it alive. We would like to minimize its use. The most obvious places where it can be removed, is when "protecting" nmethods that are already on-stack. Neither the sweeper nor the GC is interested in making nmethods on-stack not live. These ones simply do not do anything.
> 
> Removed the `nmethodLocker` where the nmethod is a caller on the stack.
> 
> Testing: tier1-7

This pull request has now been integrated.

Changeset: 257c71c3
Author:    Axel Boldt-Christmas <axel.boldt-christmas at oracle.com>
Committer: Erik Österlund <eosterlund at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/257c71c35fa6f52a429347a9ed883498d613b5d5
Stats:     11 lines in 1 file changed: 0 ins; 11 del; 0 mod

8290062: Remove nmethodLocker for nmethods on-stack

Reviewed-by: eosterlund, kvn

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

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


More information about the hotspot-dev mailing list