RFR: 8373615: Improve HotSpot debug functions findclass() and findmethod [v3]
Ioi Lam
iklam at openjdk.org
Sat Dec 13 06:24: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:
Fixed test and added more test cases
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/28796/files
- new: https://git.openjdk.org/jdk/pull/28796/files/5b2504ad..4d40f01e
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=28796&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=28796&range=01-02
Stats: 45 lines in 1 file changed: 37 ins; 0 del; 8 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