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

Ashutosh Mehra asmehra at openjdk.org
Sat Dec 13 02:02:51 UTC 2025


On Fri, 12 Dec 2025 23:26:27 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 two additional commits since the last revision:
> 
>  - sort includes
>  - @ashu-mehra and @matias9927 review comments

lgtm, although there are some test failures likely related to these changes.

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

PR Comment: https://git.openjdk.org/jdk/pull/28796#issuecomment-3648737875


More information about the hotspot-runtime-dev mailing list