@FastNative ABI: standard JNI signature.
| 300 | |
| 301 | // @FastNative ABI: standard JNI signature. |
| 302 | static jboolean notifyGcFast_impl(JNIEnv* env, jobject obj, jint runtimeId) { |
| 303 | auto runtime = TryGetRuntime(runtimeId); |
| 304 | if (runtime == nullptr) { |
| 305 | return JNI_FALSE; |
| 306 | } |
| 307 | |
| 308 | jboolean success = runtime->NotifyGC(env, obj) ? JNI_TRUE : JNI_FALSE; |
| 309 | return success; |
| 310 | } |
| 311 | |
| 312 | extern "C" JNIEXPORT jboolean Java_com_tns_Runtime_notifyGcLegacy(JNIEnv* env, jobject obj, jint runtimeId) { |
| 313 | return notifyGcFast_impl(env, obj, runtimeId); |
no test coverage detected