Changeset 309 for trunk/openjdk/jdk/src/windows/classes
- Timestamp:
- Feb 13, 2012, 10:07:12 PM (14 years ago)
- Location:
- trunk/openjdk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/openjdk
- Property svn:mergeinfo changed
/branches/vendor/oracle/openjdk6/b24 (added) merged: 308 /branches/vendor/oracle/openjdk6/current merged: 307
- Property svn:mergeinfo changed
-
trunk/openjdk/jdk/src/windows/classes/java/net/TwoStacksPlainDatagramSocketImpl.java
r278 r309 27 27 import java.io.IOException; 28 28 import java.io.FileDescriptor; 29 import sun.net.ResourceManager; 29 30 30 31 /** … … 109 110 if (fd != null || fd1 != null) { 110 111 datagramSocketClose(); 112 ResourceManager.afterUdpClose(); 111 113 fd = null; 112 114 fd1 = null; -
trunk/openjdk/jdk/src/windows/classes/sun/nio/ch/WindowsSelectorImpl.java
r278 r309 1 1 /* 2 * Copyright (c) 2002, 20 07, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 309 309 int numKeysUpdated = 0; 310 310 numKeysUpdated += processFDSet(updateCount, readFds, 311 PollArrayWrapper.POLLIN); 311 PollArrayWrapper.POLLIN, 312 false); 312 313 numKeysUpdated += processFDSet(updateCount, writeFds, 313 314 PollArrayWrapper.POLLCONN | 314 PollArrayWrapper.POLLOUT); 315 PollArrayWrapper.POLLOUT, 316 false); 315 317 numKeysUpdated += processFDSet(updateCount, exceptFds, 316 318 PollArrayWrapper.POLLIN | 317 319 PollArrayWrapper.POLLCONN | 318 PollArrayWrapper.POLLOUT); 320 PollArrayWrapper.POLLOUT, 321 true); 319 322 return numKeysUpdated; 320 323 } … … 328 331 * me.updateCount <= me.clearedCount <= updateCount 329 332 */ 330 private int processFDSet(long updateCount, int[] fds, int rOps) { 333 private int processFDSet(long updateCount, int[] fds, int rOps, 334 boolean isExceptFds) { 331 335 int numKeysUpdated = 0; 332 336 for (int i = 1; i <= fds[0]; i++) { … … 344 348 continue; 345 349 SelectionKeyImpl sk = me.ski; 350 351 // The descriptor may be in the exceptfds set because there is 352 // OOB data queued to the socket. If there is OOB data then it 353 // is discarded and the key is not added to the selected set. 354 if (isExceptFds && 355 (sk.channel() instanceof SocketChannelImpl) && 356 discardUrgentData(desc)) 357 { 358 continue; 359 } 360 346 361 if (selectedKeys.contains(sk)) { // Key in selected set 347 362 if (me.clearedCount != updateCount) { … … 450 465 private native void resetWakeupSocket0(int wakeupSourceFd); 451 466 467 private native boolean discardUrgentData(int fd); 468 452 469 // We increment this counter on each call to updateSelectedKeys() 453 470 // each entry in SubSelector.fdsMap has a memorized value of -
trunk/openjdk/jdk/src/windows/classes/sun/security/provider/NativeSeedGenerator.java
r278 r309 1 1 /* 2 * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 54 54 private static native boolean nativeGenerateSeed(byte[] result); 55 55 56 @Override 56 57 void getSeedBytes(byte[] result) { 57 58 // fill array as a side effect … … 63 64 } 64 65 65 byte getSeedByte() {66 byte[] b = new byte[1];67 getSeedBytes(b);68 return b[0];69 }70 66 }
Note:
See TracChangeset
for help on using the changeset viewer.