uschindler commented on issue #13194:
URL: https://github.com/apache/lucene/issues/13194#issuecomment-2010291706

   Once we have that we can add some code to lookup the MethodHandle for the 
madvise / fadvise from Panama and then call it with the file handle/descriptor 
returned by the native API. This is all optional, we could do it similar to 
vector API: Only get the MethodHandle if native access is enabled with command 
line flags, otherwise madvise/fadvise is a noop.
   
   We could also think of adding `mlock2()` to stick parts of MemorySegments to 
RAM. This works out of box as you can pass a MemorySegment in MMapDir directly 
to native code as a pointer.


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

Reply via email to