Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-6400

UimaContextHolder threadlocal can leak

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0SDK
    • Core Java Framework
    • None

    Description

      When a UIMA context is set in the UimaContextHolder e.g. when a component initializes or processes - and then the component spawns a new thread, then the UimaContextHolder is inherited by the spawned thread. If the thread does not get garbage collected (e.g. because it is part of a global executor pool), then the UimaContext held by the UimaContextHolder can live way beyond its projected life-time without being garbage-collectable.

      Attachments

        Activity

          People

            rec Richard Eckart de Castilho
            rec Richard Eckart de Castilho
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: