Re: RFR: 8295033: hsdis configure error when cross-compiling with --with-binutils-src [v4]

2022-10-12 Thread Aleksey Shipilev
On Wed, 12 Oct 2022 01:25:22 GMT, Dingli Zhang wrote: >> I built hsdis with the following parameters from source code of binutils >> while cross-compiling: >> >> --with-hsdis=binutils \ >> --with-binutils-src=/home/dingli/jdk-tools/binutils-2.38 >> >> >> But configure will exit with the follo

Integrated: 8295033: hsdis configure error when cross-compiling with --with-binutils-src

2022-10-12 Thread Dingli Zhang
On Mon, 10 Oct 2022 06:32:09 GMT, Dingli Zhang wrote: > I built hsdis with the following parameters from source code of binutils > while cross-compiling: > > --with-hsdis=binutils \ > --with-binutils-src=/home/dingli/jdk-tools/binutils-2.38 > > > But configure will exit with the following err

RFR: 8295192: Use original configure command line when called from a script

2022-10-12 Thread Magnus Ihse Bursie
Sometimes, the configure script is not called directly, but indirectly, using e.g. a wrapper script. This happens for instance in the case of using jib.sh. In such cases, calling "make reconfigure" will not re-execute the original wrapper script. This can result in subtle bugs. Instead, make a

RFR: 8295198: Update more openjdk.java.net => openjdk.org URLs

2022-10-12 Thread Magnus Ihse Bursie
In [JDK-8294618](https://bugs.openjdk.org/browse/JDK-8294618), many of the old references to openjdk.java.net was updated. The test code was intentionally left out of that change, but some other instances were missed, though. This patch will fix those misses (but will still leave test code chan

Re: RFR: 8295198: Update more openjdk.java.net => openjdk.org URLs

2022-10-12 Thread Magnus Ihse Bursie
On Wed, 12 Oct 2022 09:08:55 GMT, Magnus Ihse Bursie wrote: > In [JDK-8294618](https://bugs.openjdk.org/browse/JDK-8294618), many of the > old references to openjdk.java.net was updated. > > The test code was intentionally left out of that change, but some other > instances were missed, though

RFR: 8295205: Add jcheck whitespace checking for markdown files

2022-10-12 Thread Magnus Ihse Bursie
Markdown files are basically source code for documentation. It should have the same whitespace checks as all other source code, so we don't get spurious trailing whitespace changes. - Commit messages: - 8295205: Add jcheck whitespace checking for markdown files Changes: https://gi

RFR: 8295211: Fix autoconf 2.71 warning "AC_CHECK_HEADERS: you should use literals"

2022-10-12 Thread Magnus Ihse Bursie
In autoconf 2.71, there is a warning generated for calling AC_CHECK_HEADERS with a variable. It is not clear to me why they consider this to be a problem, but the warning is printed whenever you run configure with autoconf 2.71 or newer, and it is annoying. We're only doing this in one place.

Re: RFR: 8294314: Minimize disabled warnings in hotspot [v9]

2022-10-12 Thread Aleksey Shipilev
On Tue, 27 Sep 2022 19:07:04 GMT, Magnus Ihse Bursie wrote: >>> @shipilev I had hoped this PR would trigger warning hunting in Hotspot, but >>> I did not anticipate that it would happen even before it was pushed! ;-) >>> Let me know when you are done fixing individual warnings; there seem to be

Re: RFR: 8294314: Minimize disabled warnings in hotspot [v17]

2022-10-12 Thread Magnus Ihse Bursie
On Wed, 28 Sep 2022 19:52:27 GMT, Magnus Ihse Bursie wrote: >> After [JDK-8294281](https://bugs.openjdk.org/browse/JDK-8294281), it is now >> possible to disable warnings for individual files instead for whole >> libraries. I used this opportunity to go through all disabled warnings in >> hots

Re: RFR: 8294314: Minimize disabled warnings in hotspot [v18]

2022-10-12 Thread Magnus Ihse Bursie
> After [JDK-8294281](https://bugs.openjdk.org/browse/JDK-8294281), it is now > possible to disable warnings for individual files instead for whole > libraries. I used this opportunity to go through all disabled warnings in > hotspot. > > Any warnings that were only triggered in a few files wer

Re: RFR: 8294314: Minimize disabled warnings in hotspot [v19]

2022-10-12 Thread Magnus Ihse Bursie
> After [JDK-8294281](https://bugs.openjdk.org/browse/JDK-8294281), it is now > possible to disable warnings for individual files instead for whole > libraries. I used this opportunity to go through all disabled warnings in > hotspot. > > Any warnings that were only triggered in a few files wer

Re: RFR: 8294314: Minimize disabled warnings in hotspot [v20]

2022-10-12 Thread Magnus Ihse Bursie
> After [JDK-8294281](https://bugs.openjdk.org/browse/JDK-8294281), it is now > possible to disable warnings for individual files instead for whole > libraries. I used this opportunity to go through all disabled warnings in > hotspot. > > Any warnings that were only triggered in a few files wer

Re: RFR: 8294314: Minimize disabled warnings in hotspot [v21]

2022-10-12 Thread Magnus Ihse Bursie
> After [JDK-8294281](https://bugs.openjdk.org/browse/JDK-8294281), it is now > possible to disable warnings for individual files instead for whole > libraries. I used this opportunity to go through all disabled warnings in > hotspot. > > Any warnings that were only triggered in a few files wer

Re: RFR: 8294314: Minimize disabled warnings in hotspot [v9]

2022-10-12 Thread Magnus Ihse Bursie
On Wed, 12 Oct 2022 10:35:08 GMT, Aleksey Shipilev wrote: >> @shipilev So you want me to integrate this first, and then you follow up >> with your fixes? > > Hey @magicus, are you going forward with this PR, or? @shipilev In a "tenth time's the charm" spirit, here's what I do think is actually

Re: RFR: 8294314: Minimize disabled warnings in hotspot [v9]

2022-10-12 Thread Aleksey Shipilev
On Wed, 12 Oct 2022 10:35:08 GMT, Aleksey Shipilev wrote: >> @shipilev So you want me to integrate this first, and then you follow up >> with your fixes? > > Hey @magicus, are you going forward with this PR, or? > @shipilev In a "tenth time's the charm" spirit, here's what I do think is > actu

RFR: 8295213: Run GHA manually with user-specified make and configure arguments

2022-10-12 Thread Magnus Ihse Bursie
It is a trivial addition to our GHA scripts to allow the user to trigger a manual run, and to provide additional arguments to `make` and `configure` for that run. (Not all arguments will succeed though, if it conflicts with the GHA setup.) But it is an easy way to test some specific ways of buil

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic

2022-10-12 Thread Magnus Ihse Bursie
On Tue, 11 Oct 2022 16:02:41 GMT, Andrew Haley wrote: > A bug in GCC causes shared libraries linked with -ffast-math to disable > denormal arithmetic. This breaks Java's floating-point semantics. > > The bug is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522 > > One solution is to save and

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic

2022-10-12 Thread Magnus Ihse Bursie
On Tue, 11 Oct 2022 16:50:33 GMT, Andrew Haley wrote: > Also: this patch is Linux-only. I'll ask for help from build experts to make > the tests GCC-only; it's not clear to me how. @theRealAph We currently have a more or less 1-to-1 relationship between OS and compiler. From a portability pers

Re: RFR: 8294549: configure script should detect unsupported path

2022-10-12 Thread Magnus Ihse Bursie
On Thu, 29 Sep 2022 00:09:37 GMT, Mike Duigou wrote: > The OpenJDK build system does not support building when the source code > resides on a path that contains a space. This requirement is documented in > the build instructions but not enforced by the configure script. > > This change adds an

Re: RFR: 8293422: DWARF emitted by Clang cannot be parsed [v4]

2022-10-12 Thread Magnus Ihse Bursie
On Tue, 11 Oct 2022 08:18:08 GMT, Christian Hagedorn wrote: >> The DWARF debugging symbols emitted by Clang is different from what GCC is >> emitting. While GCC produces a complete `.debug_aranges` section (which is >> required in the DWARF parser), Clang does not. As a result, the DWARF parse

Re: RFR: 8293422: DWARF emitted by Clang cannot be parsed [v4]

2022-10-12 Thread Magnus Ihse Bursie
On Tue, 11 Oct 2022 08:18:08 GMT, Christian Hagedorn wrote: >> The DWARF debugging symbols emitted by Clang is different from what GCC is >> emitting. While GCC produces a complete `.debug_aranges` section (which is >> required in the DWARF parser), Clang does not. As a result, the DWARF parse

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic [v2]

2022-10-12 Thread Andrew Haley
> A bug in GCC causes shared libraries linked with -ffast-math to disable > denormal arithmetic. This breaks Java's floating-point semantics. > > The bug is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522 > > One solution is to save and restore the floating-point control word around > System

Re: RFR: 8295213: Run GHA manually with user-specified make and configure arguments

2022-10-12 Thread Aleksey Shipilev
On Wed, 12 Oct 2022 11:05:43 GMT, Magnus Ihse Bursie wrote: > It is a trivial addition to our GHA scripts to allow the user to trigger a > manual run, and to provide additional arguments to `make` and `configure` for > that run. (Not all arguments will succeed though, if it conflicts with the

Re: RFR: 8295211: Fix autoconf 2.71 warning "AC_CHECK_HEADERS: you should use literals"

2022-10-12 Thread Aleksey Shipilev
On Wed, 12 Oct 2022 10:23:13 GMT, Magnus Ihse Bursie wrote: > In autoconf 2.71, there is a warning generated for calling AC_CHECK_HEADERS > with a variable. > > It is not clear to me why they consider this to be a problem, but the warning > is printed whenever you run configure with autoconf 2

Re: RFR: 8295192: Use original configure command line when called from a script

2022-10-12 Thread Erik Joelsson
On Wed, 12 Oct 2022 08:07:35 GMT, Magnus Ihse Bursie wrote: > Sometimes, the configure script is not called directly, but indirectly, using > e.g. a wrapper script. This happens for instance in the case of using jib.sh. > > In such cases, calling "make reconfigure" will not re-execute the origi

Re: RFR: 8295198: Update more openjdk.java.net => openjdk.org URLs

2022-10-12 Thread Erik Joelsson
On Wed, 12 Oct 2022 09:08:55 GMT, Magnus Ihse Bursie wrote: > In [JDK-8294618](https://bugs.openjdk.org/browse/JDK-8294618), many of the > old references to openjdk.java.net was updated. > > The test code was intentionally left out of that change, but some other > instances were missed, though

Re: RFR: 8295205: Add jcheck whitespace checking for markdown files

2022-10-12 Thread Erik Joelsson
On Wed, 12 Oct 2022 09:44:54 GMT, Magnus Ihse Bursie wrote: > Markdown files are basically source code for documentation. It should have > the same whitespace checks as all other source code, so we don't get spurious > trailing whitespace changes. Thank you! Since I enabled visible whitespace

Re: RFR: 8294314: Minimize disabled warnings in hotspot [v21]

2022-10-12 Thread Erik Joelsson
On Wed, 12 Oct 2022 11:04:14 GMT, Magnus Ihse Bursie wrote: >> After [JDK-8294281](https://bugs.openjdk.org/browse/JDK-8294281), it is now >> possible to disable warnings for individual files instead for whole >> libraries. I used this opportunity to go through all disabled warnings in >> hots

Re: RFR: 8294314: Minimize disabled warnings in hotspot [v21]

2022-10-12 Thread Magnus Ihse Bursie
On Wed, 12 Oct 2022 11:04:14 GMT, Magnus Ihse Bursie wrote: >> After [JDK-8294281](https://bugs.openjdk.org/browse/JDK-8294281), it is now >> possible to disable warnings for individual files instead for whole >> libraries. I used this opportunity to go through all disabled warnings in >> hots

Re: RFR: 8295211: Fix autoconf 2.71 warning "AC_CHECK_HEADERS: you should use literals"

2022-10-12 Thread Erik Joelsson
On Wed, 12 Oct 2022 10:23:13 GMT, Magnus Ihse Bursie wrote: > In autoconf 2.71, there is a warning generated for calling AC_CHECK_HEADERS > with a variable. > > It is not clear to me why they consider this to be a problem, but the warning > is printed whenever you run configure with autoconf 2

Re: RFR: 8295192: Use original configure command line when called from a script

2022-10-12 Thread Magnus Ihse Bursie
On Wed, 12 Oct 2022 08:07:35 GMT, Magnus Ihse Bursie wrote: > Sometimes, the configure script is not called directly, but indirectly, using > e.g. a wrapper script. This happens for instance in the case of using jib.sh. > > In such cases, calling "make reconfigure" will not re-execute the origi

Integrated: 8295205: Add jcheck whitespace checking for markdown files

2022-10-12 Thread Magnus Ihse Bursie
On Wed, 12 Oct 2022 09:44:54 GMT, Magnus Ihse Bursie wrote: > Markdown files are basically source code for documentation. It should have > the same whitespace checks as all other source code, so we don't get spurious > trailing whitespace changes. This pull request has now been integrated. Ch

Re: RFR: 8294314: Minimize disabled warnings in hotspot [v21]

2022-10-12 Thread Kim Barrett
On Wed, 12 Oct 2022 11:04:14 GMT, Magnus Ihse Bursie wrote: >> After [JDK-8294281](https://bugs.openjdk.org/browse/JDK-8294281), it is now >> possible to disable warnings for individual files instead for whole >> libraries. I used this opportunity to go through all disabled warnings in >> hots

Integrated: 8295211: Fix autoconf 2.71 warning "AC_CHECK_HEADERS: you should use literals"

2022-10-12 Thread Magnus Ihse Bursie
On Wed, 12 Oct 2022 10:23:13 GMT, Magnus Ihse Bursie wrote: > In autoconf 2.71, there is a warning generated for calling AC_CHECK_HEADERS > with a variable. > > It is not clear to me why they consider this to be a problem, but the warning > is printed whenever you run configure with autoconf 2

Integrated: 8295198: Update more openjdk.java.net => openjdk.org URLs

2022-10-12 Thread Magnus Ihse Bursie
On Wed, 12 Oct 2022 09:08:55 GMT, Magnus Ihse Bursie wrote: > In [JDK-8294618](https://bugs.openjdk.org/browse/JDK-8294618), many of the > old references to openjdk.java.net was updated. > > The test code was intentionally left out of that change, but some other > instances were missed, though

Integrated: 8295213: Run GHA manually with user-specified make and configure arguments

2022-10-12 Thread Magnus Ihse Bursie
On Wed, 12 Oct 2022 11:05:43 GMT, Magnus Ihse Bursie wrote: > It is a trivial addition to our GHA scripts to allow the user to trigger a > manual run, and to provide additional arguments to `make` and `configure` for > that run. (Not all arguments will succeed though, if it conflicts with the

Re: RFR: 8294314: Minimize disabled warnings in hotspot [v21]

2022-10-12 Thread Magnus Ihse Bursie
On Wed, 12 Oct 2022 13:33:26 GMT, Kim Barrett wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Github workflow changes were not supposed to be in this PR... > > make/hotspot/lib/CompileJvm.gmk line 92: > >> 9

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic

2022-10-12 Thread Andrew Haley
On Tue, 11 Oct 2022 18:45:56 GMT, Daniel D. Daugherty wrote: > It seems strange to me that the native library part is here: > > test/hotspot/jtreg/runtime/jni/TestDenormalFloat/libfast-math.c > > and the two test files are here: > > test/hotspot/jtreg/compiler/floatingpoint/TestDenormalDouble

Re: RFR: 8293422: DWARF emitted by Clang cannot be parsed [v4]

2022-10-12 Thread Christian Hagedorn
On Tue, 11 Oct 2022 08:18:08 GMT, Christian Hagedorn wrote: >> The DWARF debugging symbols emitted by Clang is different from what GCC is >> emitting. While GCC produces a complete `.debug_aranges` section (which is >> required in the DWARF parser), Clang does not. As a result, the DWARF parse

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic

2022-10-12 Thread Andrew Haley
On Wed, 12 Oct 2022 00:38:39 GMT, David Holmes wrote: > This appears to be a 10 year old bug in gcc. Have we ever had any issues > reported because of this? That's what is so insidious about messing with the floating-point control word: all that happens is people get slightly inaccurate result

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic

2022-10-12 Thread Andrew Haley
On Wed, 12 Oct 2022 11:28:08 GMT, Magnus Ihse Bursie wrote: > > Also: this patch is Linux-only. I'll ask for help from build experts to > > make the tests GCC-only; it's not clear to me how. > > @theRealAph We currently have a more or less 1-to-1 relationship between OS > and compiler. From a

Re: RFR: 8295070: Introduce more target combinations for compiler flags [v3]

2022-10-12 Thread Julian Waters
On Mon, 10 Oct 2022 15:29:16 GMT, Julian Waters wrote: >> Several parts of the make system in the JDK has large parts of cluttered if >> branches dedicated to setting flags for the specific compiler used in the >> build. This could be more neatly accomplished by instead adding more target >> c

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic [v3]

2022-10-12 Thread Andrew Haley
> A bug in GCC causes shared libraries linked with -ffast-math to disable > denormal arithmetic. This breaks Java's floating-point semantics. > > The bug is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522 > > One solution is to save and restore the floating-point control word around > System

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic

2022-10-12 Thread Andrew Haley
On Wed, 12 Oct 2022 13:58:06 GMT, Andrew Haley wrote: > We do not support gcc on macos, windows or aix, which leaves linux as the > only gcc platform in the mainline (ports in separate repos will have to > handle this themselves). We do support using clang on linux instead of gcc > (but do not

RFR: 8295229: Try to verify gtest version

2022-10-12 Thread Magnus Ihse Bursie
Inspired by the comment https://github.com/openjdk/jdk/pull/10503#issuecomment-1275500585 for JDK-8294623, I realized we need to do at least some kind of version verification of gtest. Since gtest do not properly declare its version, this can't be done exactly, but we can look at some tell-tal

Re: RFR: 8295229: Try to verify gtest version [v2]

2022-10-12 Thread Magnus Ihse Bursie
> Inspired by the comment > https://github.com/openjdk/jdk/pull/10503#issuecomment-1275500585 for > JDK-8294623, I realized we need to do at least some kind of version > verification of gtest. > > Since gtest do not properly declare its version, this can't be done exactly, > but we can look at

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic [v3]

2022-10-12 Thread Magnus Ihse Bursie
On Wed, 12 Oct 2022 14:11:46 GMT, Andrew Haley wrote: >> A bug in GCC causes shared libraries linked with -ffast-math to disable >> denormal arithmetic. This breaks Java's floating-point semantics. >> >> The bug is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522 >> >> One solution is to sav

Re: RFR: 8293422: DWARF emitted by Clang cannot be parsed [v4]

2022-10-12 Thread Magnus Ihse Bursie
On Tue, 11 Oct 2022 08:18:08 GMT, Christian Hagedorn wrote: >> The DWARF debugging symbols emitted by Clang is different from what GCC is >> emitting. While GCC produces a complete `.debug_aranges` section (which is >> required in the DWARF parser), Clang does not. As a result, the DWARF parse

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic [v4]

2022-10-12 Thread Andrew Haley
> A bug in GCC causes shared libraries linked with -ffast-math to disable > denormal arithmetic. This breaks Java's floating-point semantics. > > The bug is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522 > > One solution is to save and restore the floating-point control word around > System

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic [v5]

2022-10-12 Thread Andrew Haley
> A bug in GCC causes shared libraries linked with -ffast-math to disable > denormal arithmetic. This breaks Java's floating-point semantics. > > The bug is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522 > > One solution is to save and restore the floating-point control word around > System

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic [v3]

2022-10-12 Thread Andrew Haley
On Wed, 12 Oct 2022 14:19:53 GMT, Magnus Ihse Bursie wrote: > So you want to provide this dlopen wrapper for other platforms as well? I'm not sure. It sounds to me like a Linux-only patch would do it, but I think BSD uses GCC sometimes. (Open/FreeBSD is downstream of OpenJDK, and I'd love to ge

Re: RFR: 8295010: EC limbs addition and subtraction limit [v2]

2022-10-12 Thread Xue-Lei Andrew Fan
> Hi, > > May I have this update reviewed? With this update, the result will be always > reduced in EC limbs addition and subtraction operations in the JDK > implementation. > > In the current implementation, the EC limbs addition and subtraction result > is not reduced before the value is re

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic

2022-10-12 Thread Andrew Haley
On Wed, 12 Oct 2022 13:56:56 GMT, Andrew Haley wrote: > > This appears to be a 10 year old bug in gcc. Have we ever had any issues > > reported because of this? > > That's what is so insidious about messing with the floating-point control > word: all that happens is people get slightly inaccur

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic [v5]

2022-10-12 Thread Aleksey Shipilev
On Wed, 12 Oct 2022 14:37:37 GMT, Andrew Haley wrote: >> A bug in GCC causes shared libraries linked with -ffast-math to disable >> denormal arithmetic. This breaks Java's floating-point semantics. >> >> The bug is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522 >> >> One solution is to sav

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic [v5]

2022-10-12 Thread Andrew Haley
On Wed, 12 Oct 2022 15:48:25 GMT, Aleksey Shipilev wrote: > Do we need to shuffle^W sort includes in this patch? I presume you'd want > this patch to be cleanly backportable, which means it should probably be as > point-y as it can get. OK, I can back that part out. > src/hotspot/os/linux/os_

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic [v6]

2022-10-12 Thread Andrew Haley
> A bug in GCC causes shared libraries linked with -ffast-math to disable > denormal arithmetic. This breaks Java's floating-point semantics. > > The bug is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522 > > One solution is to save and restore the floating-point control word around > System

Re: RFR: 8295010: EC limbs addition and subtraction limit [v3]

2022-10-12 Thread Xue-Lei Andrew Fan
> Hi, > > May I have this update reviewed? With this update, the result will be always > reduced in EC limbs addition and subtraction operations in the JDK > implementation. > > In the current implementation, the EC limbs addition and subtraction result > is not reduced before the value is re

Re: RFR: 8295229: Try to verify gtest version [v2]

2022-10-12 Thread Erik Joelsson
On Wed, 12 Oct 2022 14:20:08 GMT, Magnus Ihse Bursie wrote: >> Inspired by the comment >> https://github.com/openjdk/jdk/pull/10503#issuecomment-1275500585 for >> JDK-8294623, I realized we need to do at least some kind of version >> verification of gtest. >> >> Since gtest do not properly de

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic [v7]

2022-10-12 Thread Andrew Haley
> A bug in GCC causes shared libraries linked with -ffast-math to disable > denormal arithmetic. This breaks Java's floating-point semantics. > > The bug is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522 > > One solution is to save and restore the floating-point control word around > System

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic [v7]

2022-10-12 Thread Vladimir Ivanov
On Wed, 12 Oct 2022 17:00:15 GMT, Andrew Haley wrote: >> A bug in GCC causes shared libraries linked with -ffast-math to disable >> denormal arithmetic. This breaks Java's floating-point semantics. >> >> The bug is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522 >> >> One solution is to sav

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic [v7]

2022-10-12 Thread Jorn Vernee
On Wed, 12 Oct 2022 17:00:15 GMT, Andrew Haley wrote: >> A bug in GCC causes shared libraries linked with -ffast-math to disable >> denormal arithmetic. This breaks Java's floating-point semantics. >> >> The bug is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522 >> >> One solution is to sav

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic [v7]

2022-10-12 Thread Maurizio Cimadamore
On Wed, 12 Oct 2022 17:43:47 GMT, Vladimir Ivanov wrote: > Isn't it an illustration of a more general problem we have with native code > where it can mess with FP environment at any time? > > We already have similar problems with MXCSR register and provide verification > logic (part of `-Xchec

Re: RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic [v7]

2022-10-12 Thread Vladimir Ivanov
On Wed, 12 Oct 2022 20:35:09 GMT, Maurizio Cimadamore wrote: > Note also that this specific problem is triggered by dlopen itself, because > certain libraries might have some "bad" (from the perspective of JVM) > initialization code. ... and it leads to another question whether the JVM itself

Re: RFR: 8295229: Try to verify gtest version [v2]

2022-10-12 Thread Dingli Zhang
On Wed, 12 Oct 2022 14:20:08 GMT, Magnus Ihse Bursie wrote: >> Inspired by the comment >> https://github.com/openjdk/jdk/pull/10503#issuecomment-1275500585 for >> JDK-8294623, I realized we need to do at least some kind of version >> verification of gtest. >> >> Since gtest do not properly de

Re: RFR: 8295229: Try to verify gtest version [v2]

2022-10-12 Thread John R Rose
On Thu, 13 Oct 2022 02:56:01 GMT, Dingli Zhang wrote: >> Magnus Ihse Bursie 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 two >> additional co

Integrated: 8295229: Try to verify gtest version

2022-10-12 Thread Magnus Ihse Bursie
On Wed, 12 Oct 2022 14:08:13 GMT, Magnus Ihse Bursie wrote: > Inspired by the comment > https://github.com/openjdk/jdk/pull/10503#issuecomment-1275500585 for > JDK-8294623, I realized we need to do at least some kind of version > verification of gtest. > > Since gtest do not properly declare