RFR: 8357987: [JVMCI] Add support for retrieving all methods of a ResolvedJavaType [v4]

Tom Shull duke at openjdk.org
Tue Jun 3 17:52:39 UTC 2025


> Currently from ResolvedJavaType one can retrieve all declared methods, static methods, and constructors of the given type. However, internally in HotSpot there are also VM-internal methods, such as overpass methods, associated with a given type which we cannot access via the API.
> 
> To correct this, we should add a new method which enables VM-internal methods, such as overpass methods, to be accessed.

Tom Shull has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains six additional commits since the last revision:

 - Merge remote-tracking branch 'origin/master' into JDK-8357987
 - return List.of() from getAllMethods
 - format javadoc and update test
 - implement getAllMethods
 - address reviewer feedback
 - Add Support for Retrieving All Non-Static Methods of a ResolvedJavaType.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25498/files
  - new: https://git.openjdk.org/jdk/pull/25498/files/ae81d46f..606f3619

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25498&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25498&range=02-03

  Stats: 63826 lines in 1089 files changed: 34970 ins; 18003 del; 10853 mod
  Patch: https://git.openjdk.org/jdk/pull/25498.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25498/head:pull/25498

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


More information about the hotspot-compiler-dev mailing list