javanna commented on PR #16000: URL: https://github.com/apache/lucene/pull/16000#issuecomment-4351911220
> That said, there is nothing preventing somebody from using this interface in their own way and making it refer to off heap as well. Agreeed. The reason why I thought it's good to clarify is that there's data structures that may use heap and off-heap memory, in which case it is not always clear what `ramBytesUsed` should report on. This can lead to inconsistencies and difficulties interpreting sizing. A concrete example: completion FSTs. They moved a few versions ago from on-heap to off-heap. Their accounting reflects that. Some folks may wonder if this is expected, or whether the reporting is inaccurate. -- 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]
