changeset 4594:89e4764d5cc8

7073491: -Dsun.net.maxDatagramSockets=1 does not work correctly with system.gc() Reviewed-by: alanb, chegar
author michaelm
date Thu, 15 Sep 2011 14:19:18 +0100
parents cc66a282bfbd
children a87fbffa8a3f
files src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java	Thu Sep 15 05:09:33 2011 -0700
+++ b/src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java	Thu Sep 15 14:19:18 2011 +0100
@@ -66,8 +66,8 @@
      * Creates a datagram socket
      */
     protected synchronized void create() throws SocketException {
+        ResourceManager.beforeUdpCreate();
         fd = new FileDescriptor();
-        ResourceManager.beforeUdpCreate();
         try {
             datagramSocketCreate();
         } catch (SocketException ioe) {