You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/05/13 12:16:21 UTC

[GitHub] [arrow] lidavidm commented on a diff in pull request #13146: ARROW-16566: [JAVA] Could not initialize class org.apache.arrow.dataset.jni.NativeMemoryPool

lidavidm commented on code in PR #13146:
URL: https://github.com/apache/arrow/pull/13146#discussion_r872336100


##########
java/dataset/src/main/java/org/apache/arrow/dataset/jni/NativeMemoryPool.java:
##########
@@ -23,7 +23,7 @@
 public class NativeMemoryPool implements AutoCloseable {
   private final long nativeInstanceId;
 
-  static {
+  private static void ensureLoaded() {

Review Comment:
   Is there any reason not to inline this instead?



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org