This is an automated email from the ASF dual-hosted git repository. nightowl888 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/lucenenet.git
commit 0a3c227c5003725bcf8f7fee0d48f22bb8c8a7e6 Author: Shad Storhaug <[email protected]> AuthorDate: Fri Mar 12 18:17:33 2021 +0700 Lucene.Net.Util.AttributeSource: Restored comment from Lucene indicating it doesn't matter if multiple threads compete to populate the ConditionalWeakTable. See #417. --- src/Lucene.Net/Util/AttributeSource.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Lucene.Net/Util/AttributeSource.cs b/src/Lucene.Net/Util/AttributeSource.cs index 91fb3f8..43ff27d 100644 --- a/src/Lucene.Net/Util/AttributeSource.cs +++ b/src/Lucene.Net/Util/AttributeSource.cs @@ -315,6 +315,7 @@ namespace Lucene.Net.Util { return knownImplClasses.GetValue(clazz, (key) => { + // we have the slight chance that another thread may do the same, but who cares? LinkedList<WeakReference<Type>> foundInterfaces = new LinkedList<WeakReference<Type>>(); // find all interfaces that this attribute instance implements // and that extend the Attribute interface
