Lines Matching refs:g_jvm
24 JavaVM* g_jvm = NULL; variable
42 DCHECK(g_jvm); in AttachCurrentThread()
44 jint ret = g_jvm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_2); in AttachCurrentThread()
60 ret = g_jvm->AttachCurrentThread(&env, &args); in AttachCurrentThread()
67 DCHECK(g_jvm); in AttachCurrentThreadWithName()
73 jint ret = g_jvm->AttachCurrentThread(&env, &args); in AttachCurrentThreadWithName()
81 if (g_jvm) in DetachFromVM()
82 g_jvm->DetachCurrentThread(); in DetachFromVM()
86 DCHECK(!g_jvm || g_jvm == vm); in InitVM()
87 g_jvm = vm; in InitVM()
91 return g_jvm != NULL; in IsVMInitialized()