uschindler commented on PR #13337:
URL: https://github.com/apache/lucene/pull/13337#issuecomment-2096443560

   Hi,
   
   > It looks we need to have 2 options:
   > 
   > * use try/catch around the madvise and do nothing if unaliged on 4k 
boundaries
   > * use the obsolete/deprecated `getpagesize()` call to libc.
   
   at least libc's `int getpagesize()` is available on both macos and linux. I 
doubt that it ever gets removed from glibc as this may break many programs.
   
   So the only viable solution would be to expose and implement this method in 
NativeAcess via PosixNativeAccess. Should I give it a try?


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