ChrisHegarty commented on PR #13196:
URL: https://github.com/apache/lucene/pull/13196#issuecomment-2014855899

   > ./gradlew :lucene:core:test -Ptests.directory=MMapDirectory
   
   All tests pass on my Mac M2.
   
   Native constants are same as yours.
   ```
   $ xcrun --show-sdk-path
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
   
   $ cd /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/
   
   $ fgrep -R POSIX_MADV *
   sys/mman.h:#define POSIX_MADV_NORMAL       0       /* [MC1] no further 
special treatment */
   sys/mman.h:#define POSIX_MADV_RANDOM       1       /* [MC1] expect random 
page refs */
   sys/mman.h:#define POSIX_MADV_SEQUENTIAL   2       /* [MC1] expect 
sequential page refs */
   sys/mman.h:#define POSIX_MADV_WILLNEED     3       /* [MC1] will need these 
pages */
   sys/mman.h:#define POSIX_MADV_DONTNEED     4       /* [MC1] dont need these 
pages */
   sys/mman.h:#define MADV_NORMAL             POSIX_MADV_NORMAL
   sys/mman.h:#define MADV_RANDOM             POSIX_MADV_RANDOM
   sys/mman.h:#define MADV_SEQUENTIAL         POSIX_MADV_SEQUENTIAL
   sys/mman.h:#define MADV_WILLNEED           POSIX_MADV_WILLNEED
   sys/mman.h:#define MADV_DONTNEED           POSIX_MADV_DONTNEED      
   ```
   
   


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