RFR: 8357689: Refactor JVMCI to enable replay compilation in Graal [v2]

Andrej Pečimúth duke at openjdk.org
Tue Jul 8 08:41:59 UTC 2025


On Tue, 8 Jul 2025 08:37:53 GMT, Andrej Pečimúth <duke at openjdk.org> wrote:

>> This PR introduces a few minor JVMCI refactorings to make replay compilation possible in the Graal compiler.
>
> Andrej Pečimúth has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision:
> 
>   JVMCI refactorings to enable replay compilation in Graal.

src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/code/BytecodeFrame.java line 227:

> 225:         this.duringCall = duringCall;
> 226:         this.values = values;
> 227:         this.slotKinds = listFromTrustedArray(slotKinds);

`ImmutableCollections#listFromTrustedArray` asserts that the array class is `Object[].class`, but the type of `slotKinds` is `JavaKind[]` - so these refactorings do not work.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25433#discussion_r2190153203


More information about the graal-dev mailing list