ImageBufferCache should release buffers when all classes are loaded

XMLWordPrintable

    • b115
    • generic
    • generic
    • Verified

      Considered using sun.nio.ch.Util.getTemporaryDirectBuffer(int size), sun.nio.ch.Util.releaseTemporaryDirectBuffer(ByteBuffer but) but found they provided no benefit other than reuse with the disadvantage of not working for jrtfs.jar cross development.

      Attempted to use SoftReferences but found they lingered for a very long time.

      Better to use WeakReferences for these buffers, to handle bursts of class loading.

            Assignee:
            Jim Laskey
            Reporter:
            Jim Laskey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: