You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Furkan KAMACI (JIRA)" <ji...@apache.org> on 2018/11/24 20:02:00 UTC

[jira] [Commented] (STANBOL-1473) Avoid Double-checked locking

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

Furkan KAMACI commented on STANBOL-1473:
----------------------------------------

I've created a PR at Github: https://github.com/apache/stanbol/pull/9

> Avoid Double-checked locking
> ----------------------------
>
>                 Key: STANBOL-1473
>                 URL: https://issues.apache.org/jira/browse/STANBOL-1473
>             Project: Stanbol
>          Issue Type: Bug
>          Components: Build
>            Reporter: Furkan KAMACI
>            Priority: Major
>             Fix For: 1.0.0, 0.12.1, 2.0.0
>
>
> Using double-checked locking for the lazy initialization of any other type of primitive or mutable object risks a second thread using an uninitialized or partially initialized member while the first thread is still creating it, and crashing the program.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)