Re: RFR: 8310310: Migrate CreateSymbols tool in make/langtools to Classfile API

2025-04-07 Thread Chen Liang
On Tue, 25 Mar 2025 00:39:17 GMT, Chen Liang wrote: > Migrates the CreateSymbols tool to use the ClassFile API, away from > com.sun.tools.classfile. > > Need the boot jdk `--with-boot-jdk=` to be 24; thus a draft for now; but this > is open to reviews. > > Together with #24206, the old com.su

RFR: 8310310: Migrate CreateSymbols tool in make/langtools to Classfile API

2025-04-07 Thread Chen Liang
Migrates the CreateSymbols tool to use the ClassFile API, away from com.sun.tools.classfile. Need the boot jdk `--with-boot-jdk=` to be 24; thus a draft for now; but this is open to reviews. Together with #24206, the old com.sun.tools.classfile can be removed from the JDK. - Comm

Re: RFR: 8300339: Run jtreg in the work dir

2025-04-07 Thread Magnus Ihse Bursie
On Mon, 7 Apr 2025 14:05:47 GMT, Erik Joelsson wrote: >> We had a test setup failure in our distributed test system where the process >> running jtreg crashed. This caused the hs_err file to end up in the root of >> the source tree. Dropping crash files in the source tree is bad practice and >

Re: RFR: 8310310: Migrate CreateSymbols tool in make/langtools to Classfile API

2025-04-07 Thread Chen Liang
On Tue, 25 Mar 2025 00:39:17 GMT, Chen Liang wrote: > Migrates the CreateSymbols tool to use the ClassFile API, away from > com.sun.tools.classfile. > > Need the boot jdk `--with-boot-jdk=` to be 24; thus a draft for now; but this > is open to reviews. > > Together with #24206, the old com.su

Re: RFR: 8353185: Introduce the concept of upgradeable files in context of JEP 493 [v2]

2025-04-07 Thread Severin Gehwolf
On Sat, 5 Apr 2025 04:45:00 GMT, Christoph Langer wrote: >> Severin Gehwolf 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 four additional >> c

Re: RFR: 8353185: Introduce the concept of upgradeable files in context of JEP 493 [v3]

2025-04-07 Thread Severin Gehwolf
> For JEP 493-enabled builds there are no JMODs. Certain files come from the > installed JDK image when a user creates a custom run-time from it. This is > problematic for example for files that often come from a different package > (e.g. `cacerts` file for Linux distro builds of OpenJDK package

Re: RFR: 8353185: Introduce the concept of upgradeable files in context of JEP 493 [v3]

2025-04-07 Thread Christoph Langer
On Mon, 7 Apr 2025 12:11:51 GMT, Severin Gehwolf wrote: >> For JEP 493-enabled builds there are no JMODs. Certain files come from the >> installed JDK image when a user creates a custom run-time from it. This is >> problematic for example for files that often come from a different package >> (

Re: RFR: 8353709: Debug symbols bundle should contain full debug files when building --with-external-symbols-in-bundles=public

2025-04-07 Thread Matthias Baesken
On Fri, 4 Apr 2025 07:48:37 GMT, Christoph Langer wrote: > Currently, when building with `--with-external-symbols-in-bundles=public`, > the debug symbols bundle contains the stripped pdb files. It should better > have the full pdb files since stripped pdbs are in the runtime image already. Mar

Re: RFR: 8353185: Introduce the concept of upgradeable files in context of JEP 493 [v3]

2025-04-07 Thread Severin Gehwolf
On Mon, 7 Apr 2025 12:14:28 GMT, Christoph Langer wrote: >> Severin Gehwolf has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Review comments from Christoph > > test/jdk/tools/jlink/runtimeImage/UpgradeableFileCacertsTest.java line 42: >

Integrated: 8352935: Launcher should not add $JDK/../lib to LD_LIBRARY_PATH

2025-04-07 Thread Joachim Kern
On Tue, 1 Apr 2025 09:13:45 GMT, Joachim Kern wrote: > In the JDK launcher, there is a codepath which would set/modify the > LD_LIBRARY_PATH. This happens unconditionally on AIX and Linux/musl and can > also happen on other Linux platforms if an LD_LIBRARY_PATH is pre-set which > contains a li

Re: RFR: 8311227: Add .editorconfig so IDEs would pick up the common settings automatically: indent, trim trailing whitespace [v3]

2025-04-07 Thread Magnus Ihse Bursie
On Mon, 7 Apr 2025 07:08:51 GMT, David Linus Briemann wrote: > * How does it conflict with the jcheck rules? The rules defined in this > editorconfig are stricter than the jcheck rules. So jcheck could not find > issues after the editorconfig rules were applied. No, it's not. The rules you pro

Re: RFR: 8353185: Introduce the concept of upgradeable files in context of JEP 493 [v2]

2025-04-07 Thread Severin Gehwolf
On Sat, 5 Apr 2025 04:49:03 GMT, Christoph Langer wrote: > I see that you're actively on the upgradeable files. What about #24190? Let's keep the discussion on #24190, please. - PR Comment: https://git.openjdk.org/jdk/pull/24388#issuecomment-2782507174

Re: RFR: 8301197: Make sure use of printf is correct and actually needed [v3]

2025-04-07 Thread Erik Joelsson
On Fri, 4 Apr 2025 14:32:30 GMT, Magnus Ihse Bursie wrote: >> We have been sloppy in our use of `printf` in make code. Most of the time, >> we should really use `echo` instead. If we do need to use `printf`, we >> should never inline make or shell variables into the formatting string, >> since

Re: RFR: 8300339: Run jtreg in the work dir

2025-04-07 Thread Erik Joelsson
On Fri, 4 Apr 2025 14:59:35 GMT, Magnus Ihse Bursie wrote: > We had a test setup failure in our distributed test system where the process > running jtreg crashed. This caused the hs_err file to end up in the root of > the source tree. Dropping crash files in the source tree is bad practice and

Re: RFR: 8311227: Add .editorconfig [v2]

2025-04-07 Thread Erik Joelsson
On Mon, 7 Apr 2025 10:10:57 GMT, Magnus Ihse Bursie wrote: >> Alternative to https://github.com/openjdk/jdk/pull/23693 for implementing >> JDK-8311227. >> >> This `.editorconfig` file is a 1-to-1 conversion of the checks done by >> jcheck into .editorconfig format. I believe that is a better w

Integrated: 8353709: Debug symbols bundle should contain full debug files when building --with-external-symbols-in-bundles=public

2025-04-07 Thread Christoph Langer
On Fri, 4 Apr 2025 07:48:37 GMT, Christoph Langer wrote: > Currently, when building with `--with-external-symbols-in-bundles=public`, > the debug symbols bundle contains the stripped pdb files. It should better > have the full pdb files since stripped pdbs are in the runtime image already. Thi

Re: RFR: 8353185: Introduce the concept of upgradeable files in context of JEP 493 [v4]

2025-04-07 Thread Severin Gehwolf
> For JEP 493-enabled builds there are no JMODs. Certain files come from the > installed JDK image when a user creates a custom run-time from it. This is > problematic for example for files that often come from a different package > (e.g. `cacerts` file for Linux distro builds of OpenJDK package

Re: RFR: 8353185: Introduce the concept of upgradeable files in context of JEP 493 [v3]

2025-04-07 Thread Severin Gehwolf
On Mon, 7 Apr 2025 12:21:06 GMT, Severin Gehwolf wrote: >> test/jdk/tools/jlink/runtimeImage/UpgradeableFileCacertsTest.java line 42: >> >>> 40: /* >>> 41: * @test >>> 42: * @summary Verify that no errors are reported for files the have been >> >> Suggestion: >> >> * @summary Verify that no

Re: RFR: 8311227: Add .editorconfig so IDEs would pick up the common settings automatically: indent, trim trailing whitespace [v3]

2025-04-07 Thread David Linus Briemann
On Tue, 11 Mar 2025 09:12:45 GMT, David Linus Briemann wrote: >> Add an .editorconfig to define indentation, trim trailing whitespace and >> open curly brace position for C++ and Java. >> This allows various editors to easily infer basics of the coding style. > > David Linus Briemann has updated

Re: RFR: 8311227: Add .editorconfig [v2]

2025-04-07 Thread David Linus Briemann
On Mon, 7 Apr 2025 10:10:57 GMT, Magnus Ihse Bursie wrote: >> Alternative to https://github.com/openjdk/jdk/pull/23693 for implementing >> JDK-8311227. >> >> This `.editorconfig` file is a 1-to-1 conversion of the checks done by >> jcheck into .editorconfig format. I believe that is a better w

Re: RFR: 8311227: Add .editorconfig so IDEs would pick up the common settings automatically: indent, trim trailing whitespace [v3]

2025-04-07 Thread David Linus Briemann
On Tue, 11 Mar 2025 09:12:45 GMT, David Linus Briemann wrote: >> Add an .editorconfig to define indentation, trim trailing whitespace and >> open curly brace position for C++ and Java. >> This allows various editors to easily infer basics of the coding style. > > David Linus Briemann has updated

Re: RFR: 8311227: Add .editorconfig [v2]

2025-04-07 Thread Magnus Ihse Bursie
> Alternative to https://github.com/openjdk/jdk/pull/23693 for implementing > JDK-8311227. > > This `.editorconfig` file is a 1-to-1 conversion of the checks done by jcheck > into .editorconfig format. I believe that is a better way to introduce an > `.editorconfig` file into the existing JDK p

Re: RFR: 8353185: Introduce the concept of upgradeable files in context of JEP 493 [v4]

2025-04-07 Thread Alan Bateman
On Mon, 7 Apr 2025 13:35:57 GMT, Severin Gehwolf wrote: >> For JEP 493-enabled builds there are no JMODs. Certain files come from the >> installed JDK image when a user creates a custom run-time from it. This is >> problematic for example for files that often come from a different package >> (

RFR: 8345874: Run make doctor automatically on failed CI builds

2025-04-07 Thread Magnus Ihse Bursie
If there is something wrong with the build, the user can run "make doctor". That is hard to do in a CI setting. Instead, if the build environment is detected to be a CI, we should run the doctor automatically in case of a failed build. - Commit messages: - 8345874: Run make doctor

Re: RFR: 8352935: Launcher should not add $JDK/../lib to LD_LIBRARY_PATH [v3]

2025-04-07 Thread Christoph Langer
On Fri, 4 Apr 2025 09:22:10 GMT, Joachim Kern wrote: >> In the JDK launcher, there is a codepath which would set/modify the >> LD_LIBRARY_PATH. This happens unconditionally on AIX and Linux/musl and can >> also happen on other Linux platforms if an LD_LIBRARY_PATH is pre-set which >> contains

Re: RFR: 8311227: Add .editorconfig so IDEs would pick up the common settings automatically: indent, trim trailing whitespace [v3]

2025-04-07 Thread David Linus Briemann
On Tue, 11 Mar 2025 09:12:45 GMT, David Linus Briemann wrote: >> Add an .editorconfig to define indentation, trim trailing whitespace and >> open curly brace position for C++ and Java. >> This allows various editors to easily infer basics of the coding style. > > David Linus Briemann has updated

Re: RFR: 8346109: Create JDK taglet for additional preview notes

2025-04-07 Thread Chen Liang
On Fri, 31 Jan 2025 16:19:17 GMT, Hannes Wallnöfer wrote: > Please review a patch to add a JavaDoc Taglet to the JDK build system that > allows to add preview-related notes to non-preview API elements, as well as a > hidden javadoc option to add elements with preview notes to the preview > sum

RFR: 8346109: Create JDK taglet for additional preview notes

2025-04-07 Thread Hannes Wallnöfer
Please review a patch to add a JavaDoc Taglet to the JDK build system that allows to add preview-related notes to non-preview API elements, as well as a hidden javadoc option to add elements with preview notes to the preview summary page. The {@previewNote} tag uses the following syntax: {@pr

Re: RFR: 8301197: Make sure use of printf is correct and actually needed [v3]

2025-04-07 Thread Magnus Ihse Bursie
On Mon, 7 Apr 2025 05:25:39 GMT, David Holmes wrote: >> No, there are embedded `\n` and that does not work with echo. I could split >> it into three consecutive lines but I don't think that would be a gain. > > Ah I see. So basically the only time we actually need `printf` as far as I > can see

Re: RFR: 8300339: Run jtreg in the work dir

2025-04-07 Thread Magnus Ihse Bursie
On Mon, 7 Apr 2025 05:13:09 GMT, David Holmes wrote: >> We had a test setup failure in our distributed test system where the process >> running jtreg crashed. This caused the hs_err file to end up in the root of >> the source tree. Dropping crash files in the source tree is bad practice and >>

Re: RFR: 8311227: Add .editorconfig so IDEs would pick up the common settings automatically: indent, trim trailing whitespace [v3]

2025-04-07 Thread Magnus Ihse Bursie
On Mon, 7 Apr 2025 07:08:51 GMT, David Linus Briemann wrote: > * The editorconfig as defined in this PR follows the hotspot style guide and > the indentation settings only apply to hotspot code. Yes, you have a good point there. I included your `src/hotspot/.editorconfig` in my PR. --

Re: RFR: 8349665: Make clean removes module-deps.gmk

2025-04-07 Thread Erik Joelsson
On Thu, 3 Apr 2025 09:18:07 GMT, Magnus Ihse Bursie wrote: > After [JDK-8292944](https://bugs.openjdk.org/browse/JDK-8292944), we only > generate module-deps.gmk once at the start of Init.gmk. This causes `make > clean ` to first generate and then remove module-deps.gmk > after which the rest

Re: RFR: 8351842: Windows specific issues in combination of JEP 493 and --with-external-symbols-in-bundles=public [v3]

2025-04-07 Thread Christoph Langer
> Alternative approach to #24012 > > This keeps the current handling of *.pdb vs *.stripped.pdb which allows > debugging at the cost of a little hack in jlink. Maybe the code in jlink can > be improved, e.g. make it more conditional. > > I'm running this through our testing still to see whether