8235193: (dc) Remove JNI overhead from DatagramChannel.send implementation

Reviewed-by: chegar
This commit is contained in:
Alan Bateman 2019-12-04 16:37:00 +00:00
parent 386b387ef2
commit e7d68cd13b
10 changed files with 438 additions and 159 deletions

View file

@ -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();