On Sun, 22 Mar 2026 05:10:10 GMT, Kirill Shirokov <[email protected]> wrote:
> Just a straightforward implementation of the requested change. > > Tested using tier1 tests on linux-x64, macosx-aarch64, windows-x64. Calling `Class.isNestmateOf` requires two calls into the VM, whereas `JVM_AreNestMates` achieves this with a single call, so this change is a lot less efficient. Though I wonder now why `isNestmateOf` is expressed as a comparison of nest-hosts rather than calling `JVM_AreNestmates` itself? (I'd have to dig deeper into the development of JEP-181 for that.). Also calling back into a top-level public API from an internal private API introduces further redundant checks (same class, primitive/array checks). ------------- PR Comment: https://git.openjdk.org/jdk/pull/30358#issuecomment-4107334273
