RFR: 8356783: CompilerTask hot_method is redundant

Aleksey Shipilev shade at openjdk.org
Tue May 13 13:20:07 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/`
>  - [x]  Linux x86_64 server fastdebug, `all`

Here goes.

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

PR Comment: https://git.openjdk.org/jdk/pull/25185#issuecomment-2876483328


More information about the graal-dev mailing list