This is an automated email from the ASF dual-hosted git repository.

changchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git


The following commit(s) were added to refs/heads/main by this push:
     new 7e401878a0 [GLUTEN-9239][CH] [PART-1] Support Java-17 Rmove 
`JNI_OnUnload`(#9275)
7e401878a0 is described below

commit 7e401878a0a45a901aa33ea18785430605877da9
Author: Chang chen <[email protected]>
AuthorDate: Wed Apr 16 18:32:49 2025 +0800

    [GLUTEN-9239][CH] [PART-1] Support Java-17 Rmove `JNI_OnUnload`(#9275)
---
 cpp-ch/local-engine/libch-hide-jemalloc.map | 1 -
 cpp-ch/local-engine/libch.map               | 1 -
 cpp-ch/local-engine/local_engine_jni.cpp    | 5 -----
 3 files changed, 7 deletions(-)

diff --git a/cpp-ch/local-engine/libch-hide-jemalloc.map 
b/cpp-ch/local-engine/libch-hide-jemalloc.map
index 7c0d4e676a..1cb120ba48 100644
--- a/cpp-ch/local-engine/libch-hide-jemalloc.map
+++ b/cpp-ch/local-engine/libch-hide-jemalloc.map
@@ -3,6 +3,5 @@
       Java_org_apache_gluten*;
       Java_org_apache_spark*;
       JNI_OnLoad;
-      JNI_OnUnload;
     local: *;
 };
diff --git a/cpp-ch/local-engine/libch.map b/cpp-ch/local-engine/libch.map
index 50c6036eb0..43ca30baee 100644
--- a/cpp-ch/local-engine/libch.map
+++ b/cpp-ch/local-engine/libch.map
@@ -3,7 +3,6 @@
       Java_org_apache_gluten*;
       Java_org_apache_spark*;
       JNI_OnLoad;
-      JNI_OnUnload;
       aligned_alloc;
       calloc;
       dallocx;
diff --git a/cpp-ch/local-engine/local_engine_jni.cpp 
b/cpp-ch/local-engine/local_engine_jni.cpp
index 13b7cf2b54..8092c7b878 100644
--- a/cpp-ch/local-engine/local_engine_jni.cpp
+++ b/cpp-ch/local-engine/local_engine_jni.cpp
@@ -171,11 +171,6 @@ JNIEXPORT jint JNI_OnLoad(JavaVM * vm, void * /*reserved*/)
     return JNI_VERSION_1_8;
 }
 
-JNIEXPORT void JNI_OnUnload(JavaVM * vm, void * /*reserved*/)
-{
-    // manually destroy native in 'nativeDestroyNative' method
-}
-
 JNIEXPORT void 
Java_org_apache_gluten_vectorized_ExpressionEvaluatorJniWrapper_nativeInitNative(JNIEnv
 * env, jclass, jbyteArray conf_plan)
 {
     LOCAL_ENGINE_JNI_METHOD_START


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to