MCPcopy Create free account
hub / github.com/ReadyTalk/avian / preBoot

Method preBoot

src/classpath-android.cpp:384–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382 }
383
384 virtual void preBoot(Thread* t)
385 {
386// Android's System.initSystemProperties throws an NPE if
387// LD_LIBRARY_PATH is not set as of this writing:
388#ifdef PLATFORM_WINDOWS
389 _wputenv(L"LD_LIBRARY_PATH=(dummy)");
390#elif(!defined AVIAN_IOS)
391 setenv("LD_LIBRARY_PATH", "", false);
392#endif
393
394 interceptMethods(t, true);
395
396 JniConstants::init(reinterpret_cast<_JNIEnv*>(t));
397
398 JNI_OnLoad(reinterpret_cast< ::JavaVM*>(t->m), 0);
399
400 libconscrypt_JNI_OnLoad(reinterpret_cast< ::_JavaVM*>(t->m), 0);
401
402 mayInitClasses_ = true;
403 }
404
405 virtual bool mayInitClasses()
406 {

Callers

nothing calls this directly

Calls 3

libconscrypt_JNI_OnLoadFunction · 0.85
initFunction · 0.50
JNI_OnLoadFunction · 0.50

Tested by

no test coverage detected