msokolov commented on PR #13581: URL: https://github.com/apache/lucene/pull/13581#issuecomment-2260698767
I'm planning to merge - would just like to get a measure of the impact on heap usage. Looking at ReentrantReadWriteLock I see that it contains three objects: a ReadLock, WriteLock, and a Sync (and pointers to the shared Sync in the r/w locks). The Sync itself looks quite complex, including a doubly-linked list of Nodes, which I think represent Threads that have acquired the lock. I gave up trying to calculate the heap usage by inspection since it seems to be allocating dynamically based on lock acquisition? So maybe some empirical measurement will help -- 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: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org