uschindler commented on code in PR #16931:
URL: https://github.com/apache/lucene/pull/16931#discussion_r4402766756
##########
lucene/core/src/java/org/apache/lucene/store/RefCountedSharedArena.java:
##########
@@ -40,9 +41,15 @@
*/
final class RefCountedSharedArena implements Arena {
+ // Intentionally no equals/hashCode: MMapDirectory's arenas.remove(key,
arena) relies on identity.
+
// default maximum permits
static final int DEFAULT_MAX_PERMITS = 64;
+ // the largest configurable number of permits, since the remaining permits
are tracked in the high
+ // 16 bits of the (signed) state
+ static final int MAX_PERMITS = 0x7FFF;
Review Comment:
thanks for adding this constant!
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]