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

improve caching by Log.useSource

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: