RFR: 8373615: Improve HotSpot debug functions findclass() and findmethod [v5]
Matias Saavedra Silva
matsaave at openjdk.org
Tue Dec 16 18:12:21 UTC 2025
On Tue, 16 Dec 2025 04:19:32 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> 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
Marked as reviewed by matsaave (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/28796#pullrequestreview-3584370135
More information about the hotspot-runtime-dev
mailing list