RFR: 8160821: VarHandle accesses are penalized when argument conversion is required [v9]

Hannes Greule hgreule at openjdk.org
Wed Dec 10 16:13:42 UTC 2025


On Wed, 10 Dec 2025 15:38:12 GMT, Chen Liang <liach at openjdk.org> wrote:

>> test/hotspot/jtreg/compiler/c2/irTests/constantFold/VarHandleMismatchedTypeFold.java line 2:
>> 
>>> 1: /*
>>> 2:  * Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved.
>> 
>> We want to eventually migrate all tests from `c2/irTests` to more "topic based" directories, so it would be great if you already migrated them now, since you probably would know a better name/place now already ;)
>
> What would be a good directory? I used `c2/irTests/constantFold` as a topic. Maybe you can find a more straightforward directory for constant folding verification.

Maybe something like `c2/methodhandles` would be a good fit?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28585#discussion_r2607297537


More information about the core-libs-dev mailing list