-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Reintroduce JNA Fallocate Wrapper #68858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reintroduce JNA Fallocate Wrapper #68858
Conversation
Second go at #68687 now using the proper indirection so that this works on both OSX and Linux. We can't use the same class we use for `mlock` like the original PR did because the method signature differs across OSX and Linux.
|
Pinging @elastic/es-distributed (Team:Distributed) |
server/src/main/java/org/elasticsearch/bootstrap/JNAFalloc.java
Outdated
Show resolved
Hide resolved
|
https://github.com/elastic/elasticsearch/compare/7a4011dc868..f93003a11bd is a handy link for reviewing this, it drops the diff from #68687 out so you only see the "new" diff that's the osx fix. |
joegallo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and works on my machine. ❤️
|
Thanks for the speedy revert + review on this one Joe! |
Second go at #68687 now using the proper indirection so that this works
on both OSX and Linux. We can't use the same class we use for
mlocklike the original PR didbecause the method signature differs across OSX and Linux.
Apart from the indirection in
JNAFallocthis is unchanged from the previous PR.