RFR: 8356783: CompilerTask hot_method is redundant

Cesar Soares Lucas cslucas at openjdk.org
Mon May 12 19:27:53 UTC 2025


On Mon, 12 May 2025 14:02:43 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> This gave me some grief when implementing [JDK-8231269](https://bugs.openjdk.org/browse/JDK-8231269). From the initializations, it looks to me that `CompilerTask::hot_method()` is either `method()` or `nullptr`. In both cases, we do nothing special. So tracking `hot_method` is redundant, and can be purged. This improves performance a little, since it avoids extra handle-izing across compiler code, and of course it simplifies coding as well.
> 
> Additional testing:
>  - [x] Linux x86_64 server fastdebug, `compiler/`
>  - [ ]  Linux x86_64 server fastdebug, `all`

LGTM

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

Marked as reviewed by cslucas (Committer).

PR Review: https://git.openjdk.org/jdk/pull/25185#pullrequestreview-2834258711


More information about the graal-dev mailing list