This is an automated email from the ASF dual-hosted git repository.
philo 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 1c71001d97 [CORE][VL] Fix protobuf memory leak in JNI_OnUnload (#11532)
1c71001d97 is described below
commit 1c71001d97a3ea4f0ef96579cd98e0378d8fdd2e
Author: Chungmin Lee <[email protected]>
AuthorDate: Wed Feb 4 05:42:54 2026 -0800
[CORE][VL] Fix protobuf memory leak in JNI_OnUnload (#11532)
---
cpp/core/jni/JniWrapper.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/cpp/core/jni/JniWrapper.cc b/cpp/core/jni/JniWrapper.cc
index e9d797e1db..187503f053 100644
--- a/cpp/core/jni/JniWrapper.cc
+++ b/cpp/core/jni/JniWrapper.cc
@@ -26,6 +26,7 @@
#include "jni/JniError.h"
#include <arrow/c/bridge.h>
+#include <google/protobuf/stubs/common.h>
#include <optional>
#include <string>
#include "memory/AllocationListener.h"
@@ -305,6 +306,8 @@ void JNI_OnUnload(JavaVM* vm, void* reserved) {
getJniErrorState()->close();
getJniCommonState()->close();
+
+ google::protobuf::ShutdownProtobufLibrary();
}
JNIEXPORT jlong JNICALL
Java_org_apache_gluten_runtime_RuntimeJniWrapper_createRuntime( // NOLINT
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]