Re: RFR: 8288396: Always create reproducible builds [v2]

2022-06-14 Thread Erik Joelsson
On Tue, 14 Jun 2022 10:09:37 GMT, Magnus Ihse Bursie wrote: >> When we started introducing some possibly more intrusive compiler flags and >> functionality for reproducible builds, we also introduced a flag to turn >> this off out of an abundance of caution. But we have been been using this

Re: RFR: 8288001: SOURCE_DATE_EPOCH should not be set by default

2022-06-14 Thread Erik Joelsson
On Wed, 8 Jun 2022 07:47:24 GMT, KIRIYAMA Takuya wrote: > At default configuration, SOURCE_DATE_EPOCH is exported as environment > variable in SetupReproducibleBuild. Then, gcc is affected of > SOURCE_DATE_EPOCH environment variable. This value is used only to set > SOURCE_DATE_ISO_8601

Re: RFR: 8287906: Rewrite of GitHub Actions (GHA) sanity tests [v12]

2022-06-13 Thread Erik Joelsson
On Mon, 13 Jun 2022 06:45:49 GMT, Magnus Ihse Bursie wrote: >> With project Skara, the ability to run a set of sanity build and test jobs >> on selected platforms was added. This functionality was driven by >> `.github/workflows/submit.yml`. This file unfortunately lacks any real >>

Re: RFR: 8288114: Update JIRA link in vcs.xml

2022-06-13 Thread Erik Joelsson
On Fri, 10 Jun 2022 17:11:41 GMT, Alexey Ivanov wrote: > Update the link to JBS in `vcs.xml` template to https://bugs.openjdk.org/ > > It will affect newly generated project files only. > Edit `vcs.xml` manually or in UI to update in existing projects. Marked as reviewed by erikj (Reviewer).

Re: RFR: 8288195: Prepare build system for GHA changes

2022-06-10 Thread Erik Joelsson
On Fri, 10 Jun 2022 09:54:36 GMT, Magnus Ihse Bursie wrote: > A few changes to the build system is needed for the GHA rewrite > ([JDK-8287906](https://bugs.openjdk.org/browse/JDK-8287906)). Marked as reviewed by erikj (Reviewer). - PR: https://git.openjdk.org/jdk/pull/9122

Re: RFR: 8283724: Incorrect description for jtreg-failure-handler option

2022-06-09 Thread Erik Joelsson
On Thu, 9 Jun 2022 06:49:15 GMT, KIRIYAMA Takuya wrote: > The description for the jtreg-failure-handler option is incorrect, so I fixed > it to describe jtreg-failure-handler option. > Would you please review this fix? Marked as reviewed by erikj (Reviewer). - PR:

Re: RFR: 8287894: Use fixed timestamp as an alternative of __DATE__ macro in jdk.jdi to make Windows build reproducible

2022-06-08 Thread Erik Joelsson
On Tue, 7 Jun 2022 19:57:48 GMT, Alexey Pavlyutkin wrote: > Hi! > > Here is a fix to jdk.jdi that fixes reproducible build for Windows. The idea > of the fix is to re-use value of --with-hotspot-build-time option to generate > deterministic timestamp exactly like it's done to hotspot

Re: RFR: 8287828: Fix so that one can select jtreg test case by ID from make [v5]

2022-06-08 Thread Erik Joelsson
On Tue, 7 Jun 2022 18:15:30 GMT, Leo Korinth wrote: >> One can select a testcase by ID when running a jtreg test case directly from >> jtreg (using the testcase.java#testID syntax). However, this has not been >> possible to do when launching jtreg indirectly from make. >> >> This fix attempts

Re: RFR: 8287828: Fix so that one can select jtreg test case by ID from make [v3]

2022-06-07 Thread Erik Joelsson
On Tue, 7 Jun 2022 13:45:47 GMT, Leo Korinth wrote: >> One can select a testcase by ID when running a jtreg test case directly from >> jtreg (using the testcase.java#testID syntax). However, this has not been >> possible to do when launching jtreg indirectly from make. >> >> This fix attempts

Re: RFR: 8287828: Fix so that one can select jtreg test case by ID from make

2022-06-06 Thread Erik Joelsson
On Sat, 4 Jun 2022 01:51:20 GMT, Leo Korinth wrote: > One can select a testcase by ID when running a jtreg test case directly from > jtreg (using the testcase.java#testID syntax). However, this has not been > possible to do when launching jtreg indirectly from make. > > This fix attempts to

Re: RFR: 8287745 jni/nullCaller/NullCallerTest.java fails with "exitValue = 1"

2022-06-03 Thread Erik Joelsson
On Fri, 3 Jun 2022 07:56:38 GMT, Tim Prinzing wrote: > Fixed JtregNativeJdk.gmk to include c++ libs for NullCallerTest Marked as reviewed by erikj (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/9010

Re: RFR: JDK-8252717: Integrate/merge legacy standard doclet diagnostics and doclint

2022-06-02 Thread Erik Joelsson
On Thu, 2 Jun 2022 20:59:26 GMT, Jonathan Gibbons wrote: > Please review a moderate change to enable (most) doclet warnings even if > doclint is enabled. > > Since the introduction of doclint, there was some (small) overlap between the > small set of warnings generated by the doclet and the

Re: RFR: 8287724: Fix various issues with msys2

2022-06-02 Thread Erik Joelsson
On Thu, 2 Jun 2022 09:17:59 GMT, Magnus Ihse Bursie wrote: > I encountered a bunch of issues when running with msys2 on Windows (but one > of them could have happened on cygwin as well). > > * fixpath must set MSYS2_ARG_CONV_EXCL="*" before running cmd.exe to figure > out the temp directory,

Re: RFR: 8233269: Improve handling of JAVA_ARGS

2022-06-01 Thread Erik Joelsson
On Wed, 1 Jun 2022 13:52:46 GMT, Adam Sotona wrote: > LauncherCommon.gmk is unfortunately defining JAVA_ARGS with `-J-ms8m` option > for all JDK launchers, including java launcher. > JAVA_ARGS should not be defined for java launcher (in contrast to the other > JDK launchers), and the command

Re: RFR: JDK-8284858: Start of release updates for JDK 20 [v2]

2022-05-27 Thread Erik Joelsson
On Thu, 26 May 2022 23:05:32 GMT, Joe Darcy wrote: >> Time to start getting ready for JDK 20... > > Joe Darcy has updated the pull request incrementally with one additional > commit since the last revision: > > Respond to review feedback. Marked as reviewed by erikj (Reviewer).

Re: RFR: 8287254: Clean up Xcode sysroot logic

2022-05-24 Thread Erik Joelsson
On Tue, 24 May 2022 17:09:10 GMT, Magnus Ihse Bursie wrote: > The logic in BASIC_SETUP_DEVKIT for setting a correct sysroot for Xcode is > hard to follow. This should be straightened out. We also expose variables > that are no longer used. So there's a bit of related cleanup. > > The new

Re: RFR: 8286122: [macos]: App bundle cannot upload to Mac App Store due to info.plist embedded in java exe

2022-05-12 Thread erik . joelsson
On 2022-05-12 04:58, Magnus Ihse Bursie wrote: On 2022-05-12 13:17, Michael Hall wrote: A solution like including a bundle identifier something like net.java.openjdk.MYAPP.java would be possible at packaging time but not at build time. To fix this at build time you would need to generate a

Re: RFR: 8286623: Bundle zlib by default with JDK on macos aarch64

2022-05-12 Thread Erik Joelsson
On Thu, 12 May 2022 08:43:56 GMT, Jaikiran Pai wrote: > Can I please get a review of this change to the build system which now makes > bundled zlib as the default for macos aarch64 systems? > > We have been running into various intermittent failures on macos aarch64 > systems for several

Re: RFR: 8286601: Mac Aarch: Excessive warnings to be ignored for build jdk

2022-05-11 Thread Erik Joelsson
On Wed, 11 May 2022 20:55:29 GMT, Adam Farley wrote: > These warnings are ignored while building the build+full jdks with gcc, > but only ignored while building the full JDK if using clang. This > produces tons of warnings we normally ignore, e.g. unused parameter. > > I suggest that if we're

Integrated: 8286429: jpackageapplauncher build fails intermittently in Tier[45]

2022-05-10 Thread Erik Joelsson
On Mon, 9 May 2022 23:18:47 GMT, Erik Joelsson wrote: > The way LauncherCommon.gmk is currently written, it's only meant to be > included from "make/module//Launcher.gmk", or at least only from one > single place for each module. This is because the man page generat

Re: RFR: 8286430: make test TEST="gtest:" exits with error when it shouldn't [v2]

2022-05-10 Thread Erik Joelsson
On Tue, 10 May 2022 08:46:44 GMT, Severin Gehwolf wrote: >> `make test TEST="gtest:> `1.10.0`. It expects `suites` to be present in the google test output >> whereas the OpenJDK build infra code expects `cases`. I'm not sure when/if >> that changed, but here is a proposed fix. >> >> Thoughts?

Re: RFR: 8286430: make test TEST="gtest:" exits with error when it shouldn't

2022-05-10 Thread Erik Joelsson
On Tue, 10 May 2022 08:42:10 GMT, Severin Gehwolf wrote: > Apparently gtest 1.8.1 uses `cases`. I've updated the patch to handle both: > `suites` and `cases`. If somebody could test it with gtest 1.8.1 I'd > appreciate it. Verified that it works with 1.8.1, which does indeed use `cases`.

Re: VS2017 build errors jdk/jdk

2022-05-10 Thread erik . joelsson
On 2022-05-10 04:52, Baesken, Matthias wrote: So maybe it time to look at it, it might be easier to have a smaller set of VS releases to support. Because of how much specific logic we need in configure for each version of Visual Studio, we have generally kept configure support for older

RFR: 8286429: jpackageapplauncher build fails intermittently in Tier[45]

2022-05-09 Thread Erik Joelsson
The way LauncherCommon.gmk is currently written, it's only meant to be included from "make/module//Launcher.gmk", or at least only from one single place for each module. This is because the man page generation that happens in LauncherCommon.gmk is module global. For the jdk.jpackage module,

Re: RFR: 8244681: Add a warning for possibly lossy conversion in compound assignments

2022-05-09 Thread Erik Joelsson
On Mon, 9 May 2022 15:56:35 GMT, Adam Sotona wrote: > Please review this patch adding new lint option, **lossy-conversions**, to > javac to warn about type casts in compound assignments with possible lossy > conversions. > > The new lint warning is shown if the type of the right-hand operand

Re: RFR: JDK-8285730: unify _WIN32_WINNT settings [v4]

2022-05-06 Thread Erik Joelsson
On Wed, 4 May 2022 08:00:08 GMT, Matthias Baesken wrote: >> Currently we set _WIN32_WINNT at various places in the codebase; this is >> used to target a minimum Windows version we want to support. See also for >> more detailled information : >>

Re: RFR: 8284675: "jpackage.exe" creates application launcher without Windows Application Manfiest

2022-05-05 Thread Erik Joelsson
On Thu, 5 May 2022 19:02:51 GMT, Alexey Semenyuk wrote: > Copy missing manifest-related parameters to `SetupJdkExecutable` calls > building app launchers from `SetupBuildLauncher` >

Re: RFR: 8282060: RemoteRuntimeImageTest is not actually testing on JDK 8

2022-05-05 Thread Erik Joelsson
On Thu, 5 May 2022 09:00:47 GMT, Athijegannathan Sundararajan wrote: > This test requires jdk8 to be available while running jdk tests. But > JDK8_HOME is defined to be BOOT_JDK and so version check fails in the test. > The test vacuously passes just printing a message. There are already

Re: RFR: 8286105: SourceRevision.gmk should respect GIT variable

2022-05-04 Thread Erik Joelsson
On Wed, 4 May 2022 03:06:44 GMT, Yasumasa Suenaga wrote: > We can specify `git` binary via `GIT` in configure script, but it does not > affect in SourceRevision.gmk . Marked as reviewed by erikj (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/8526

Re: RFR: JDK-8285730: unify _WIN32_WINNT settings [v3]

2022-05-03 Thread Erik Joelsson
On Tue, 3 May 2022 07:10:58 GMT, Matthias Baesken wrote: >> Currently we set _WIN32_WINNT at various places in the codebase; this is >> used to target a minimum Windows version we want to support. See also for >> more detailled information : >>

Re: RFR: 8285915: failure_handler: gather the contents of /etc/hosts file [v2]

2022-05-02 Thread Erik Joelsson
On Mon, 2 May 2022 06:25:28 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which addresses >> https://bugs.openjdk.java.net/browse/JDK-8285915? >> >> With this change, the environment details collected by the failure handler >> will now include the contents of the

Re: RFR: 8282828: CDS uncompressed oops archive is not deterministic

2022-05-02 Thread Erik Joelsson
On Fri, 29 Apr 2022 22:50:45 GMT, Ioi Lam wrote: > During `java -Xshare:dump -XX:-UseCompressedOops`, the location of the Java > heap is chosen by the OS. Due to Address Space Layout Randomization, the heap > will always start at a different location. This causes the archive for >

Re: RFR: 8285919: Remove debug printout from JDK-8285093

2022-04-29 Thread Erik Joelsson
On Fri, 29 Apr 2022 12:43:02 GMT, Magnus Ihse Bursie wrote: > A debug printout in configure was introduced in JDK-8285093. It should be > removed. Marked as reviewed by erikj (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/8467

Re: RFR: 8285915: failure_handler: gather the contents of /etc/hosts file

2022-04-29 Thread Erik Joelsson
On Fri, 29 Apr 2022 12:51:21 GMT, Jaikiran Pai wrote: > Quick question - the path you note, is that even applicable for x64? I see > that it has a "System32" so just curious. Yes, System32 is not related to 32 vs 64 bit. As I understand it, that name was introduced when moving from 16 to 32

Re: RFR: 8285915: failure_handler: gather the contents of /etc/hosts file

2022-04-29 Thread Erik Joelsson
On Fri, 29 Apr 2022 11:28:32 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which addresses > https://bugs.openjdk.java.net/browse/JDK-8285915? > > With this change, the environment details collected by the failure handler > will now include the contents of the

Integrated: 8285755: JDK-8285093 changed the default for --with-output-sync

2022-04-28 Thread Erik Joelsson
On Wed, 27 Apr 2022 19:16:48 GMT, Erik Joelsson wrote: > The make option '--output-sync recurse' can be useful in certain situations, > especially when dealing with very verbose output from makefiles and you want > to parse them after the fact. However, when running make inte

Re: RFR: JDK-8285728: Alpine Linux build fails with busybox tar

2022-04-28 Thread Erik Joelsson
On Thu, 28 Apr 2022 10:24:37 GMT, Matthias Baesken wrote: > Currently , in target "product-bundles" , the Alpine Linux build fails when > BusyBox tar is used. > Error is : Marked as reviewed by erikj (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/8449

Re: RFR: 8285630: Fix a configure error in RISC-V cross build [v2]

2022-04-28 Thread Erik Joelsson
On Thu, 28 Apr 2022 07:27:36 GMT, Pengfei Li wrote: >> We are trying to cross build a RISC-V version of OpenJDK. We specified >> `--openjdk-target=riscv64-linux-gnu` after `bash configure` but got an >> error message. >> >> >> configure: error: /usr/bin/bash >>

Re: RFR: 8285630: Fix a configure error in RISC-V cross build [v2]

2022-04-28 Thread Erik Joelsson
On Thu, 28 Apr 2022 08:14:08 GMT, Nick Gasson wrote: > Is there a reason we can't import the latest upstream config.sub? That > already handles RISC-V and AArch64 correctly. > > https://git.savannah.gnu.org/cgit/config.git/plain/config.sub That would indeed be convenient, but unfortunately

Re: RFR: JDK-8285730: unify _WIN32_WINNT settings

2022-04-28 Thread Erik Joelsson
On Thu, 28 Apr 2022 07:16:30 GMT, Matthias Baesken wrote: > Hi Erik/David/Phil, we already have a good central place where we set the > definition of WIN32_LEAN_AND_MEAN > > autoconf/flags-cflags.m4:460: ALWAYS_DEFINES_JDK="-DWIN32_LEAN_AND_MEAN > -D_CRT_SECURE_NO_DEPRECATE

RFR: 8285755: JDK-8285093 changed the default for --with-output-sync

2022-04-27 Thread Erik Joelsson
The make option '--output-sync recurse' can be useful in certain situations, especially when dealing with very verbose output from makefiles and you want to parse them after the fact. However, when running make interactively on the command line, it certainly gets in the way, as output from each

Re: RFR: JDK-8285730: unify _WIN32_WINNT settings

2022-04-27 Thread Erik Joelsson
On Wed, 27 Apr 2022 14:57:41 GMT, Matthias Baesken wrote: > Currently we set _WIN32_WINNT at various places in the codebase; this is used > to target a minimum Windows version we want to support. See also for more > detailled information : >

Re: build issues with BusyBox tar on Alpine

2022-04-27 Thread erik . joelsson
On 2022-04-27 06:55, Baesken, Matthias wrote: Hi, today I was running into build problems with busybox tar on Alpine Linux . When building “product-bundles” I get : /bin/tar: unrecognized option: I BusyBox v1.34.1 (2022-04-04 10:19:27 UTC) multi-call binary Usage: tar c|x|t

Re: RFR: 8285630: Fix a configure error in RISC-V cross build

2022-04-27 Thread Erik Joelsson
On Wed, 27 Apr 2022 09:50:35 GMT, Pengfei Li wrote: > We are trying to cross build a RISC-V version of OpenJDK. We specified > `--openjdk-target=riscv64-linux-gnu` after `bash configure` but got an > error message. > > > configure: error: /usr/bin/bash >

Re: RFR: 8285093: Introduce UTIL_ARG_WITH

2022-04-20 Thread Erik Joelsson
On Tue, 19 Apr 2022 20:38:31 GMT, Magnus Ihse Bursie wrote: > Analogous to `UTIL_ARG_ENABLE`, we need a `UTIL_ARG_WITH` which wraps > ´AC_ARG_WITH`, provides a declarative rather than programmatic way of > handling configure arguments. It can also make sure that all edge cases are > covered,

Re: RFR: 8284999: Remove remaining files in src/samples

2022-04-19 Thread Erik Joelsson
On Tue, 19 Apr 2022 10:41:07 GMT, Magnus Ihse Bursie wrote: > JEP 298 was about removing demos and samples. Unfortunately, > [JDK-8173801](https://bugs.openjdk.java.net/browse/JDK-8173801) which should > have removed all files in src/samples, left a few non-source files (key > stores and

Re: RFR: 8284949: riscv: Add Zero support for the 32-bit RISC-V architecture

2022-04-18 Thread Erik Joelsson
On Mon, 18 Apr 2022 09:07:03 GMT, Feilong Jiang wrote: > This patch adds Zero support for the 32-bit RISC-V architecture. > > Additional tests: > > - [x] Linux zero RISCV32 cross-compilation > - [x] Resulting binaries run on QEMU User mode without problems Build change looks good.

Re: RFR: 8284890: Support for Do not fragment IP socket options [v2]

2022-04-15 Thread Erik Joelsson
On Fri, 15 Apr 2022 11:49:29 GMT, Michael McMahon wrote: >> Hi, >> >> Could I get the following PR review please? It adds a new JDK specific >> extended socket option >> called IP_DONTFRAGMENT, which disables IP packet fragmentation in both IPv4 >> and IPv6 >> UDP sockets (NIO

Re: RFR: 8284539: Configure --with-source-date=version fails on MacOS

2022-04-15 Thread Erik Joelsson
On Thu, 14 Apr 2022 16:13:59 GMT, Andrew Leonard wrote: > JDK-8282769 added support for more ISO-8601 formats, but remove handling of > just a date "-MM-DD" being present, which is the case for a configure > using --with-source-date=version which uses the date string from >

Re: RFR: 8284891: Fix typos in build system files

2022-04-14 Thread Erik Joelsson
On Thu, 14 Apr 2022 16:05:48 GMT, Magnus Ihse Bursie wrote: > I ran `codespell` on the `make` directory, and accepted those changes where > it indeed discovered real typos. > > (Due to false positives this can unfortunately not be run automatically) > > Most of the fixes are in comments. A

Re: RFR: 8284880: Re-examine sun.invoke.util.Wrapper hash tables

2022-04-14 Thread Erik Joelsson
On Thu, 14 Apr 2022 11:19:04 GMT, Claes Redestad wrote: > This patch examines and optimizes `Wrapper` lookups. > > First wrote a few simple microbenchmarks to verify there are actual speedups > from using perfect hash tables in `sun.invoke.util.Wrapper` compared to > simpler lookup mechanisms

Re: RFR: 8284661: Reproducible assembly builds without relative linking [v3]

2022-04-11 Thread Erik Joelsson
On Mon, 11 Apr 2022 17:26:12 GMT, Andrew Leonard wrote: >> test/jdk/build/AbsPathsInImage.java line 167: >> >>> 165: if (Files.isSymbolicLink(file)) { >>> 166: return super.visitFile(file, attrs); >>> 167: } else if (fileName.endsWith(".pdb"))

Re: RFR: 8284661: Reproducible assembly builds without relative linking

2022-04-11 Thread Erik Joelsson
On Mon, 11 Apr 2022 12:55:16 GMT, Erik Joelsson wrote: >> This PR removes the need for relative object file linking introduced by >> JDK-8284437 for linux libraries, by specifying >> .file directives in the linux .S source files. The >> source files specify a .file AS

Re: RFR: 8284661: Reproducible assembly builds without relative linking [v3]

2022-04-11 Thread Erik Joelsson
On Mon, 11 Apr 2022 15:41:20 GMT, Andrew Leonard wrote: >> This PR removes the need for relative object file linking introduced by >> JDK-8284437 for linux libraries, by specifying >> .file directives in the linux .S source files. The >> source files specify a .file ASSEMBLY_SRC_FILE >> where

Re: RFR: 8284661: Reproducible assembly builds without relative linking

2022-04-11 Thread Erik Joelsson
On Mon, 11 Apr 2022 09:43:37 GMT, Andrew Leonard wrote: > This PR removes the need for relative object file linking introduced by > JDK-8284437 for linux libraries, by specifying > .file directives in the linux .S source files. The > source files specify a .file ASSEMBLY_SRC_FILE > where

Re: RFR: 8284588: Remove GensrcCommonLangtools.gmk

2022-04-08 Thread Erik Joelsson
On Fri, 8 Apr 2022 14:57:02 GMT, Magnus Ihse Bursie wrote: > There's been unnecessary (near) duplication of functionality, and messy > logic, in the langtools gensrc step, for a long time. (Basically since we got > rid of the mercurial forest...) > > This is a first attempt at cleaning this

Re: RFR: 8284437: Building from different users/workspace is not always deterministic [v2]

2022-04-08 Thread Erik Joelsson
On Fri, 8 Apr 2022 13:23:23 GMT, Andrew Leonard wrote: > @magicus I will create a new PR, with .file <...S> directives added to the > linux platform assembly files, and undo the relative path linking. Does that > seem reasonable? Will that not affect the ability to debug these files, as GDB

Re: RFR: 8242181: [Linux] Show source information when printing native stack traces in hs_err files [v8]

2022-04-08 Thread Erik Joelsson
On Fri, 8 Apr 2022 11:11:29 GMT, Christian Hagedorn wrote: >> When printing the native stack trace on Linux (mostly done for hs_err >> files), it only prints the method with its parameters and a relative offset >> in the method: >> >> Stack: [0x7f6e01739000,0x7f6e0183a000],

Re: RFR: 8284437: Building from different users/workspace is not always deterministic [v2]

2022-04-07 Thread Erik Joelsson
On Thu, 7 Apr 2022 18:17:57 GMT, Andrew Leonard wrote: >> make/common/NativeCompilation.gmk line 1159: >> >>> 1157: ifeq ($(call isTargetOs, linux), true) >>> 1158: ifeq ($$($1_COMPILE_WITH_DEBUG_SYMBOLS), true) >>> 1159: $1_LINK_OBJS_RELATIVE := true >> >> I realize

Re: RFR: 8284437: Building from different users/workspace is not always deterministic [v2]

2022-04-07 Thread Erik Joelsson
On Thu, 7 Apr 2022 15:51:30 GMT, Magnus Ihse Bursie wrote: >> Andrew Leonard has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Trigger checks > > make/common/NativeCompilation.gmk line 1159: > >> 1157: ifeq ($(call isTargetOs,

Re: RFR: JDK-8281006 Module::getResourceAsStream should check if the resource is open unconditionally when caller is null [v2]

2022-04-07 Thread Erik Joelsson
On Thu, 7 Apr 2022 00:56:42 GMT, Tim Prinzing wrote: >> Created a test called NullCallerGetResource to test >> Module::getResourceAsStream and Class::getResourceAsStream from the native >> level. >> >> At the java level the test builds a test module called 'n' which opens the >> package

Re: RFR: 8284437: Building from different users/workspace is not always deterministic

2022-04-06 Thread Erik Joelsson
On Wed, 6 Apr 2022 10:27:40 GMT, Andrew Leonard wrote: > This PR fixes the non-deterministic behavior when building on linux with > different userids or within > different workspace folders. > It fixes the following issues: > - MakeZipReproducible.java used to produce reproducible src.zip

Re: RFR: 8283999: Update JMH devkit to 1.35

2022-03-30 Thread Erik Joelsson
On Wed, 30 Mar 2022 12:25:52 GMT, Aleksey Shipilev wrote: > JMH 1.35 is released, so we can bump the devkit too. > > Additional testing: > - [x] JMH devkit creation > - [x] Sample benchmarks Marked as reviewed by erikj (Reviewer). - PR:

Re: RFR: 8283901: Introduce "make doctor" to diagnose build environment problems

2022-03-30 Thread Erik Joelsson
On Wed, 30 Mar 2022 01:05:08 GMT, Magnus Ihse Bursie wrote: > When a user has problems with their build environment that trips up their > builds, the cause is often one of just a few "popular" gotchas. For us > working with the build system, we've seen them all before, but for the >

Re: RFR: 8283723: Update Visual Studio 2022 to version 17.1.0 for Oracle builds on Windows [v3]

2022-03-28 Thread Erik Joelsson
On Mon, 28 Mar 2022 16:40:31 GMT, Mikael Vidstedt wrote: >> Oracle is updating the version of Visual Studio for building the JDK on >> Windows to Visual Studio 2022 17.1.0. >> >> This change adds support for building devkits based on VS 2022. Instead of >> creating a new script file for that

Integrated: 8283575: Check for GNU time fails for version >1.7

2022-03-24 Thread Erik Joelsson
On Wed, 23 Mar 2022 15:35:44 GMT, Erik Joelsson wrote: > The version output of GNU time changed from "GNU time" to "GNU Time" in > version 1.8. We need to update our check for identifying GNU time to handle > this. This pull request has now been integrated

Re: RFR: 8283575: Check for GNU time fails for version >1.7 [v2]

2022-03-23 Thread Erik Joelsson
> The version output of GNU time changed from "GNU time" to "GNU Time" in > version 1.8. We need to update our check for identifying GNU time to handle > this. Erik Joelsson has updated the pull request incrementally with one additional commit since the last revi

Re: RFR: 8283323: libharfbuzz optimization level results in extreme build times

2022-03-23 Thread Erik Joelsson
On Wed, 23 Mar 2022 12:25:08 GMT, Magnus Ihse Bursie wrote: > [JDK-8247872](https://bugs.openjdk.java.net/browse/JDK-8247872) (upgrade > HarfBuzz to 2.7.2) caused build time to go up with 24 seconds on my reference > linux machine. This was one of the four culprits that caused a 25-30% build

Re: RFR: 8283575: Check for GNU time fails for version >1.7

2022-03-23 Thread Erik Joelsson
On Wed, 23 Mar 2022 16:22:55 GMT, Aleksey Shipilev wrote: > Looks okay, provided you tested with some version of GNU [Tt]ime. Thanks! I hit this while trying to use GNU time on my mac to get LOG=profile to work, to profile compilation times of individual compilation units. I built latest

RFR: 8283575: Check for GNU time fails for version >1.7

2022-03-23 Thread Erik Joelsson
The version output of GNU time changed from "GNU time" to "GNU Time" in version 1.8. We need to update our check for identifying GNU time to handle this. - Commit messages: - JDK-8283575 Changes: https://git.openjdk.java.net/jdk/pull/7925/files Webrev:

Re: RFR: 8283323: libharfbuzz optimization level results in extreme build times

2022-03-23 Thread Erik Joelsson
On Wed, 23 Mar 2022 12:25:08 GMT, Magnus Ihse Bursie wrote: > [JDK-8247872](https://bugs.openjdk.java.net/browse/JDK-8247872) (upgrade > HarfBuzz to 2.7.2) caused build time to go up with 24 seconds on my reference > linux machine. This was one of the four culprits that caused a 25-30% build

Re: RFR: 8282191: Implementation of Foreign Function & Memory API (Preview) [v4]

2022-03-22 Thread Erik Joelsson
On Tue, 22 Mar 2022 19:07:12 GMT, Maurizio Cimadamore wrote: >> This PR contains the API and implementation changes for JEP-424 [1]. A more >> detailed description of such changes, to avoid repetitions during the review >> process, is included as a separate comment. >> >> [1] -

Re: RFR: 8283457: [macos] libpng build failures with Xcode13.3

2022-03-22 Thread Erik Joelsson
On Tue, 22 Mar 2022 18:53:20 GMT, Phil Race wrote: > Disable a warning from the Xcode 13.3 clang compiler when compiling libpng, > which is used by libsplashscreen. > > Policy is not to change the upstream code locally unless it is also changed > in the same way upstream. > We could consider

Re: RFR: 8282191: Implementation of Foreign Function & Memory API (Preview) [v3]

2022-03-22 Thread Erik Joelsson
On Tue, 22 Mar 2022 14:04:07 GMT, Maurizio Cimadamore wrote: >> This PR contains the API and implementation changes for JEP-424 [1]. A more >> detailed description of such changes, to avoid repetitions during the review >> process, is included as a separate comment. >> >> [1] -

Re: RFR: 8282191: Implementation of Foreign Function & Memory API (Preview)

2022-03-21 Thread Erik Joelsson
On Mon, 21 Mar 2022 10:45:27 GMT, Maurizio Cimadamore wrote: > This PR contains the API and implementation changes for JEP-424 [1]. A more > detailed description of such changes, to avoid repetitions during the review > process, is included as a separate comment. > > [1] -

Re: RFR: 8257733: Move module-specific data from make to respective module [v13]

2022-03-21 Thread Erik Joelsson
On Mon, 21 Mar 2022 16:29:25 GMT, Magnus Ihse Bursie wrote: >> A lot (but not all) of the data in make/data is tied to a specific module. >> For instance, the publicsuffixlist is used by java.base, and fontconfig by >> java.desktop. (A few directories, like mainmanifest, is *actually* used by

Re: RFR: 8283057: Update GCC to version 11.2 for Oracle builds on Linux

2022-03-18 Thread Erik Joelsson
On Fri, 18 Mar 2022 20:33:54 GMT, Mikael Vidstedt wrote: > Oracle is updating the version of GCC for building the JDK on Linux to 11.2. > > Testing: tier1-5 + additional significant testing. Re-running > tier1,builds-tier{2,3,4,5} now for good luck. Marked as reviewed by erikj (Reviewer).

Re: RFR: JDK-8283320: Error message for Windows libraries always points to --with-msvcr-dll no matter the actual file name

2022-03-17 Thread Erik Joelsson
On Thu, 17 Mar 2022 13:11:19 GMT, Julian Waters wrote: > TOOLCHAIN_SETUP_MSVC_DLL always points to --with-msvcr-dll if it couldn't > find the requested file, even if the dll being searched for was msvcp.dll for > instance. This small patch fixes the potentially confusing advice to point to >

Re: RFR: 8257733: Move module-specific data from make to respective module [v9]

2022-03-17 Thread Erik Joelsson
On Thu, 17 Mar 2022 00:12:38 GMT, Magnus Ihse Bursie wrote: >> A lot (but not all) of the data in make/data is tied to a specific module. >> For instance, the publicsuffixlist is used by java.base, and fontconfig by >> java.desktop. (A few directories, like mainmanifest, is *actually* used by

Re: RFR: 8283260: gcc is not supported on mac

2022-03-16 Thread Erik Joelsson
On Wed, 16 Mar 2022 13:14:39 GMT, Magnus Ihse Bursie wrote: > Nowadays only clang is available as compiler for macOS. We should remove > remnants of the gcc support. Marked as reviewed by erikj (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/7841

Re: RFR: JDK-8236128: Allow jpackage create installers for services

2022-03-15 Thread Erik Joelsson
On Fri, 11 Mar 2022 23:37:06 GMT, Alexey Semenyuk wrote: > Implementation of [JDK-8275062: "Allow jpackage create installers for > services"](https://bugs.openjdk.java.net/browse/JDK-8275062) > CSR Build change looks good. - PR: https://git.openjdk.java.net/jdk/pull/7793

Re: Supporting alternative toolchains on Windows

2022-03-14 Thread erik . joelsson
On 2022-03-11 23:17, Julian Waters wrote: I meant in toolchain.m4, which allows gcc for macOS Apple used to ship GCC as part of Xcode, and the original Mac port of OpenJDK used that GCC. This was eventually removed from Xcode and the OpenJDK build was changed to use Clang instead. To make

Re: RFR: 8283062: Uninitialized warnings in libgtest with GCC 11.2

2022-03-14 Thread Erik Joelsson
On Sat, 12 Mar 2022 03:26:29 GMT, Mikael Vidstedt wrote: > Background, from JBS: > > In file included from > googletest-release-1.8.1/googletest/src/gtest-all.cc:42: > googletest-release-1.8.1/googletest/src/gtest-death-test.cc: In function > 'bool testing::internal::StackGrowsDown()': >

Re: RFR: 8283017: GHA: Workflows break with update release versions

2022-03-11 Thread Erik Joelsson
On Fri, 11 Mar 2022 09:27:55 GMT, Aleksey Shipilev wrote: > Current GHA workflow only takes `VERSION_FEATURE` to deduce the bundle names, > which means the test jobs in GHA workflows are unable to run. > > See for example JDK 18u GHA run: > > Build step produce: > > > Creating

Re: RFR: 8282948: JDK-8274980 missed correct handling of MACOSX_BUNDLE_BUILD_VERSION

2022-03-10 Thread Erik Joelsson
On Thu, 10 Mar 2022 11:49:06 GMT, Magnus Ihse Bursie wrote: > If VERSION_BUILD is empty, we must still store a "0" in > MACOSX_BUNDLE_BUILD_VERSION. Marked as reviewed by erikj (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/7773

Re: RFR: 8253495: CDS generates non-deterministic output

2022-03-08 Thread Erik Joelsson
On Tue, 8 Mar 2022 19:11:02 GMT, Ioi Lam wrote: > This patch makes the result of "java -Xshare:dump" deterministic: > - Disabled new Java threads from launching. This is harmless. See comments in > jvm.cpp > - Fixed a problem in hashtable ordering in heapShared.cpp > - BasicHashtableEntry has a

Re: RFR: 8282770: Set source date in jib profiles from buildId

2022-03-08 Thread Erik Joelsson
On Mon, 7 Mar 2022 23:32:33 GMT, Magnus Ihse Bursie wrote: > For reproducability, we should set the source date on jib profiles from the > buildId. Marked as reviewed by erikj (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/7735

Re: RFR: 8282769: BSD date cannot handle all ISO 8601 formats

2022-03-07 Thread Erik Joelsson
On Mon, 7 Mar 2022 22:47:13 GMT, Magnus Ihse Bursie wrote: > The BSD version of the date command that ships with macOS cannot handle all > ISO 8601 formats. More specifically, it cannot handle trailing milliseconds. > > This fix will allow it to be more tolerant. Are we losing the timezone

Re: RFR: 8282567: Improve source-date handling in build system [v6]

2022-03-07 Thread Erik Joelsson
On Mon, 7 Mar 2022 17:23:40 GMT, Magnus Ihse Bursie wrote: >> When doing reproducible builds, controlling the build time is imperative. To >> make this as easy as possible, some changes are needed in the build system. >> >> * If source-date is set to anything other than "updated" (meaning

Re: RFR: 8282657: Code cleanup: removing double semicolons at the end of lines

2022-03-07 Thread Erik Joelsson
On Sat, 5 Mar 2022 06:49:16 GMT, Julian Waters wrote: > Should I change the JBS issue title to match the PR title, or is it preferred > for the PR title to change? They need to match. You can either do it manually, or change the title to just the bug number and the bot will change it for you.

Re: RFR: 8282567: Improve source-date handling in build system [v5]

2022-03-07 Thread Erik Joelsson
On Sat, 5 Mar 2022 08:57:45 GMT, Magnus Ihse Bursie wrote: >> When doing reproducible builds, controlling the build time is imperative. To >> make this as easy as possible, some changes are needed in the build system. >> >> * If source-date is set to anything other than "updated" (meaning

Re: RFR: JDK-8282700: Properly handle several --without options during configure [v2]

2022-03-07 Thread Erik Joelsson
On Mon, 7 Mar 2022 08:07:30 GMT, Julian Waters wrote: >> Some of the --without options are not properly handled and will crash when >> processed (For example, --without-version-string), in other cases the >> --without-* option will actually silently produce incorrect results instead >> of

Re:

2022-03-04 Thread erik . joelsson
Hello Julian, You are misunderstanding Magnus here. What he means is that we are compiling the version numbers into Java classes and native libraries (through generating Java source files with the version information in them and by setting -D flags when compiling C/C++). Because of this, if

Re: RFR: 8252769: Warn in configure if git config autocrlf has invalid value

2022-03-04 Thread Erik Joelsson
On Fri, 4 Mar 2022 12:00:15 GMT, Magnus Ihse Bursie wrote: > Over and over again, people are running into issues when their git config has > core.autocrlf set to true or input. (This is apparently done by default by > some Windows git installations.) > > This will not work with the OpenJDK

Re: RFR: 8282567: Improve source-date handling in build system

2022-03-02 Thread Erik Joelsson
On Wed, 2 Mar 2022 16:52:12 GMT, Magnus Ihse Bursie wrote: > When doing reproducible builds, controlling the build time is imperative. To > make this as easy as possible, some changes are needed in the build system. > > * If source-date is set to anything other than "updated" (meaning that it

Re: RFR: 8209784: Include hsdis in the JDK [v3]

2022-03-02 Thread Erik Joelsson
On Wed, 2 Mar 2022 14:30:43 GMT, Magnus Ihse Bursie wrote: >> This PR adds a new configure argument, `--enable-hsdis-bundling`. Setting >> this, together with a valid backend using `--with-hsdis`, will bundle the >> generated hsdis library with the JDK. >> >> The PR also includes a

Re: RFR: 8282567: Improve source-date handling in build system

2022-03-02 Thread Erik Joelsson
On Wed, 2 Mar 2022 16:52:12 GMT, Magnus Ihse Bursie wrote: > When doing reproducible builds, controlling the build time is imperative. To > make this as easy as possible, some changes are needed in the build system. > > * If source-date is set to anything other than "updated" (meaning that it

Re: RFR: 8209784: Include hsdis in the JDK [v2]

2022-03-02 Thread Erik Joelsson
On Wed, 2 Mar 2022 13:12:52 GMT, Magnus Ihse Bursie wrote: >> This PR adds a new configure argument, `--enable-hsdis-bundling`. Setting >> this, together with a valid backend using `--with-hsdis`, will bundle the >> generated hsdis library with the JDK. >> >> The PR also includes a

Re: RFR: 8209784: Include hsdis in the JDK

2022-02-22 Thread Erik Joelsson
On Tue, 22 Feb 2022 16:10:22 GMT, Magnus Ihse Bursie wrote: > This PR adds a new configure argument, `--enable-hsdis-bundling`. Setting > this, together with a valid backend using `--with-hsdis`, will bundle the > generated hsdis library with the JDK. > > The PR also includes a refactoring of

Re: RFR: 8244593: Clean up GNM/NM after JEP 381

2022-02-22 Thread Erik Joelsson
On Tue, 22 Feb 2022 15:47:05 GMT, Magnus Ihse Bursie wrote: > Long overdue follow-up bug from JEP 381 (removal of Solaris support). We used > to make a difference between gnm (GNU nm) and nm (GNU nm on all platforms > except Solaris, where it were Solaris nm), but this does not make sense >

  1   2   3   4   5   6   7   8   9   10   >