RFR: 8355658: Allow transforms to run on elements generated by a builder

2025-04-27 Thread Chen Liang
Transforms can run on a stream of class file elements. Currently, that stream can only be from a CompoundElement. We can allow a ClassFileBuilder to provide such a stream too; a recent request https://mail.openjdk.org/pipermail/classfile-api-dev/2025-April/000698.html asks for this as well. Wi

Re: RFR: 8355003: Implement Ahead-of-Time Method Profiling [v2]

2025-04-27 Thread Igor Veresov
> Improve warm-up time by making profile data from a previous run of an > application instantly available, when the HotSpot Java Virtual Machine > starts. Specifically, enhance the [AOT cache](https://openjdk.org/jeps/483) > to store method execution profiles from training runs, reducing profili

Re: RFR: 8355570: [s390x] Update -march to z13 generation

2025-04-27 Thread Amit Kumar
On Fri, 25 Apr 2025 06:24:31 GMT, Amit Kumar wrote: > updated march level from z10 to z13. > > Testing: tier1 (fastdebug-vm) That's weird, the build for s390x is failing in cross compile: === Output from failing command(s) repeated here === * For target hotspot_variant-server_libjvm_libgtest

Re: RFR: 8355658: Allow transforms to run on elements generated by a builder

2025-04-27 Thread Chen Liang
On Mon, 28 Apr 2025 01:43:32 GMT, Chen Liang wrote: > Transforms can run on a stream of class file elements. Currently, that stream > can only be from a CompoundElement. We can allow a ClassFileBuilder to > provide such a stream too; a recent request > https://mail.openjdk.org/pipermail/classf

Re: About compiling on macOS

2025-04-27 Thread Jaikiran Pai
A previous report too suggests that the JDK build fails (due to compiler warnings) when using 16.3 of Xcode on macos. Do you have access to a 15.4 version of Xcode instead? If so, then you can use "--with-xcode-path" during configure to point to that installation of Xcode and build the JDK (mor

Re: RFR: 8350209: Preserve adapters in AOT cache [v8]

2025-04-27 Thread Vladimir Kozlov
> [JEP 483](https://bugs.openjdk.org/browse/JDK-8315737) preserves class > information in AOT cache which helps Java startup performance. > > We should also preserve adapters (i2c, c2i) to further improve performance of > class linking where adapters are generated. > > Short running Java applic

Re: RFR: 8350209: Preserve adapters in AOT cache [v7]

2025-04-27 Thread Vladimir Kozlov
On Tue, 22 Apr 2025 23:05:13 GMT, Vladimir Kozlov wrote: >> [JEP 483](https://bugs.openjdk.org/browse/JDK-8315737) preserves class >> information in AOT cache which helps Java startup performance. >> >> We should also preserve adapters (i2c, c2i) to further improve performance >> of class link

Re: RFR: 8350209: Preserve adapters in AOT cache [v8]

2025-04-27 Thread Vladimir Kozlov
On Sun, 27 Apr 2025 21:52:43 GMT, Vladimir Kozlov wrote: >> [JEP 483](https://bugs.openjdk.org/browse/JDK-8315737) preserves class >> information in AOT cache which helps Java startup performance. >> >> We should also preserve adapters (i2c, c2i) to further improve performance >> of class link

Re: RFR: 8354919: Move HotSpot .editorconfig into the global .editorconfig

2025-04-27 Thread Julian Waters
On Fri, 25 Apr 2025 07:26:39 GMT, Sergey Bylokhov wrote: >> The src/hotspot directory should ideally only be used for HotSpot source >> files, and we should avoid polluting it with an .editorconfig. A cleaner >> solution exists since we can just specify the desired code formatting for >> HotSp

Re: About compiling on macOS

2025-04-27 Thread mitani
Hi Jaikiran > If you cannot use any other XCode other than 16.3, then you can build the JDK > by using the "--disable-warnings-as-errors" configure option (more details > here > https://github.com/openjdk/jdk/blob/master/doc/building.md#problems-with-the-build-environment). > Another user has

Re: About compiling on macOS

2025-04-27 Thread Julian Waters
Hi, The errors seem like they can be fixed by dynamically allocating the arrays rather than trying to use a non constant expression to set the array size. As the compiler says, variable length arrays are not allowed in C++. I unfortunately don't have a Mac to test this fix on however. Perhaps a ne

Re: RFR: 8350209: Preserve adapters in AOT cache [v9]

2025-04-27 Thread Vladimir Kozlov
> [JEP 483](https://bugs.openjdk.org/browse/JDK-8315737) preserves class > information in AOT cache which helps Java startup performance. > > We should also preserve adapters (i2c, c2i) to further improve performance of > class linking where adapters are generated. > > Short running Java applic