| 73 | } |
| 74 | |
| 75 | static void test2(void) { |
| 76 | log_info("test2: jvm=%p", g_jvm); |
| 77 | |
| 78 | JNIEnv* env = get_env(); |
| 79 | if (env == NULL) { |
| 80 | log_error("test2: get_env null"); |
| 81 | return; |
| 82 | } |
| 83 | jclass clazz = env->GetObjectClass(g_fiber); |
| 84 | if (env->ExceptionOccurred()) { |
| 85 | log_error("test2: %d: some exception happened!", __LINE__); |
| 86 | env->ExceptionDescribe(); |
| 87 | env->ExceptionClear(); |
| 88 | } |
| 89 | log_info("test2: env=%p, class=%p", env, clazz); |
| 90 | } |
| 91 | |
| 92 | static void sleep_fiber(void) { |
| 93 | while (true) { |
no test coverage detected
searching dependent graphs…