RFR: 8373615: Improve HotSpot debug functions findclass() and findmethod [v5]

Ioi Lam iklam at openjdk.org
Tue Dec 16 04:19:32 UTC 2025


> I used the `findclass` and `findmethod` functions in debug.cpp  a lot when debugging problems with class metadata.
> 
> https://github.com/openjdk/jdk/blob/6ec36d348b1eaeedb993a905e42650242fac0918/src/hotspot/share/utilities/debug.cpp#L583-L603 
> 
> This REF improves these functions by:
> 
> - Sorting the names of classes and methods
> - Allow "." to be used in class names. So both `findclass("java.lang.Object")` and `findclass("java/lang/Object")` would work
> - Print the C++/Java objects that represent classes and methods.

Ioi Lam has updated the pull request incrementally with one additional commit since the last revision:

  @ashu-mehra review comment - more fix on tests

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/28796/files
  - new: https://git.openjdk.org/jdk/pull/28796/files/6649620a..df897c28

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

  Stats: 15 lines in 1 file changed: 6 ins; 6 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/28796.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28796/head:pull/28796

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


More information about the hotspot-runtime-dev mailing list