[
https://issues.apache.org/jira/browse/LANG-1086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14333748#comment-14333748
]
Benedikt Ritter commented on LANG-1086:
---------------------------------------
{code}
$ svn ci -m "LANG-1086: Remove busy wait from AtomicSafeInitializer.get(). This
also fixes #46 from github. Thanks to github user artnaseef."
Sending src/changes/changes.xml
Sending
src/main/java/org/apache/commons/lang3/concurrent/AtomicSafeInitializer.java
Sending
src/test/java/org/apache/commons/lang3/concurrent/AbstractConcurrentInitializerTest.java
Sending
src/test/java/org/apache/commons/lang3/concurrent/AtomicInitializerTest.java
Sending
src/test/java/org/apache/commons/lang3/concurrent/AtomicSafeInitializerTest.java
Sending
src/test/java/org/apache/commons/lang3/concurrent/LazyInitializerTest.java
Transmitting file data ......
Committed revision 1661762.
{code}
> 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: 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)