Integrated: 8373615: Improve HotSpot debug functions findclass() and findmethod
Ioi Lam
iklam at openjdk.org
Tue Dec 16 18:22:33 UTC 2025
On Fri, 12 Dec 2025 16:40:24 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.
This pull request has now been integrated.
Changeset: b0b42e7e
Author: Ioi Lam <iklam at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/b0b42e7eb14dbe04c9c00e8d1fda139a502f2120
Stats: 186 lines in 3 files changed: 141 ins; 9 del; 36 mod
8373615: Improve HotSpot debug functions findclass() and findmethod
Reviewed-by: matsaave, asmehra
-------------
PR: https://git.openjdk.org/jdk/pull/28796
More information about the hotspot-runtime-dev
mailing list