提交 f8253409 编写于 作者: M michaelm

7073491: -Dsun.net.maxDatagramSockets=1 does not work correctly with system.gc()

Reviewed-by: ngmr
上级 ffa2ff39
...@@ -66,8 +66,8 @@ abstract class AbstractPlainDatagramSocketImpl extends DatagramSocketImpl ...@@ -66,8 +66,8 @@ abstract class AbstractPlainDatagramSocketImpl extends DatagramSocketImpl
* Creates a datagram socket * Creates a datagram socket
*/ */
protected synchronized void create() throws SocketException { protected synchronized void create() throws SocketException {
fd = new FileDescriptor();
ResourceManager.beforeUdpCreate(); ResourceManager.beforeUdpCreate();
fd = new FileDescriptor();
try { try {
datagramSocketCreate(); datagramSocketCreate();
} catch (SocketException ioe) { } catch (SocketException ioe) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册