< prev index next >

src/java.base/unix/classes/sun/nio/ch/UnixAsynchronousServerSocketChannelImpl.java

Print this page

        

*** 214,224 **** } // permission check must always be in initiator's context try { if (acc != null) { ! AccessController.doPrivileged(new PrivilegedAction<Void>() { public Void run() { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkAccept(remote.getAddress().getHostAddress(), remote.getPort()); --- 214,224 ---- } // permission check must always be in initiator's context try { if (acc != null) { ! AccessController.doPrivileged(new PrivilegedAction<>() { public Void run() { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkAccept(remote.getAddress().getHostAddress(), remote.getPort());
*** 285,295 **** // any application call frames on the stack PendingFuture<AsynchronousSocketChannel,Object> result = null; synchronized (updateLock) { if (handler == null) { this.acceptHandler = null; ! result = new PendingFuture<AsynchronousSocketChannel,Object>(this); this.acceptFuture = result; } else { this.acceptHandler = handler; this.acceptAttachment = att; } --- 285,295 ---- // any application call frames on the stack PendingFuture<AsynchronousSocketChannel,Object> result = null; synchronized (updateLock) { if (handler == null) { this.acceptHandler = null; ! result = new PendingFuture<>(this); this.acceptFuture = result; } else { this.acceptHandler = handler; this.acceptAttachment = att; }
< prev index next >