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

classes/sun/misc/URLClassPath.java optimization missing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.3.1_03
    • 1.3.1
    • core-libs
    • 03
    • sparc
    • solaris_8
    • Verified



      Name: kb87695 Date: 11/14/2001


      This section of code appears to have been removed from1.3.1 between build
      19 and 20. The code was placed back in and the appropriate regression tests
      run and I the tests passed as expected. This section of code is also IN the current
      1.4 build.

      Please add this into the next 1.3.1_0x maintenance release.

      > We see a performance fix that was present for the source drop
      > JAVASOFT_13100_PRE_FCS_B19 was lost at JAVASOFT_13100_PRE_FCS_B20.
      >
      > The performance fix was on line 205 of that file:
      >
      > synchronized (urls) {
      > if (urls.empty()) {
      > return null;
      > } else {
      > url = (URL)urls.pop();
      > }
      > }
      >
      > The slower alternative was:
      >
      > try {
      > synchronized (urls) {
      > url = (URL)urls.pop();
      > }
      > } catch (EmptyStackException e) {
      > return null;
      > }

      ###@###.### 2001-11-14


      ###@###.### 2001-11-14

      (Review ID: 135511)
      ======================================================================

            minqi Yumin Qi
            kevibrow Kevin Brown
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: