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

Method InsertClassIntoCache

test-app/runtime/src/main/cpp/JEnv.cpp:770–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

768}
769
770jclass JEnv::InsertClassIntoCache(const string &className, jclass &tmp) {
771 auto global_class = reinterpret_cast<jclass>(m_env->NewGlobalRef(tmp));
772 s_classCache.emplace(className, global_class);
773 m_env->DeleteLocalRef(tmp);
774
775 return global_class;
776}
777
778jthrowable JEnv::CheckForClassMissingCache(const string &className) {
779 jthrowable throwable = nullptr;

Callers 1

ResolveClassMethod · 0.80

Calls 3

NewGlobalRefMethod · 0.80
emplaceMethod · 0.80
DeleteLocalRefMethod · 0.80

Tested by

no test coverage detected