Ignore:
Timestamp:
Feb 13, 2012, 10:07:12 PM (14 years ago)
Author:
dmik
Message:

trunk: Merged in openjdk6 b24 from branches/vendor/oracle.

Location:
trunk/openjdk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk

  • trunk/openjdk/jdk/src/windows/classes/java/net/TwoStacksPlainDatagramSocketImpl.java

    r278 r309  
    2727import java.io.IOException;
    2828import java.io.FileDescriptor;
     29import sun.net.ResourceManager;
    2930
    3031/**
     
    109110        if (fd != null || fd1 != null) {
    110111            datagramSocketClose();
     112            ResourceManager.afterUdpClose();
    111113            fd = null;
    112114            fd1 = null;
  • trunk/openjdk/jdk/src/windows/classes/sun/nio/ch/WindowsSelectorImpl.java

    r278 r309  
    11/*
    2  * Copyright (c) 2002, 2007, Oracle and/or its affiliates. All rights reserved.
     2 * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    309309            int numKeysUpdated = 0;
    310310            numKeysUpdated += processFDSet(updateCount, readFds,
    311                                            PollArrayWrapper.POLLIN);
     311                                           PollArrayWrapper.POLLIN,
     312                                           false);
    312313            numKeysUpdated += processFDSet(updateCount, writeFds,
    313314                                           PollArrayWrapper.POLLCONN |
    314                                            PollArrayWrapper.POLLOUT);
     315                                           PollArrayWrapper.POLLOUT,
     316                                           false);
    315317            numKeysUpdated += processFDSet(updateCount, exceptFds,
    316318                                           PollArrayWrapper.POLLIN |
    317319                                           PollArrayWrapper.POLLCONN |
    318                                            PollArrayWrapper.POLLOUT);
     320                                           PollArrayWrapper.POLLOUT,
     321                                           true);
    319322            return numKeysUpdated;
    320323        }
     
    328331         * me.updateCount <= me.clearedCount <= updateCount
    329332         */
    330         private int processFDSet(long updateCount, int[] fds, int rOps) {
     333        private int processFDSet(long updateCount, int[] fds, int rOps,
     334                                 boolean isExceptFds) {
    331335            int numKeysUpdated = 0;
    332336            for (int i = 1; i <= fds[0]; i++) {
     
    344348                    continue;
    345349                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
    346361                if (selectedKeys.contains(sk)) { // Key in selected set
    347362                    if (me.clearedCount != updateCount) {
     
    450465    private native void resetWakeupSocket0(int wakeupSourceFd);
    451466
     467    private native boolean discardUrgentData(int fd);
     468
    452469    // We increment this counter on each call to updateSelectedKeys()
    453470    // each entry in  SubSelector.fdsMap has a memorized value of
  • trunk/openjdk/jdk/src/windows/classes/sun/security/provider/NativeSeedGenerator.java

    r278 r309  
    11/*
    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.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    5454    private static native boolean nativeGenerateSeed(byte[] result);
    5555
     56    @Override
    5657    void getSeedBytes(byte[] result) {
    5758        // fill array as a side effect
     
    6364    }
    6465
    65     byte getSeedByte() {
    66         byte[] b = new byte[1];
    67         getSeedBytes(b);
    68         return b[0];
    69     }
    7066}
Note: See TracChangeset for help on using the changeset viewer.