In stack map generation of ClassFile API, ClassDesc.arrayType() and componentType() are frequently called for aaload and aastore instructions. This brings overhead due to frequent string creations.
The dedicated ArrayClassDescImpl can have specialized implementations for some methods; for example, other types have simpler checks for `arrayType()` as the 255-dimension check is localized in this class.
The dedicated ArrayClassDescImpl can have specialized implementations for some methods; for example, other types have simpler checks for `arrayType()` as the 255-dimension check is localized in this class.
- csr for
-
JDK-8340963 Make some ClassDesc methods no longer default
- Closed
- relates to
-
JDK-8343437 ClassDesc.of incorrectly permitting empty names
- Resolved
- links to
-
Commit(master) openjdk/jdk/25c2f48d
-
Review(master) openjdk/jdk/20665