Github user zsxwing commented on a diff in the pull request:
https://github.com/apache/spark/pull/10181#discussion_r47009351
--- Diff: unsafe/src/main/java/org/apache/spark/unsafe/Platform.java ---
@@ -32,6 +33,23 @@
public static final int LONG_ARRAY_OFFSET;
public static final int DOUBLE_ARRAY_OFFSET;
+
+ private static final boolean unaligned;
+ static {
+ // Copied from java.nio.Bits.java#unaligned
--- End diff --
Is there any license issue here? I'm not sure. But maybe we can use
reflection to call `Bits.unaligned` and add a test for it in case
`Bits.unaligned` is removed in future.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]