United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7157695 Add windows implementation of socket interface
JDK-7157695 : Add windows implementation of socket interface

Details
Type:
Enhancement
Submit Date:
2012-03-29
Status:
Closed
Updated Date:
2014-02-04
Project Name:
JDK
Resolved Date:
2012-05-16
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs24
Fixed Versions:
hs24 (b10)

Related Reports
Backport:
Backport:
Backport:
Relates:

Sub Tasks

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
PUBLIC COMMENTS

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

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

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

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



Hardware and Software, Engineered to Work Together