You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@polygene.apache.org by "Niclas Hedhman (JIRA)" <ji...@apache.org> on 2017/02/14 03:56:41 UTC

[jira] [Commented] (POLYGENE-224) Initialization race condition in ServiceReferenceInstance

    [ https://issues.apache.org/jira/browse/POLYGENE-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15865000#comment-15865000 ] 

Niclas Hedhman commented on POLYGENE-224:
-----------------------------------------

Nice catch!
I will fix this asap...

> 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
>
> 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)