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

classes/sun/misc/URLClassPath.java optimization missing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.3.1_03
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      03
    • CPU:
      sparc
    • OS:
      solaris_8
    • Verification:
      Verified

      Description



      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)
      ======================================================================

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: