RFR: 8295159: DSO created with -ffast-math breaks Java floating-point arithmetic [v7]
Jorn Vernee
jvernee at openjdk.org
Mon Oct 31 18:28:29 UTC 2022
On Mon, 31 Oct 2022 17:44:07 GMT, Andrew Haley <aph at openjdk.org> wrote:
> Anyway, I plan to
>
> a. Restore the FPU CR after calls to dlopen(3).
> b. Detect FPU CR corruption at safepoints, and print a warning. At least
> the user might find out that something is wrong.
Doing (a) seems good. I can't say for sure whether (b) is a good idea. I guess you just have some call to verify the FPU, e.g. in `ParallelCleanupTask`? I assume you don't mean to change the code for polling safepoints.
CSR seems like a good idea, since it could be a change in observable behavior. (nice to leave a paper trail I think)
-------------
PR: https://git.openjdk.org/jdk/pull/10661
More information about the build-dev
mailing list