Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6896157

unsynchronized hashmap in com.sun.corba.se.impl.transport.SelectorImpl.createReaderThread

XMLWordPrintable

    • b10
    • sparc
    • solaris_10
    • Verified

        hreads consuming high cpu tracked down to unsynchronized hashmap
        usage in com.sun.corba.se.impl.transport.SelectorImpl.createReaderThread.

        ustomer make this change to their jdk 5.0 based jar file.
        It is reported that with customized changes as shown below (lines with
        keyword CSB), the issue is resolved.

        /*
        * @(#)SelectorImpl.java 1.22 09/04/01
        *
        * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
        * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
        */

        ...
        import java.util.Map; // Added this line CSB
        ...
        private Map readerThreads; // Used to be HashMap CSB
        ...
        readerThreads = (Map) java.util.Collections.synchronizedMap(new HashMap()); // Use synchronizedMap CSB

              skoppar Sunita Koppar (Inactive)
              lkchow Lawrence Chow
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: