You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (Jira)" <de...@uima.apache.org> on 2021/12/13 16:28:00 UTC

[jira] [Resolved] (UIMA-6400) UimaContextHolder threadlocal can leak

     [ https://issues.apache.org/jira/browse/UIMA-6400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Eckart de Castilho resolved UIMA-6400.
----------------------------------------------
    Resolution: Fixed

> UimaContextHolder threadlocal can leak
> --------------------------------------
>
>                 Key: UIMA-6400
>                 URL: https://issues.apache.org/jira/browse/UIMA-6400
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>            Reporter: Richard Eckart de Castilho
>            Assignee: Richard Eckart de Castilho
>            Priority: Major
>             Fix For: 3.3.0SDK, 3.2.1SDK
>
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)