RFR: 8352536: Add overloads to parse and build class files from/to MemorySegment [v3]

Adam Sotona asotona at openjdk.org
Thu Mar 27 06:02:07 UTC 2025


On Tue, 25 Mar 2025 15:27:05 GMT, David M. Lloyd <duke at openjdk.org> wrote:

>> Provide method overloads to the ClassFile interface of the java.lang.classfile API which allow parsing of classes found in memory segments, as well as allowing built class files to be output to them.
>
> David M. Lloyd has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Shorten method names
>  - Minor doc adjustment

Class-File API passed through several significant weight reductions in its history (on the API surface as well as under the skin). Some of the steps were critical to avoid JDK bootstrap performance regression.

Before deciding about this non-trivial addition to the Class-File API I would like to see some measurable benefits  and performance impact on the JDK bootstrap.

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

PR Comment: https://git.openjdk.org/jdk/pull/24139#issuecomment-2756812894


More information about the core-libs-dev mailing list