-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-14912: [Java] Remove usage of PlatformDependent in arrow-vector, arrow-jdbc and arrow-algorithm #14913
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
Conversation
|
|
|
|
lidavidm
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.
Since we also maintain a copy of sun.misc.Unsafe in MemoryUtil, can we add our own getInt, getLong, etc. there and replace Netty Unsafe with our Unsafe? That way we can at least keep the same behavior as before.
|
Thanks @lidavidm for feedback! I think you are meaning to delegate methods on
|
|
Using MemoryUtil.UNSAFE directly is OK, IMO. |
b5022b7 to
17a1c35
Compare
|
|
lidavidm
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.
Thanks!
CC @lwhite1 you may want to glance through this too
|
I filed #14936 for dropping Netty entirely. |
|
How about merging this MR first? We are also blocked by this netty unsafe issue. @lidavidm |
|
I rebased and will merge after that |
|
Benchmark runs are scheduled for baseline = 5765aa2 and contender = 5618a47. 5618a47 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
…tor, arrow-jdbc and arrow-algorithm (apache#14913) * Closes: apache#14912 Authored-by: 郭峰 <guofeng.my@bytedance.com> Signed-off-by: David Li <li.davidm96@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.