Integrated: 8349457: [leyden] Workaround Leyden problems with -XX:-TieredCompilation

Aleksey Shipilev shade at openjdk.org
Tue Feb 11 16:25:33 UTC 2025


On Wed, 5 Feb 2025 12:14:56 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> Currently, supplying `-XX:-TieredCompilation` would break with Leyden workflows, because the archive-backed code cache heap would only be created if `SegmentedCodeCache` is enabled. With default compilation policy, this happens normally when tiered compilation is enabled, but not without it.
> 
> There are other minor peculiarities that we need to handle, which are exposed with `runtime/cds` + `-XX:-TieredCompilation` runs.
> 
> This prevents us from testing C2-only Leyden configs and studying compilation dynamics without tiered policy getting in the way.
> 
> Additional testing:
>  - [x] Ad-hoc Leyden experiments now work with `-XX:-TieredCompilation`: the C2-only code is being stored and loaded successfully from the CDS archive
>  - [x] `runtime/cds` now passes with `-XX:-TieredCompilation`
>  - [x] `runtime/cds` still passes by default (i.e. with tiered compilation)

This pull request has now been integrated.

Changeset: 0a320773
Author:    Aleksey Shipilev <shade at openjdk.org>
Committer: Vladimir Kozlov <kvn at openjdk.org>
URL:       https://git.openjdk.org/leyden/commit/0a320773ff5b2340148355d0b2c5d4563acd97cf
Stats:     15 lines in 2 files changed: 15 ins; 0 del; 0 mod

8349457: [leyden] Workaround Leyden problems with -XX:-TieredCompilation

Reviewed-by: asmehra, iveresov, vlivanov

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

PR: https://git.openjdk.org/leyden/pull/32


More information about the leyden-dev mailing list