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

2025-03-11 Thread David Linus Briemann
> 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 the pull request incrementally with one additional commit since the

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

2025-03-11 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: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v3]

2025-03-11 Thread Erik Joelsson
On Tue, 11 Mar 2025 15:19:24 GMT, Matthias Baesken wrote: > > Was this always redundant, and does removing it make no change to current > > build options? > > If so, great, let's remove the useless makefile lines. > > There was a bit of discussion before in the thread > https://mail.openjdk.or

Re: RFR: 8351606: Use build_platform for graphviz dependency

2025-03-11 Thread Mikael Vidstedt
On Mon, 10 Mar 2025 23:37:39 GMT, Mikael Vidstedt wrote: > Background (from JBS): > > graphviz is run during the build, and needs the build_platform variant rather > than target_platform. > > Testing: > > tier1,builds-tier[2-5] Thank you for the review! - PR Comment: https://gi

Integrated: 8351606: Use build_platform for graphviz dependency

2025-03-11 Thread Mikael Vidstedt
On Mon, 10 Mar 2025 23:37:39 GMT, Mikael Vidstedt wrote: > Background (from JBS): > > graphviz is run during the build, and needs the build_platform variant rather > than target_platform. > > Testing: > > tier1,builds-tier[2-5] This pull request has now been integrated. Changeset: da2b4f07

Re: RFR: 8351606: Use build_platform for graphviz dependency

2025-03-11 Thread Erik Joelsson
On Mon, 10 Mar 2025 23:37:39 GMT, Mikael Vidstedt wrote: > Background (from JBS): > > graphviz is run during the build, and needs the build_platform variant rather > than target_platform. > > Testing: > > tier1,builds-tier[2-5] Marked as reviewed by erikj (Reviewer). - PR Revie

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

2025-03-11 Thread Erik Joelsson
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: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v2]

2025-03-11 Thread Matthias Baesken
On Tue, 11 Mar 2025 13:18:55 GMT, Kevin Walls wrote: > Windows fastdebug and release I just checked and saw -O1, I'm not sure why > that is. The change touches only Linux so Windows stays as it is. > We do the same thing in make/modules/jdk.management/Lib.gmk so both these > management locati

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v2]

2025-03-11 Thread Matthias Baesken
On Tue, 11 Mar 2025 11:54:29 GMT, Kevin Walls wrote: > Is it worth making any change here? This was needed because I removed DISABLED_WARNINGS_gcc_VMManagementImpl.c while changing the makefile. - PR Review Comment: https://git.openjdk.org/jdk/pull/23966#discussion_r1989296776

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v3]

2025-03-11 Thread Kevin Walls
On Tue, 11 Mar 2025 14:14:16 GMT, Matthias Baesken wrote: >> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that >> are most likely not needed any more and could be removed. > > Matthias Baesken has updated the pull request incrementally with one > additional commit sin

Integrated: 8351322: Parameterize link option for pthreads

2025-03-11 Thread snake66
On Thu, 6 Mar 2025 10:39:27 GMT, snake66 wrote: > Replace hardcoded instances of `-lpthread` with `$(LIBPTHREAD)`, so that it's > possible to parameterize this for platforms that use different flags for > enabling posix threads. > > This work is a continuation of the work done by Greg Lewis in

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v3]

2025-03-11 Thread Matthias Baesken
On Tue, 11 Mar 2025 15:04:58 GMT, Kevin Walls wrote: > Remove a compiler directive to avoid unused var warnings, but change the code > to make it imply a method has no return value when actually it returns a > value: I think you could argue this either way, so I asked if it's really > worthwhi

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v2]

2025-03-11 Thread Matthias Baesken
> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that > are most likely not needed any more and could be removed. Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision: Bring back comment - Changes

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v2]

2025-03-11 Thread Matthias Baesken
On Mon, 10 Mar 2025 18:51:53 GMT, Matthias Baesken wrote: >> make/modules/java.management/Lib.gmk line 33: >> >>> 31: ## Build libmanagement >>> 32: >>> >>> 33: >> >> Why remove the comment header. This pattern i

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v2]

2025-03-11 Thread Kevin Walls
On Tue, 11 Mar 2025 09:04:59 GMT, Matthias Baesken wrote: >> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that >> are most likely not needed any more and could be removed. > > Matthias Baesken has updated the pull request incrementally with one > additional commit sin

Re: RFR: 8345169: Implement JEP 503: Remove the 32-bit x86 Port

2025-03-11 Thread Aleksey Shipilev
On Fri, 7 Mar 2025 07:18:27 GMT, David Holmes wrote: > You could add a couple of lines to the build code and it would not be > possible to build 32-bit, so that is a necessary but not sufficient condition > to claim to implement the JEP IMO. Agreed. This is why this PR removes the actual imple

Re: RFR: 8351322: Parameterize link option for pthreads

2025-03-11 Thread snake66
On Thu, 6 Mar 2025 13:53:31 GMT, Antonio Vieiro wrote: >> Replace hardcoded instances of `-lpthread` with `$(LIBPTHREAD)`, so that >> it's possible to parameterize this for platforms that use different flags >> for enabling posix threads. >> >> This work is a continuation of the work done by G

Re: RFR: 8351440: Link with -reproducible on macOS

2025-03-11 Thread Mikael Vidstedt
On Fri, 7 Mar 2025 20:46:32 GMT, Mikael Vidstedt wrote: > Background (from JBS): > > Recent versions of Xcode, most likely starting with Xcode 15, do not produce > deterministic binaries/libraries out of the box. In particular, the UUID data > in the LC_UUID load command is not stable. > > Af

Re: RFR: 8351322: Parameterize link option for pthreads [v2]

2025-03-11 Thread duke
On Sat, 8 Mar 2025 13:39:44 GMT, snake66 wrote: >> Replace hardcoded instances of `-lpthread` with `$(LIBPTHREAD)`, so that >> it's possible to parameterize this for platforms that use different flags >> for enabling posix threads. >> >> This work is a continuation of the work done by Greg Lew

Re: RFR: 8351309: test/hotspot/jtreg/runtime/posixSig/TestPosixSig.java fails on static-jdk

2025-03-11 Thread Henry Jen
On Wed, 5 Mar 2025 22:59:06 GMT, Jiangli Zhou wrote: > Please review this PR that excludes `libjsig` from being statically linked > with `static-jdk` `java` launcher by default. Please see details in > https://bugs.openjdk.org/browse/JDK-8351309 description and comments. Thanks IIUC, signal ch

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

2025-03-11 Thread Magnus Ihse Bursie
On Mon, 10 Mar 2025 08:57:11 GMT, David Linus Briemann wrote: > I guess the question is: are these guidelines obligatory and if so why can we > not define this in an editorconfig? No, they are not. That's kind of the crux of the problem. * The Hotspot guidelines are followed to a great extent,

Re: RFR: 8351322: Parameterize link option for pthreads [v2]

2025-03-11 Thread Magnus Ihse Bursie
On Thu, 6 Mar 2025 13:27:15 GMT, snake66 wrote: >> Abstracting this out seems reasonable to me, though I should say I thought >> we already used `-pthread` rather than `-lpthread`. >> >> Needs build team approval before integrating. > >> Abstracting this out seems reasonable to me, though I sho

Re: RFR: 8350903: Remove explicit libjvm.so dependency for libVThreadEventTest

2025-03-11 Thread Magnus Ihse Bursie
On Fri, 28 Feb 2025 01:40:34 GMT, Jiangli Zhou wrote: > Please review the test fix that removes `libVThreadEventTest` explicit > dependency to `libjvm`, by removing the call to `JNI_GetCreatedJavaVMs` in > `Agent_OnAttach`. There is a `vm` argument passed via `Agent_OnAttach`. With > the chang

Re: RFR: 8345169: Implement JEP 503: Remove the 32-bit x86 Port [v2]

2025-03-11 Thread Aleksey Shipilev
On Fri, 7 Mar 2025 15:06:18 GMT, Magnus Ihse Bursie wrote: >> I think leaving a comment describing how to deprecate a port is useful. To >> look it up in history you have to realise there is something to look up. >> >> "They who are not reminded of the past will invent a new way to do it in the

RFR: 8351606: Use build_platform for graphviz dependency

2025-03-11 Thread Mikael Vidstedt
Background (from JBS): graphviz is run during the build, and needs the build_platform variant rather than target_platform. Testing: tier1,builds-tier[2-5] - Commit messages: - 8351606: Use build_platform for graphviz dependency Changes: https://git.openjdk.org/jdk/pull/23976/fil

Integrated: 8351440: Link with -reproducible on macOS

2025-03-11 Thread Mikael Vidstedt
On Fri, 7 Mar 2025 20:46:32 GMT, Mikael Vidstedt wrote: > Background (from JBS): > > Recent versions of Xcode, most likely starting with Xcode 15, do not produce > deterministic binaries/libraries out of the box. In particular, the UUID data > in the LC_UUID load command is not stable. > > Af

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v2]

2025-03-11 Thread Kevin Walls
On Tue, 11 Mar 2025 09:04:59 GMT, Matthias Baesken wrote: >> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that >> are most likely not needed any more and could be removed. > > Matthias Baesken has updated the pull request incrementally with one > additional commit sin

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v2]

2025-03-11 Thread Matthias Baesken
On Tue, 11 Mar 2025 13:36:42 GMT, Matthias Baesken wrote: >> src/java.management/share/native/libmanagement/VMManagementImpl.c line 63: >> >>> 61: { >>> 62: jmmOptionalSupport mos; >>> 63: jmm_interface->GetOptionalSupport(env, &mos); >> >> Is it worth making any change here? >> >> We

Re: RFR: 8345940: Migrate security-related resources from Java classes to properties files [v9]

2025-03-11 Thread Erik Joelsson
On Mon, 10 Mar 2025 17:57:42 GMT, Artur Barashev wrote: >> These resources files are in Java classes. If converted to properties files, >> the localized versions can use UTF-8 encoding directly. >> >> ./src/java.base/share/classes/sun/security/tools/keytool/Resources.java >> ./src/java.base/sha

Re: LIBMANAGEMENT_OPTIMIZATION special settings on Linux with debug symbols

2025-03-11 Thread Magnus Ihse Bursie
On 2025-03-10 13:02, Baesken, Matthias wrote: Hello, while looking at the JDK native lib optimization levels, I noticed this special setting : make/modules/java.management/Lib.gmk ifeq ($(call isTargetOs, linux)+$(COMPILE_WITH_DEBUG_SYMBOLS), true+true) LIBMANAGEMENT_OPTIMIZATION := LOW end

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v3]

2025-03-11 Thread Matthias Baesken
> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that > are most likely not needed any more and could be removed. Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision: Adjust jdk.management/Lib.gmk ---

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v3]

2025-03-11 Thread Matthias Baesken
On Tue, 11 Mar 2025 15:04:58 GMT, Kevin Walls wrote: > Was this always redundant, and does removing it make no change to current > build options? > If so, great, let's remove the useless makefile lines. There was a bit of discussion before in the thread https://mail.openjdk.org/pipermail/build

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v3]

2025-03-11 Thread Kevin Walls
On Tue, 11 Mar 2025 14:14:16 GMT, Matthias Baesken wrote: >> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that >> are most likely not needed any more and could be removed. > > Matthias Baesken has updated the pull request incrementally with one > additional commit sin

Re: RFR: 8345169: Implement JEP 503: Remove the 32-bit x86 Port [v2]

2025-03-11 Thread Aleksey Shipilev
> This PR implements JEP 503: Remove the 32-bit x86 Port. > > The JEP is proposed to target 25, we would not integrate until JEP is ready. > Reviews are appreciated meanwhile. > > This is only the removal of obvious 32-bit x86 parts, mostly files with > `x86_32` in their name. Those are only b

Re: RFR: 8351309: test/hotspot/jtreg/runtime/posixSig/TestPosixSig.java fails on static-jdk

2025-03-11 Thread Jiangli Zhou
On Fri, 7 Mar 2025 09:22:44 GMT, Doug Simon wrote: >>> It seems we agree that we need, at some point, to have a high-level >>> discussion on if libjsig should be supported on static builds, and if so, >>> how it should be implemented. We also agree that having signal chaining >>> enabled by de

Re: RFR: 8351309: test/hotspot/jtreg/runtime/posixSig/TestPosixSig.java fails on static-jdk

2025-03-11 Thread Jiangli Zhou
On Mon, 10 Mar 2025 11:03:06 GMT, Magnus Ihse Bursie wrote: > With that confirmation, I think we should go on with the `ONLY_EXPORTED` > solution instead. Done. I also reverted StaticLibs.gmk change. @caoman @tstuefe, please see if the updated change still looks okay to you. > > If needed, w

RFR: 8351323: Parameterize compiler and linker flags for iconv

2025-03-11 Thread snake66
Allows for future support for platforms that require different flags for libiconv support. Sponsored-by: The FreeBSD Foundation - Commit messages: - 8351323: Parameterize libiconv compiler and linker flags Changes: https://git.openjdk.org/jdk/pull/23995/files Webrev: https://web

Re: [Proposal] Add code signing on Windows to the JDK build system

2025-03-11 Thread Frederic Thevenet
Hi Magnus, As mentioned before, the core idea here is really just providing a hook for a script to be invoked after the native linker has been called. So while thinking about making this more generic and not Windows specific, it struck me that it might in fact be desirable to also drop the "si

Re: RFR: 8351309: test/hotspot/jtreg/runtime/posixSig/TestPosixSig.java fails on static-jdk [v2]

2025-03-11 Thread Man Cao
On Mon, 10 Mar 2025 18:28:44 GMT, Jiangli Zhou wrote: >> Please review this PR that excludes `libjsig` from being statically linked >> with `static-jdk` `java` launcher by default. Please see details in >> https://bugs.openjdk.org/browse/JDK-8351309 description and comments. Thanks > > Jiangli

Re: RFR: 8351309: test/hotspot/jtreg/runtime/posixSig/TestPosixSig.java fails on static-jdk

2025-03-11 Thread Jiangli Zhou
On Mon, 10 Mar 2025 18:39:46 GMT, Jiangli Zhou wrote: > > With that confirmation, I think we should go on with the `ONLY_EXPORTED` > > solution instead. > > Done. I also reverted StaticLibs.gmk change. > > @caoman @tstuefe, please see if the updated change still looks okay to you. I also test

Re: RFR: 8351309: test/hotspot/jtreg/runtime/posixSig/TestPosixSig.java fails on static-jdk

2025-03-11 Thread Jiangli Zhou
On Mon, 10 Mar 2025 11:03:06 GMT, Magnus Ihse Bursie wrote: >> Please review this PR that excludes `libjsig` from being statically linked >> with `static-jdk` `java` launcher by default. Please see details in >> https://bugs.openjdk.org/browse/JDK-8351309 description and comments. Thanks > > Wi

Re: LIBMANAGEMENT_OPTIMIZATION special settings on Linux with debug symbols

2025-03-11 Thread Magnus Ihse Bursie
On 2025-03-10 14:49, Baesken, Matthias wrote: * I very much doubt it's needed, but it does mean that this lib has been compiled at "LOW" for most, if not all, relevant builds of OpenJDK since then. ** If I create a PR removing this special handling, could you please test it in your

Integrated: 8345940: Migrate security-related resources from Java classes to properties files

2025-03-11 Thread Artur Barashev
On Mon, 16 Dec 2024 22:03:59 GMT, Artur Barashev wrote: > These resources files are in Java classes. If converted to properties files, > the localized versions can use UTF-8 encoding directly. > > ./src/java.base/share/classes/sun/security/tools/keytool/Resources.java > ./src/java.base/share/cl

Re: RFR: 8351322: Parameterize link option for pthreads [v2]

2025-03-11 Thread Magnus Ihse Bursie
On Fri, 7 Mar 2025 00:18:14 GMT, David Holmes wrote: >>> What is the intended way of using this? Do you run make with >>> LIBPTHREAD=-pthread or do you apply a patch on libraries.m4 for the >>> specific way of linking to pthread? >> >> This is in preparation of the upcoming BSD port, which use

Integrated: JDK-8348597 : Update HarfBuzz to 10.4.0

2025-03-11 Thread Harshitha Onkar
On Tue, 4 Mar 2025 23:52:49 GMT, Harshitha Onkar wrote: > Harfbuzz upgraded to v10.4.0 > > File changes - > > **Newly added files** > > libharfbuzz/OT/Var/VARC/VARC.hh > libharfbuzz/OT/Var/VARC/coord-setter.hh > libharfbuzz/hb-decycler.hh > libharfbuzz/hb-geometry.hh > libharfbuzz/hb-ot-var-v

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings

2025-03-11 Thread Matthias Baesken
On Mon, 10 Mar 2025 15:38:45 GMT, Matthias Baesken wrote: > On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that > are most likely not needed any more and could be removed. While at it I also cleaned up some unused variable issue. - PR Comment: https://git.

Re: RFR: 8351322: Parameterize link option for pthreads

2025-03-11 Thread Magnus Ihse Bursie
On Thu, 6 Mar 2025 17:28:10 GMT, snake66 wrote: >> make/autoconf/libraries.m4 line 142: >> >>> 140: # Threading library >>> 141: if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" >>> = xaix; then >>> 142: BASIC_JVM_LIBS="$BASIC_JVM_LIBS $(LIBPTHREAD)" >> >> If you sp

Re: RFR: 8345169: Implement JEP 503: Remove the 32-bit x86 Port [v2]

2025-03-11 Thread Eirik Bjørsnøs
On Mon, 10 Mar 2025 09:49:44 GMT, Aleksey Shipilev wrote: >> This PR implements JEP 503: Remove the 32-bit x86 Port. >> >> The JEP is proposed to target 25, we would not integrate until JEP is ready. >> Reviews are appreciated meanwhile. >> >> This is only the removal of obvious 32-bit x86 par

Re: RFR: 8351323: Parameterize compiler and linker flags for iconv

2025-03-11 Thread snake66
On Tue, 11 Mar 2025 19:35:45 GMT, Erik Joelsson wrote: >> Allows for future support for platforms that require different flags for >> libiconv support. >> >> Sponsored-by: The FreeBSD Foundation > > I think this looks ok, but please wait for Magnus to have a look too. @erikj79 Thanks for the r

Re: RFR: 8345940: Migrate security-related resources from Java classes to properties files [v9]

2025-03-11 Thread duke
On Mon, 10 Mar 2025 17:57:42 GMT, Artur Barashev wrote: >> These resources files are in Java classes. If converted to properties files, >> the localized versions can use UTF-8 encoding directly. >> >> ./src/java.base/share/classes/sun/security/tools/keytool/Resources.java >> ./src/java.base/sha

Re: RFR: 8351323: Parameterize compiler and linker flags for iconv

2025-03-11 Thread Erik Joelsson
On Tue, 11 Mar 2025 19:22:34 GMT, snake66 wrote: > Allows for future support for platforms that require different flags for > libiconv support. > > Sponsored-by: The FreeBSD Foundation I think this looks ok, but please wait for Magnus to have a look too. - Marked as reviewed by e

Re: RFR: 8337143: (fc, fs) Move filesystem-related native objects from libnio to libjava [v11]

2025-03-11 Thread Brian Burkhalter
On Thu, 5 Dec 2024 18:44:06 GMT, Brian Burkhalter wrote: >> This proposed change would move the native objects required for NIO file >> interaction from the libnio native library to the libjava native library on >> Linux, macOS, and Windows. > > Brian Burkhalter has updated the pull request wit

LIBMANAGEMENT_OPTIMIZATION special settings on Linux with debug symbols

2025-03-11 Thread Baesken, Matthias
Hello, while looking at the JDK native lib optimization levels, I noticed this special setting : make/modules/java.management/Lib.gmk ifeq ($(call isTargetOs, linux)+$(COMPILE_WITH_DEBUG_SYMBOLS), true+true) LIBMANAGEMENT_OPTIMIZATION := LOW endif Why is it there ? I removed it in out inter

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

2025-03-11 Thread David Linus Briemann
> 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 the pull request incrementally with one additional commit since the

RE: LIBMANAGEMENT_OPTIMIZATION special settings on Linux with debug symbols

2025-03-11 Thread Baesken, Matthias
* I very much doubt it's needed, but it does mean that this lib has been compiled at "LOW" for most, if not all, relevant builds of OpenJDK since then. If I create a PR removing this special handling, could you please test it in your CI to be sure that nothing bad happens ? Best regards,

RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings

2025-03-11 Thread Matthias Baesken
On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that are most likely not needed any more and could be removed. - Commit messages: - JDK-8351542 Changes: https://git.openjdk.org/jdk/pull/23966/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23966&ran