[8u] RFR: JDK-8152545 Use preprocessor instead of compiling a program to generate native nio constants

Simon Tooke stooke at redhat.com
Fri Feb 28 18:06:03 UTC 2020


Hello,

I would like to request approval to backport of JDK-8152545 (Use 
preprocessor instead of compiling a program to generate native nio 
constants) to jdk8u for buildability reasons.  I've personally 
encountered toolchains where the current solution doesn't build.

I had to modify the original webrev to get rid of the SO_REUSEPORT 
definition, as it isn't supported in JDK8.

I've tested this on Windows and macos.

Bug: https://bugs.openjdk.java.net/browse/JDK-8152545

Original patch: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/e2e318304252

Modified webrev: 
http://cr.openjdk.java.net/~stooke/webrevs/jdk-8152545-jdk8/02/jdk.02

Thank you for your time,

-Simon




More information about the jdk8u-dev mailing list