mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-26 21:38:10 +00:00
7073491: -Dsun.net.maxDatagramSockets=1 does not work correctly with system.gc()
Reviewed-by: ngmr
This commit is contained in:
parent
59a4dbb95a
commit
f9cd96b19b
@ -66,8 +66,8 @@ abstract class AbstractPlainDatagramSocketImpl extends DatagramSocketImpl
|
||||
* Creates a datagram socket
|
||||
*/
|
||||
protected synchronized void create() throws SocketException {
|
||||
fd = new FileDescriptor();
|
||||
ResourceManager.beforeUdpCreate();
|
||||
fd = new FileDescriptor();
|
||||
try {
|
||||
datagramSocketCreate();
|
||||
} catch (SocketException ioe) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user