You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Earwin Burrfoot (JIRA)" <ji...@apache.org> on 2009/12/14 20:55:18 UTC

[jira] Commented: (LUCENE-2156) use AtomicInteger/Boolean to track IR.refCount and IW.closed

    [ https://issues.apache.org/jira/browse/LUCENE-2156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790314#action_12790314 ] 

Earwin Burrfoot commented on LUCENE-2156:
-----------------------------------------

Did I miss you exploiting 'atomicity' of IW flags? For what I see you could declare them volatile with same result and less characters typed.

> use AtomicInteger/Boolean to track IR.refCount and IW.closed
> ------------------------------------------------------------
>
>                 Key: LUCENE-2156
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2156
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 3.1
>
>         Attachments: LUCENE-2156.patch
>
>
> Less costly than synchronized methods we have now...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org