JDK-7155300 : Include pthread.h on all POSIX platforms except Solaris to improve portability
  • Type: Enhancement
  • Component: tools
  • Sub-Component: launcher
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-03-20
  • Updated: 2013-06-26
  • Resolved: 2012-04-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u40Fixed 8 b34Fixed
Description
A DESCRIPTION OF THE REQUEST :
pthread is used in jdk/src/solaris/bin/java_md.c and jdk/src/solaris/transport/socket/socket_md.c on all POSIX platforms exception Solaris. We can modify the current code to "#ifdef __Solaris__ ... #else ... #end" to make it portable to other platforms.

JUSTIFICATION :
It can be easily ported to BSD/MAC/AIX.

Comments
EVALUATION http://hg.openjdk.java.net/jdk8/tl/jdk/rev/1d418ec212ea Launcher and socket_md.c changes
22-03-2012

EVALUATION Sounds good for the launcher, but there should be another bug for the networking team for socket_md.c
20-03-2012