fb64 commented on issue #20379:
URL: https://github.com/apache/arrow/issues/20379#issuecomment-1944808811
Thanks for the hint @pitrou , I'll try to add `AttachCurrentThread` to fix
the issue if I manage to make the compilation of the JNI libraries work on my
computer..
```cpp
arrow::Status OnRelease(int64_t size) override {
JNIEnv* env;
if (vm_->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION) != JNI_OK) {
if (AttachCurrentThread(vm_,&env) != JNI_OK) {
return arrow::Status::Invalid("JNIEnv was not attached to current
thread");
}
}
env->CallObjectMethod(java_reservation_listener_, unreserve_memory_method,
size);
RETURN_NOT_OK(arrow::dataset::jni::CheckException(env));
return arrow::Status::OK();
}
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]