RFR: 8354289: [leyden] Improve parallel recompilation parallelism
Vladimir Kozlov
kvn at openjdk.org
Thu Apr 10 19:38:55 UTC 2025
On Thu, 10 Apr 2025 13:00:52 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> Parallel precompilation ([JDK-8352042](https://bugs.openjdk.org/browse/JDK-8352042)) uses the default compiler thread policy, that targets the normally executing applications. In assembly phase, we can actually use all threads available on the machine to complete it as quickly as possible.
Seems fine.
src/hotspot/share/compiler/compilationPolicy.cpp line 577:
> 575: void CompilationPolicy::initialize() {
> 576: if (!CompilerConfig::is_interpreter_only()) {
> 577: if (StoreCachedCode) {
Hmm, it looks fine to check this flag in `leyden/premain` where it is set early.
In mainline AOT flags are set when we initialize AOTCodeCache which happens after `CompilationPolicy::initialize()` during `universe_init()`.
-------------
Marked as reviewed by kvn (Committer).
PR Review: https://git.openjdk.org/leyden/pull/53#pullrequestreview-2758147428
PR Review Comment: https://git.openjdk.org/leyden/pull/53#discussion_r2038174204
More information about the leyden-dev
mailing list