RFR: 8339320: Optimize ClassFile Utf8EntryImpl#inflate

Shaojin Wen swen at openjdk.org
Fri Aug 30 12:30:46 UTC 2024


A very small optimization, split the large method inflate, split the infrequently used paths into a method inflateCHAR

-------------

Commit messages:
 - Update src/java.base/share/classes/jdk/internal/classfile/impl/AbstractPoolEntry.java
 - Update src/java.base/share/classes/jdk/internal/classfile/impl/AbstractPoolEntry.java
 - Suggestions from @liach
 - fix build error
 - optimize Utf8EntryImpl inflate

Changes: https://git.openjdk.org/jdk/pull/20767/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20767&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8339320
  Stats: 75 lines in 1 file changed: 22 ins; 20 del; 33 mod
  Patch: https://git.openjdk.org/jdk/pull/20767.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20767/head:pull/20767

PR: https://git.openjdk.org/jdk/pull/20767


More information about the core-libs-dev mailing list