JDK-8339642 : Reduce overheads in InvokerBytecodeGenerator
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-09-06
  • Updated: 2024-09-16
  • Resolved: 2024-09-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 24
24 b15Fixed
Description
- A small portion (~5%) of the instrumented overhead when spinning MH/LF classes in InvokeBytecodeGenerator comes from creating the exact same RuntimeVisibleAnnotationsAttribute for every method. Introducing a constant or two has a small but measurable impact. 
- classDesc(MemberName.class) is called ~8000 times during a build, classDesc(MethodType.class) ~900 - special casing is profitable
- class name validation in InvokerBytecodeGenerator can be narrowed down
- various minor inefficiencies
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20887 Date: 2024-09-06 10:01:39 +0000
06-09-2024

Changeset: d2b36f09 Branch: master Author: Claes Redestad <redestad@openjdk.org> Date: 2024-09-06 12:37:48 +0000 URL: https://git.openjdk.org/jdk/commit/d2b36f09072e03370ee02b063fcc4a1f0e6cb2ee
06-09-2024