You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by GitBox <gi...@apache.org> on 2021/08/12 22:22:40 UTC

[GitHub] [lucenenet] NightOwl888 opened a new pull request #509: Fix for #506 - Prune dead elements from IndexReader.parentReaders collection when they go out of scope

NightOwl888 opened a new pull request #509:
URL: https://github.com/apache/lucenenet/pull/509


   - BUG: `Lucene.Net.Index.IndexReader`: Use `ConditionalWeakTable<TKey, TValue>`/`WeakDictionary<TKey, TValue>` to ensure dead elements are pruned and garbage collected (fixes #506).
   - Changed backing object for `WeakKey` of `WeakDictionary<TKey, TValue>` from `WeakReference` to `WeakReference<T>`.
   - Changed backing collection of `WeakDictionary<TKey, TValue>` to `ConcurrentDictionary<TKey, TValue>` to allow the `Clean()` method to remove items while iterating forward instead of instantiating a new collection.


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [lucenenet] NightOwl888 merged pull request #509: Fix for #506 - Prune dead elements from IndexReader.parentReaders collection when they go out of scope

Posted by GitBox <gi...@apache.org>.
NightOwl888 merged pull request #509:
URL: https://github.com/apache/lucenenet/pull/509


   


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org