RFR: 8320649: C2: Optimize scoped values [v4]

Andrew Haley aph at openjdk.org
Sat Jan 6 10:10:23 UTC 2024


On Fri, 5 Jan 2024 23:10:37 GMT, Dean Long <dlong at openjdk.org> wrote:

> > Maybe I'm misunderstanding this question, but that's what the scoped value cache does.
> 
> @theRealAph I guess it boils down to whether the hash value can be treated as a compile-time constant, which seems possible because it's marked final.

It always has been in the tests I've done. One of the interesting challenges with this work has been to make sure scoped value performance doesn't regress. A great advantage of this PR is that a dedicated scoped value optimization helps to make such regressions less likely.

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

PR Comment: https://git.openjdk.org/jdk/pull/16966#issuecomment-1879624947


More information about the hotspot-compiler-dev mailing list