Integrated: 8307190: Refactor ref_at methods in Constant Pool

Matias Saavedra Silva matsaave at openjdk.org
Mon May 22 16:31:04 UTC 2023


On Mon, 8 May 2023 19:23:51 GMT, Matias Saavedra Silva <matsaave at openjdk.org> wrote:

> In anticipation of [JDK-8301996](https://bugs.openjdk.org/browse/JDK-8301996), some of the accessors in constantpool.cpp need to be updated. The CPCache rework introduces multiple new meanings to the index argument passed to these functions, so they need to be restructured in a way that facilitates different paths depending on the input. For this enhancement, the bytecode is propagated by the callers to determine how to handle the index. Thanks to this and JDK-8307306, `bool uncached` is no longer needed in these functions.
> 
> Tests have been altered to suit the changes to JVMCI. Verified with tier1-5 and tier 7 tests.

This pull request has now been integrated.

Changeset: 3f4cfbdd
Author:    Matias Saavedra Silva <matsaave at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/3f4cfbdd36bf91ece5c2f364c3f3e9a6e83de1e6
Stats:     383 lines in 34 files changed: 74 ins; 59 del; 250 mod

8307190: Refactor ref_at methods in Constant Pool

Reviewed-by: coleenp, iklam

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

PR: https://git.openjdk.org/jdk/pull/13872


More information about the hotspot-dev mailing list