MCPcopy Create free account
hub / github.com/NativeScript/android / notifyGcFast_impl

Function notifyGcFast_impl

test-app/runtime/src/main/cpp/com_tns_Runtime.cpp:302–310  ·  view source on GitHub ↗

@FastNative ABI: standard JNI signature.

Source from the content-addressed store, hash-verified

300
301// @FastNative ABI: standard JNI signature.
302static 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
312extern "C" JNIEXPORT jboolean Java_com_tns_Runtime_notifyGcLegacy(JNIEnv* env, jobject obj, jint runtimeId) {
313 return notifyGcFast_impl(env, obj, runtimeId);

Callers 1

Calls 2

TryGetRuntimeFunction · 0.85
NotifyGCMethod · 0.80

Tested by

no test coverage detected