RFR: 8371178: Preserve fast version of getfield and putfield in AOTCache
Ioi Lam
iklam at openjdk.org
Tue Nov 4 17:33:33 UTC 2025
On Tue, 4 Nov 2025 02:10:13 GMT, Ashutosh Mehra <asmehra at openjdk.org> wrote:
> Preserve the "fast" version of `getfield` and `putfield` bytecodes in the AOTCache during the assembly phase if the constant pool entry referred by the bytecodes is stored in resolved state in the AOTCache.
>
> Testing:
> Testing with JTREG="AOT_JDK=true" TEST=hotspot_runtime_no_cds passed on x86-64
src/hotspot/share/cds/aotMetaspace.cpp line 549:
> 547: }
> 548: #endif // ASSERT
> 549: if (is_resolved) {
I think the above can be simplified:
if (is_resolved) {
assert(!CDSConfig::is_dumping_preimage_static_archive(), "preimage should not have resolved field references");
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28121#discussion_r2491457985
More information about the hotspot-runtime-dev
mailing list