-
Bug
-
Resolution: Fixed
-
P4
-
port-stage-ppc-aix
-
None
-
master
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8033067 | 9 | Volker Simonis | P4 | Resolved | Fixed | b03 |
JDK-8045555 | 8u25 | Volker Simonis | P4 | Resolved | Fixed | b01 |
JDK-8038577 | 8u20 | Volker Simonis | P4 | Resolved | Fixed | b08 |
JDK-8053784 | emb-8u26 | Volker Simonis | P4 | Resolved | Fixed | b17 |
JDK-8240009 | openjdk7u | Volker Simonis | P4 | Resolved | Fixed | master |
Currently, various constants used for the poll/epoll/pollset system calls are defined multple times as public static final short constants in various Java files:
src/share/classes/sun/nio/ch/AbstractPollArrayWrapper.java:
src/solaris/classes/sun/nio/ch/Port.java
Until now, this has not been a problem because on Linux, Solaris and MacOSX these constants have the same values. However on Windows and AIX they are different.
While this hasn't been a problem on Windows either, because as far as I can see, we don't directly use WSAPoll() until now and the POLL constants are only used 'symbolically' on Windows, it became a real problem for the AIX port.
To avoid a mapping of the Java constants to the native ones every time we go from Java to Native and back, it has been suggested to make these constants platform dependant (see http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-January/024426.html).
This would also make it possible to directly used the WSAPoll() functionality on Windows which is available since Windows Vista / Windows Server 2008 (see http://msdn.microsoft.com/en-us/library/windows/desktop/ms741669%28v=vs.85%29.aspx).
src/share/classes/sun/nio/ch/AbstractPollArrayWrapper.java:
src/solaris/classes/sun/nio/ch/Port.java
Until now, this has not been a problem because on Linux, Solaris and MacOSX these constants have the same values. However on Windows and AIX they are different.
While this hasn't been a problem on Windows either, because as far as I can see, we don't directly use WSAPoll() until now and the POLL constants are only used 'symbolically' on Windows, it became a real problem for the AIX port.
To avoid a mapping of the Java constants to the native ones every time we go from Java to Native and back, it has been suggested to make these constants platform dependant (see http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-January/024426.html).
This would also make it possible to directly used the WSAPoll() functionality on Windows which is available since Windows Vista / Windows Server 2008 (see http://msdn.microsoft.com/en-us/library/windows/desktop/ms741669%28v=vs.85%29.aspx).
- backported by
-
JDK-8033067 PPC64: Make the various POLL constants system dependant
- Resolved
-
JDK-8038577 PPC64: Make the various POLL constants system dependant
- Resolved
-
JDK-8045555 PPC64: Make the various POLL constants system dependant
- Resolved
-
JDK-8053784 PPC64: Make the various POLL constants system dependant
- Resolved
-
JDK-8240009 PPC64: Make the various POLL constants system dependant
- Resolved