We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ce0bc9 commit 52184d5Copy full SHA for 52184d5
1 file changed
src/native/crt.c
@@ -64,12 +64,14 @@ void aws_jni_set_dispatch_queue_threads(bool is_dispatch_queue) {
64
}
65
66
static void s_detach_jvm_from_thread(void *user_data) {
67
+ AWS_LOGF_DEBUG(AWS_LS_COMMON_GENERAL, "s_detach_jvm_from_thread invoked");
68
JavaVM *jvm = user_data;
69
70
/* we don't need this JNIEnv, but this is an easy way to verify the JVM is still valid to use */
71
/********** JNI ENV ACQUIRE **********/
72
JNIEnv *env = aws_jni_acquire_thread_env(jvm);
73
if (env != NULL) {
74
+ (*jvm)->DetachCurrentThread(jvm);
75
aws_jni_release_thread_env(jvm, env);
76
/********** JNI ENV RELEASE **********/
77
0 commit comments