JDK-7157695 : Add windows implementation of socket interface
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: hs24
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-03-29
  • Updated: 2014-02-04
  • Resolved: 2012-05-16
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 Other
7u40Fixed 8Fixed hs24Fixed
Related Reports
Relates :  
Description
C2 uses the NetworkStream to send idealgraphs to IdealGraphVisualizer. NetworkStream uses the standard socket interface which has no implementation on Windows. This need to be fixed. 

Windows has an almost posix compliant socket interface (winsock) which makes it trivial to add the functionality. I have changed some types in the platform independent code to the least common denominator of the supported platforms. This had the positivt side effect that a lot of casts could be removed from the exported socket JNI interface in jvm.cpp.

The NetworkStream is only used when stremaing to the IdealGraphVisualizer, and I do not think that it is covered by any testing. Also very unclear if the socket interface is tested since it didn't even have an implementation on windows.

Comments
EVALUATION http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/ec15e8f6e4f1
29-06-2012

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/ec15e8f6e4f1
12-05-2012

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/ec15e8f6e4f1
24-04-2012

PUBLIC COMMENTS See 7091417 for details on the need for size_t
29-03-2012