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

extra pings to server if WeakReferenced CachedJarLoaders gc'ed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.1_07
    • 1.4.2
    • deploy
    • None
    • 07
    • generic
    • generic

        Jar files cached using cache_archive or cache_archive_ex can sometimes ping the
        server checking for expirary date. This is because JarCache.loadedJars uses
        WeakReferences for CachedJarLoader's and these can be gc'ed at any time.

        If the jar is loaded once from the cache it is removed from JarCache.currentJars
        in JarCache.get() and added to the JarCache.loadedJars. Because loadedJars uses
        WeakReferences then it maybe removed by gc and when the jar is requested to be
        loaded again it is no longer in curentJars, and then the extra ping.

        ###@###.###

              djayaramsunw Devananda Jayaraman (Inactive)
              chegar Chris Hegarty
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: