-
Type:
Sub-task
-
Resolution: Won't Fix
-
Priority:
P4
-
Affects Version/s: 24
-
Component/s: core-libs
-
None
MethodType objects are deduplicated in the runtime, and so are their descriptors. When we construct MethodTypeDesc from MethodType, we should aim to reuse the descriptor string of the MethodType: the same string object has cached hash code, avoiding redundant hash computations, and can often check descriptor string equality more quickly with identity checks.
- links to
-
Review(master)
openjdk/jdk/20942