RFR: 8374662: Remove unused type check functions from javaClasses.hpp [v2]

Ioi Lam iklam at openjdk.org
Thu Jan 8 05:35:13 UTC 2026


On Wed, 7 Jan 2026 08:04:53 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:

> OK and trivial, but: Were you able to track down where these were used previously?

`NativeEntryPoint::is_instance()` was first called from `ciObjectFactory::create_new_object(oop o)` in here:

https://github.com/openjdk/jdk/commit/0fb31dbf3a2adc0f7fb2f9924083908724dcde5a.diff

The call was removed from here, and the function became an orphan:

https://github.com/openjdk/jdk/commit/81e4bdbe1358b7feced08ba758ddb66415968036.diff

The second changeset also added `ABIDescriptor::is_instance()` but there were no callers. I think this was due to cut-and-paste.

Thanks @jdksjolen for the review

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

PR Comment: https://git.openjdk.org/jdk/pull/29077#issuecomment-3721994063
PR Comment: https://git.openjdk.org/jdk/pull/29077#issuecomment-3721995520


More information about the hotspot-runtime-dev mailing list