commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1086) Remove busy wait from AtomicSafeInitializer.get()
Date Thu, 26 Feb 2015 08:16:04 GMT

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

Benedikt Ritter commented on LANG-1086:
---------------------------------------

I've reverted this change vor now, until we have consensus. My feeling is, that keeping both
implementations while being clear about their concurrency properties is the way to go here.

> Remove busy wait from AtomicSafeInitializer.get()
> -------------------------------------------------
>
>                 Key: LANG-1086
>                 URL: https://issues.apache.org/jira/browse/LANG-1086
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.concurrent.*
>            Reporter: Benedikt Ritter
>            Assignee: Benedikt Ritter
>              Labels: github
>             Fix For: Discussion, 3.4
>
>
> Placeholder ticket for https://github.com/apache/commons-lang/pull/46
> {quote}
> Remove the busy wait from AtomicSafeInitializer.get().
> Also ensure waiting threads do not wait indefinitely after initialize() throws an exception,
instead throwing the same exception, re-wrapped, for each requester.
> Brought the unit tests up to 100% coverage on AtomicSafeInitializer. Eliminated race
condition on verifying at least one thread waiting for initialize() to complete in another
thread.
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message