[jdk21u-dev] Withdrawn: 8343377: Performance regression in reflective invocation of native methods
Chen Liang
liach at openjdk.org
Sat Dec 7 01:46:51 UTC 2024
On Fri, 6 Dec 2024 16:45:39 GMT, Chen Liang <liach at openjdk.org> wrote:
> The reimplementation of core reflection with Method Handles blanket-forced all native methods to use the native accessor due to bootstrapping issues. However, these are already covered by a `VM.isJavaLangInvokeInited()` check, and this blanket enforcement causes performance regression in reflective invocation of native methods like `Object::hashCode` or `Thread::currentThread`.
>
> The patch is not clean due to the comment update to `useNativeAccessor` - it edits a previously added comment not in JDK 21. The code changes are all clean.
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.org/jdk21u-dev/pull/1207
More information about the jdk-updates-dev
mailing list