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

Unnecessary Vector usage in AquaFileSystemModel

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 16, 17
    • Fix Version/s: 18
    • Component/s: client-libs
    • Labels:
      None

      Description

      Fields 'AquaFileSystemModel.fileCache' and 'AquaFileSystemModel.FilesLoader.queuedTasks' are accessed only under synchronized(fileCacheLock).
      It means extract synchronization by Vector is not needed. And we can use non-thread safe ArrayList instead.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              aturbanov Andrey Turbanov
              Reporter:
              aturbanov Andrey Turbanov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: