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

improve caching by Log.useSource

XMLWordPrintable

    • generic
    • generic

      While debugging 6439826, it became clear there is a lot of "thrashing" on Log.useSource. This should be investigated and minimized. At the very least, it might be work keeping a 2-3 element LRU cache of the last few elements used. The cache could use weak references and be flushed by Log.flush. This would save the unnecessary creation of anonymous inner classes to encapsulate the name arg.

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: