Lines Matching full:jvm
34 JavaVM *jvm; member
57 JavaVM *jvm; member
91 JNIEnv *env = aws_jni_acquire_thread_env(callback_data->jvm); in s_server_listener_shutdown_complete()
93 /* If we can't get an environment, then the JVM is probably shutting down. Don't crash. */ in s_server_listener_shutdown_complete()
104 JavaVM *jvm = callback_data->jvm; in s_server_listener_shutdown_complete() local
106 aws_jni_release_thread_env(jvm, env); in s_server_listener_shutdown_complete()
111 JavaVM *jvm; member
141 JNIEnv *env = aws_jni_acquire_thread_env(callback_data->jvm); in s_stream_continuation_fn()
143 /* If we can't get an environment, then the JVM is probably shutting down. Don't crash. */ in s_stream_continuation_fn()
162 /* don't really care if they threw here, but we want to make the jvm happy that we checked */ in s_stream_continuation_fn()
165 aws_jni_release_thread_env(callback_data->jvm, env); in s_stream_continuation_fn()
176 JNIEnv *env = aws_jni_acquire_thread_env(continuation_callback_data->jvm); in s_stream_continuation_closed_fn()
178 /* If we can't get an environment, then the JVM is probably shutting down. Don't crash. */ in s_stream_continuation_closed_fn()
186 /* don't really care if they threw here, but we want to make the jvm happy that we checked */ in s_stream_continuation_closed_fn()
189 JavaVM *jvm = continuation_callback_data->jvm; in s_stream_continuation_closed_fn() local
191 aws_jni_release_thread_env(jvm, env); in s_stream_continuation_closed_fn()
209 JNIEnv *env = aws_jni_acquire_thread_env(callback_data->jvm); in s_on_incoming_stream_fn()
211 /* If we can't get an environment, then the JVM is probably shutting down. Don't crash. */ in s_on_incoming_stream_fn()
222 continuation_callback_data->jvm = callback_data->jvm; in s_on_incoming_stream_fn()
274 aws_jni_release_thread_env(callback_data->jvm, env); in s_on_incoming_stream_fn()
292 aws_jni_release_thread_env(callback_data->jvm, env); in s_on_incoming_stream_fn()
307 JNIEnv *env = aws_jni_acquire_thread_env(callback_data->jvm); in s_connection_protocol_message_fn()
309 /* If we can't get an environment, then the JVM is probably shutting down. Don't crash. */ in s_connection_protocol_message_fn()
329 /* don't really care if they threw here, but we want to make the jvm happy that we checked */ in s_connection_protocol_message_fn()
332 aws_jni_release_thread_env(callback_data->jvm, env); in s_connection_protocol_message_fn()
345 JNIEnv *env = aws_jni_acquire_thread_env(callback_data->jvm); in s_on_new_connection_fn()
347 /* If we can't get an environment, then the JVM is probably shutting down. Don't crash. */ in s_on_new_connection_fn()
361 connection_callback_data->jvm = callback_data->jvm; in s_on_new_connection_fn()
407 aws_jni_release_thread_env(callback_data->jvm, env); in s_on_new_connection_fn()
424 aws_jni_release_thread_env(callback_data->jvm, env); in s_on_new_connection_fn()
443 JNIEnv *env = aws_jni_acquire_thread_env(callback_data->jvm); in s_on_connection_shutdown_fn()
445 /* If we can't get an environment, then the JVM is probably shutting down. Don't crash. */ in s_on_connection_shutdown_fn()
468 JavaVM *jvm = callback_data->jvm; in s_on_connection_shutdown_fn() local
470 aws_jni_release_thread_env(jvm, env); in s_on_connection_shutdown_fn()
520 jint jvmresult = (*env)->GetJavaVM(env, &callback_data->jvm); in Java_software_amazon_awssdk_crt_eventstream_ServerListener_serverListenerNew()
522 … aws_jni_throw_runtime_exception(env, "ServerListener.server_listener_new: Unable to get JVM"); in Java_software_amazon_awssdk_crt_eventstream_ServerListener_serverListenerNew()
700 JavaVM *jvm; member
720 JNIEnv *env = aws_jni_acquire_thread_env(callback_data->jvm); in s_message_flush_fn()
722 /* If we can't get an environment, then the JVM is probably shutting down. Don't crash. */ in s_message_flush_fn()
730 JavaVM *jvm = callback_data->jvm; in s_message_flush_fn() local
732 aws_jni_release_thread_env(jvm, env); in s_message_flush_fn()
773 jint jvmresult = (*env)->GetJavaVM(env, &callback_data->jvm); in Java_software_amazon_awssdk_crt_eventstream_ServerConnection_sendProtocolMessage()
775 … aws_jni_throw_runtime_exception(env, "ServerConnection.sendProtocolMessage: Unable to get JVM"); in Java_software_amazon_awssdk_crt_eventstream_ServerConnection_sendProtocolMessage()
889 jint jvmresult = (*env)->GetJavaVM(env, &callback_data->jvm); in Java_software_amazon_awssdk_crt_eventstream_ServerConnectionContinuation_sendContinuationMessage()
891 …_runtime_exception(env, "ServerConnectionContinuation.sendContinuationMessage: Unable to get JVM"); in Java_software_amazon_awssdk_crt_eventstream_ServerConnectionContinuation_sendContinuationMessage()