RFR: 8339317: Optimize ClassFile writeBuffer [v5]

Shaojin Wen swen at openjdk.org
Tue Sep 3 23:25:37 UTC 2024


> A small optimization, optimize the BufferWriter implementation and use of ClassFile, provide faster patchInt and skip

Shaojin Wen has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains nine additional commits since the last revision:

 - Merge remote-tracking branch 'upstream/master' into class_file_buf_writer_imp_202408_patch_int
 - Merge remote-tracking branch 'upstream/master' into class_file_buf_writer_imp_202408_patch_int
 - revert skip
 - Update src/java.base/share/classes/jdk/internal/classfile/impl/BufWriterImpl.java
   
   Co-authored-by: Claes Redestad <claes.redestad at oracle.com>
 - Update src/java.base/share/classes/jdk/internal/classfile/impl/Util.java
   
   Co-authored-by: Claes Redestad <claes.redestad at oracle.com>
 - Suggestions from @cl4es
 - fix build error
 - remove BufWriter#patchInt
 - optimize BufWriterImpl#patchInt

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/20780/files
  - new: https://git.openjdk.org/jdk/pull/20780/files/058d8dad..e3dc3014

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20780&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20780&range=03-04

  Stats: 5709 lines in 251 files changed: 2837 ins; 1178 del; 1694 mod
  Patch: https://git.openjdk.org/jdk/pull/20780.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20780/head:pull/20780

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


More information about the core-libs-dev mailing list