Uploaded image for project: 'James Mime4j'
  1. James Mime4j
  2. MIME4J-89

Improve thread synchronization in MultiReferenceStorage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6
    • 0.6
    • None
    • None

    Description

      MultiReferenceStorage uses method based synchronization to protect the reference counting variable.

      There are two problems with that:
      1. storage is an interface and so storage.delete() represents a leak of the thread of execution.
      2. storage.delete() may be a slow operation.

      Attachments

        1. mime4j-storage-lock.patch
          2 kB
          Markus Wiederkehr

        Activity

          People

            robertburrelldonkin Robert Burrell Donkin
            wmax Markus Wiederkehr
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: