mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8235193: (dc) Remove JNI overhead from DatagramChannel.send implementation
Reviewed-by: chegar
This commit is contained in:
parent
386b387ef2
commit
e7d68cd13b
10 changed files with 438 additions and 159 deletions
|
@ -326,10 +326,18 @@ public class InetAddress implements java.io.Serializable {
|
|||
|
||||
public InetAddress getByName(String hostName,
|
||||
InetAddress hostAddress)
|
||||
throws UnknownHostException
|
||||
throws UnknownHostException
|
||||
{
|
||||
return InetAddress.getByName(hostName, hostAddress);
|
||||
}
|
||||
|
||||
public int addressValue(Inet4Address inet4Address) {
|
||||
return inet4Address.addressValue();
|
||||
}
|
||||
|
||||
public byte[] addressBytes(Inet6Address inet6Address) {
|
||||
return inet6Address.addressBytes();
|
||||
}
|
||||
}
|
||||
);
|
||||
init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue