RFR: 8357481: Excessive CompileTask wait/notify monitor creation [v2]
Aleksey Shipilev
shade at openjdk.org
Mon May 26 08:38:29 UTC 2025
On Fri, 23 May 2025 21:28:29 GMT, Dean Long <dlong at openjdk.org> wrote:
> Isn't it true that we only have one CompileTask per CompilerThread? Would it make sense to move this monitor into the CompilerThread instead?
It feels awkward to me to have a logically `CompileTask`-related monitor in `CompilerThread`. Among other things, this will tie the lifecycle of the compile task to the lifecycle of the compiler thread, which gets "interesting" with dynamic number of compiler threads. Plus, I don't think any of this optimization would matter for non-`Xcomp` runs. So I'd steer towards simplicity, and just make this monitor global, as in this PR.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25364#issuecomment-2908964573
More information about the hotspot-dev
mailing list