-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Change Java native methods to static #11882
Conversation
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. Appears on reading through to do what is intended, and I am not aware of any omissions. Are we sure that UTs are comprehensive, i.e. all native methods are covered by the UTs ? Could we look at having a ticket based on #11221 which ensures that ? (not something we can do now, just an idea for reference)
c78147f
to
1c00673
Compare
915c1c1
to
f1f69f3
Compare
@rhubner Can we get this rebased please? |
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. @rhubner can you rebase please? @ajkr @pdillinger the changes in this PR are mostly mechanical and follow the same single pattern over-and-over again, as soon as it is rebased and CI passes can we get this one merged please?
This should give us some performance benefit calling native C++ code. See bug facebook#4786 and https://github.com/evolvedbinary/jni-benchmarks/ for more info.
@ajkr @pdillinger can we get this imported ASAP please? |
@ajkr has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
This should give us some performance benefit calling native C++ code.
Closes #4786
See https://github.com/evolvedbinary/jni-benchmarks/ for more info.