RFR: 8373615: Improve HotSpot debug functions findclass() and findmethod [v4]
Ioi Lam
iklam at openjdk.org
Mon Dec 15 19:23:08 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 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 branch 'master' into 8373615-improve-findclass-and-findmethod
- Fixed regex test problems on Windows
- Fixed test and added more test cases
- sort includes
- @ashu-mehra and @matias9927 review comments
- 8373615: Improve HotSpot debug functions findclass() and findmethod
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/28796/files
- new: https://git.openjdk.org/jdk/pull/28796/files/4d40f01e..6649620a
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=28796&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=28796&range=02-03
Stats: 7538 lines in 283 files changed: 4672 ins; 1009 del; 1857 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