Integrated: 8301997: Move method resolution information out of the cpCache
Matias Saavedra Silva
matsaave at openjdk.org
Wed Nov 15 19:08:09 UTC 2023
On Mon, 28 Aug 2023 19:49:23 GMT, Matias Saavedra Silva <matsaave at openjdk.org> wrote:
> The current structure used to store the resolution information for methods, ConstantPoolCacheEntry, is difficult to interpret due to its ambigious fields f1 and f2. This structure previously held information for fields, methods, and invokedynamic calls which were all encoded into f1 and f2. Currently this structure only handles method entries, but it remains obtuse and inconsistent with recent changes.
>
> This enhancement introduces a new data structure that stores the necessary resolution data in an intuitive an extensible manner. These resolved entries are stored in an array inside the constant pool cache in a very similar manner to invokedynamic entries in JDK-8301995.
>
> Instances of ConstantPoolCache entry related to field resolution have been replaced with the new ResolvedMethodEntry, and ConstantPoolCacheEntry has been removed entirely. The class ResolvedMethodEntry holds resolution information for all types of invoke calls besides invokedynamic, and thus has fields that may be unused depending on the invoke code.
>
> To streamline the review, please consider these major areas that have been changed:
> 1. ResolvedMethodEntry class
> 2. Rewriter for initialization of the structure
> 3. cpCache for resolution
> 4. InterpreterRuntime, linkResolver, and templateTable
> 5. JVMCI
> 6. SA
>
> Verified with tier 1-9 tests.
>
> This change supports the following platforms: x86, aarch64, RISCV, PPC
This pull request has now been integrated.
Changeset: ffa35d8c
Author: Matias Saavedra Silva <matsaave at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/ffa35d8cf181cfbcb54497e997dbd18a9b62b97e
Stats: 4055 lines in 79 files changed: 1308 ins; 2083 del; 664 mod
8301997: Move method resolution information out of the cpCache
Co-authored-by: Gui Cao <gcao at openjdk.org>
Co-authored-by: Fei Yang <fyang at openjdk.org>
Co-authored-by: Martin Doerr <mdoerr at openjdk.org>
Co-authored-by: Amit Kumar <amitkumar at openjdk.org>
Reviewed-by: coleenp, adinn, fparain
-------------
PR: https://git.openjdk.org/jdk/pull/15455
More information about the hotspot-dev
mailing list