matthiasblaesing opened a new pull request #1520: [NETBEANS-2940] Invalidate 
cacheed ArchiveRootProviders on change
URL: https://github.com/apache/netbeans/pull/1520
 
 
   This is a followup to commit:
   
   290420cfff1a "[NETBEANS-2940] Cache ArchiveRootProviders"
   
   The issue is:
   
   archiveRootProviders.compareAndSet(null, res)
   
   returns true, when the set was successful. In this case, the 
   LookupListener needs to registered, that invalidates the cache list of
   ArchiveRootProviders. In the original commit, this logic was inverted,
   so the LookupListener was not installed and the cache never invalidated.
   
   In addition the archiveRootProviderCache was made volatile to prevent
   wrong caching across threads.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to