polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niclas Hedhman (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (POLYGENE-224) Initialization race condition in ServiceReferenceInstance
Date Sat, 18 Feb 2017 03:58:44 GMT

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

Niclas Hedhman closed POLYGENE-224.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0

Fixed in commit 0816506ac9

> Initialization race condition in ServiceReferenceInstance
> ---------------------------------------------------------
>
>                 Key: POLYGENE-224
>                 URL: https://issues.apache.org/jira/browse/POLYGENE-224
>             Project: Polygene
>          Issue Type: Bug
>            Reporter: Lukas Krecan
>            Assignee: Niclas Hedhman
>             Fix For: 3.0
>
>
> When multiple threads want to use ServiceReferenceInstance there is an activation race
condition.
> Instance is set by first thread [here|https://github.com/apache/polygene-java/blob/develop/core/runtime/src/main/java/org/apache/polygene/runtime/service/ServiceReferenceInstance.java#L152]
but the initialization (activation) is not finished yet. Since the instance variable is already
set, other threads can obtain and use uninitialized instance.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message