RFR: JDK-8289524: Add JFR JIT restart event

Matthias Baesken mbaesken at openjdk.org
Tue Jul 5 08:09:25 UTC 2022


On Thu, 30 Jun 2022 13:17:09 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> The JIT compiler restarts (see restart_compiler in NMethodSweeper::sweep_code_cache) would be a helpful addition to the JFR events. Currently we log the JIT stop operations in JFR (EventCodeCacheFull) but no restart.

Hi Markus,  I think it would be possible and probably make sense to instead enhance the existing EventSweepCodeCache.
Would it be okay to move down the EventSweepCodeCache to the end of NMethodSweeper::sweep_code_cache()  ?
I think post_sweep_event  would get  2 more parameters, a boolean for JIT-restart and an integer freed_memory.
Are you fine with this ?
Are there some compatibility concerns when enhancing an existing event EventSweepCodeCache ?

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

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


More information about the hotspot-dev mailing list