Home
last modified time | relevance | path

Searched refs:env (Results 1 – 25 of 60) sorted by relevance

123

/art/runtime/
Dwell_known_classes.cc117 static jclass CacheClass(JNIEnv* env, const char* jni_class_name) { in CacheClass() argument
118 ScopedLocalRef<jclass> c(env, env->FindClass(jni_class_name)); in CacheClass()
122 return reinterpret_cast<jclass>(env->NewGlobalRef(c.get())); in CacheClass()
125 static jfieldID CacheField(JNIEnv* env, jclass c, bool is_static, const char* name, const char* sig… in CacheField() argument
126 …jfieldID fid = is_static ? env->GetStaticFieldID(c, name, signature) : env->GetFieldID(c, name, si… in CacheField()
133 jmethodID CacheMethod(JNIEnv* env, jclass c, bool is_static, const char* name, const char* signatur… in CacheMethod() argument
134 …jmethodID mid = is_static ? env->GetStaticMethodID(c, name, signature) : env->GetMethodID(c, name,… in CacheMethod()
141 static jmethodID CachePrimitiveBoxingMethod(JNIEnv* env, char prim_name, const char* boxed_name) { in CachePrimitiveBoxingMethod() argument
142 ScopedLocalRef<jclass> boxed_class(env, env->FindClass(boxed_name)); in CachePrimitiveBoxingMethod()
143 return CacheMethod(env, boxed_class.get(), true, "valueOf", in CachePrimitiveBoxingMethod()
[all …]
Dcheck_jni.cc89 static bool IsHandleScopeLocalRef(JNIEnv* env, jobject localRef) { in IsHandleScopeLocalRef() argument
91 reinterpret_cast<JNIEnvExt*>(env)->self->HandleScopeContains(localRef); in IsHandleScopeLocalRef()
152 explicit ScopedCheck(JNIEnv* env, int flags, const char* functionName) in ScopedCheck() argument
154 : soa_(env) { in ScopedCheck()
447 JNIEnv* env = va_arg(ap, JNIEnv*); in Check() local
448 StringAppendF(&msg, "(JNIEnv*)%p", env); in Check()
895 ScopedCheck sc(env, flags, __FUNCTION__); \
1080 static void* CreateGuardedPACopy(JNIEnv* env, const jarray java_array, jboolean* isCopy) { in CreateGuardedPACopy() argument
1081 ScopedObjectAccess soa(env); in CreateGuardedPACopy()
1097 static void ReleaseGuardedPACopy(JNIEnv* env, jarray java_array, void* dataBuf, int mode) { in ReleaseGuardedPACopy() argument
[all …]
Djni_internal.cc264 int ThrowNewException(JNIEnv* env, jclass exception_class, const char* msg, jobject cause) in ThrowNewException() argument
267 ScopedLocalRef<jstring> s(env, env->NewStringUTF(msg)); in ThrowNewException()
288 jmethodID mid = env->GetMethodID(exception_class, "<init>", signature); in ThrowNewException()
290 ScopedObjectAccess soa(env); in ThrowNewException()
297 env, reinterpret_cast<jthrowable>(env->NewObjectA(exception_class, mid, args))); in ThrowNewException()
301 ScopedObjectAccess soa(env); in ThrowNewException()
591 static jclass FindClass(JNIEnv* env, const char* name) { in FindClass() argument
596 ScopedObjectAccess soa(env); in FindClass()
608 static jmethodID FromReflectedMethod(JNIEnv* env, jobject jlr_method) { in FromReflectedMethod() argument
610 ScopedObjectAccess soa(env); in FromReflectedMethod()
[all …]
/art/test/004-JniTest/
Djni_test.cc40 JNIEnv* env = nullptr; in AttachHelper() local
42 int attach_result = jvm->AttachCurrentThread(&env, &args); in AttachHelper()
47 fn(env); in AttachHelper()
63 static void testFindClassOnAttachedNativeThread(JNIEnv* env) { in testFindClassOnAttachedNativeThread() argument
64 jclass clazz = env->FindClass("Main"); in testFindClassOnAttachedNativeThread()
66 assert(!env->ExceptionCheck()); in testFindClassOnAttachedNativeThread()
68 jobjectArray array = env->NewObjectArray(0, clazz, nullptr); in testFindClassOnAttachedNativeThread()
70 assert(!env->ExceptionCheck()); in testFindClassOnAttachedNativeThread()
78 static void testFindFieldOnAttachedNativeThread(JNIEnv* env) { in testFindFieldOnAttachedNativeThread() argument
79 jclass clazz = env->FindClass("Main"); in testFindFieldOnAttachedNativeThread()
[all …]
/art/compiler/jni/
Djni_compiler_test.cc196 void Java_MyClassNatives_foo(JNIEnv* env, jobject thisObj) { in Java_MyClassNatives_foo() argument
200 EXPECT_EQ(Thread::Current()->GetJniEnv(), env); in Java_MyClassNatives_foo()
202 EXPECT_TRUE(env->IsInstanceOf(thisObj, JniCompilerTest::jklass_)); in Java_MyClassNatives_foo()
262 jint Java_MyClassNatives_fooI(JNIEnv* env, jobject thisObj, jint x) { in Java_MyClassNatives_fooI() argument
265 EXPECT_EQ(Thread::Current()->GetJniEnv(), env); in Java_MyClassNatives_fooI()
267 EXPECT_TRUE(env->IsInstanceOf(thisObj, JniCompilerTest::jklass_)); in Java_MyClassNatives_fooI()
293 jint Java_MyClassNatives_fooII(JNIEnv* env, jobject thisObj, jint x, jint y) { in Java_MyClassNatives_fooII() argument
296 EXPECT_EQ(Thread::Current()->GetJniEnv(), env); in Java_MyClassNatives_fooII()
298 EXPECT_TRUE(env->IsInstanceOf(thisObj, JniCompilerTest::jklass_)); in Java_MyClassNatives_fooII()
325 jlong Java_MyClassNatives_fooJJ(JNIEnv* env, jobject thisObj, jlong x, jlong y) { in Java_MyClassNatives_fooJJ() argument
[all …]
/art/runtime/native/
Ddalvik_system_VMDebug.cc39 static jobjectArray VMDebug_getVmFeatureList(JNIEnv* env, jclass) { in VMDebug_getVmFeatureList() argument
47 jobjectArray result = env->NewObjectArray(arraysize(features), in VMDebug_getVmFeatureList()
52 ScopedLocalRef<jstring> jfeature(env, env->NewStringUTF(features[i])); in VMDebug_getVmFeatureList()
56 env->SetObjectArrayElement(result, i, jfeature.get()); in VMDebug_getVmFeatureList()
83 static void VMDebug_startMethodTracingFd(JNIEnv* env, jclass, jstring javaTraceFilename, in VMDebug_startMethodTracingFd() argument
86 int originalFd = jniGetFDFromFileDescriptor(env, javaFd); in VMDebug_startMethodTracingFd()
93 ScopedObjectAccess soa(env); in VMDebug_startMethodTracingFd()
100 ScopedUtfChars traceFilename(env, javaTraceFilename); in VMDebug_startMethodTracingFd()
107 static void VMDebug_startMethodTracingFilename(JNIEnv* env, jclass, jstring javaTraceFilename, in VMDebug_startMethodTracingFilename() argument
110 ScopedUtfChars traceFilename(env, javaTraceFilename); in VMDebug_startMethodTracingFilename()
[all …]
Dsun_misc_Unsafe.cc26 static jboolean Unsafe_compareAndSwapInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapInt() argument
28 ScopedFastNativeObjectAccess soa(env); in Unsafe_compareAndSwapInt()
36 static jboolean Unsafe_compareAndSwapLong(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapLong() argument
38 ScopedFastNativeObjectAccess soa(env); in Unsafe_compareAndSwapLong()
46 static jboolean Unsafe_compareAndSwapObject(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapObject() argument
48 ScopedFastNativeObjectAccess soa(env); in Unsafe_compareAndSwapObject()
58 static jint Unsafe_getInt(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getInt() argument
59 ScopedFastNativeObjectAccess soa(env); in Unsafe_getInt()
64 static jint Unsafe_getIntVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getIntVolatile() argument
65 ScopedFastNativeObjectAccess soa(env); in Unsafe_getIntVolatile()
[all …]
Djava_lang_Thread.cc31 static jobject Thread_currentThread(JNIEnv* env, jclass) { in Thread_currentThread() argument
32 ScopedFastNativeObjectAccess soa(env); in Thread_currentThread()
36 static jboolean Thread_interrupted(JNIEnv* env, jclass) { in Thread_interrupted() argument
37 return static_cast<JNIEnvExt*>(env)->self->Interrupted() ? JNI_TRUE : JNI_FALSE; in Thread_interrupted()
40 static jboolean Thread_isInterrupted(JNIEnv* env, jobject java_thread) { in Thread_isInterrupted() argument
41 ScopedFastNativeObjectAccess soa(env); in Thread_isInterrupted()
47 static void Thread_nativeCreate(JNIEnv* env, jclass, jobject java_thread, jlong stack_size, in Thread_nativeCreate() argument
49 Thread::CreateNativeThread(env, java_thread, stack_size, daemon == JNI_TRUE); in Thread_nativeCreate()
52 static jint Thread_nativeGetStatus(JNIEnv* env, jobject java_thread, jboolean has_been_started) { in Thread_nativeGetStatus() argument
61 ScopedObjectAccess soa(env); in Thread_nativeGetStatus()
[all …]
Djava_lang_Object.cc28 static jobject Object_internalClone(JNIEnv* env, jobject java_this) { in Object_internalClone() argument
29 ScopedFastNativeObjectAccess soa(env); in Object_internalClone()
34 static void Object_notify(JNIEnv* env, jobject java_this) { in Object_notify() argument
35 ScopedFastNativeObjectAccess soa(env); in Object_notify()
40 static void Object_notifyAll(JNIEnv* env, jobject java_this) { in Object_notifyAll() argument
41 ScopedFastNativeObjectAccess soa(env); in Object_notifyAll()
46 static void Object_wait(JNIEnv* env, jobject java_this) { in Object_wait() argument
47 ScopedFastNativeObjectAccess soa(env); in Object_wait()
52 static void Object_waitJI(JNIEnv* env, jobject java_this, jlong ms, jint ns) { in Object_waitJI() argument
53 ScopedFastNativeObjectAccess soa(env); in Object_waitJI()
[all …]
Djava_lang_Class.cc44 static jclass Class_classForName(JNIEnv* env, jclass, jstring javaName, jboolean initialize, in Class_classForName() argument
46 ScopedFastNativeObjectAccess soa(env); in Class_classForName()
47 ScopedUtfChars name(env, javaName); in Class_classForName()
69 ScopedLocalRef<jthrowable> cause(env, env->ExceptionOccurred()); in Class_classForName()
70 env->ExceptionClear(); in Class_classForName()
71 …jthrowable cnfe = reinterpret_cast<jthrowable>(env->NewObject(WellKnownClasses::java_lang_ClassNot… in Class_classForName()
76 env->Throw(cnfe); in Class_classForName()
86 static jstring Class_getNameNative(JNIEnv* env, jobject javaThis) { in Class_getNameNative() argument
87 ScopedFastNativeObjectAccess soa(env); in Class_getNameNative()
93 static jobjectArray Class_getProxyInterfaces(JNIEnv* env, jobject javaThis) { in Class_getProxyInterfaces() argument
[all …]
Ddalvik_system_DexFile.cc68 NullableScopedUtfChars(JNIEnv* env, jstring s) : mEnv(env), mString(s) { in NullableScopedUtfChars() argument
69 mUtfChars = (s != NULL) ? env->GetStringUTFChars(s, NULL) : NULL; in NullableScopedUtfChars()
101 static jlong DexFile_openDexFileNative(JNIEnv* env, jclass, jstring javaSourceName, jstring javaOut… in DexFile_openDexFileNative() argument
102 ScopedUtfChars sourceName(env, javaSourceName); in DexFile_openDexFileNative()
106 NullableScopedUtfChars outputName(env, javaOutputName); in DexFile_openDexFileNative()
107 if (env->ExceptionCheck()) { in DexFile_openDexFileNative()
126 ScopedObjectAccess soa(env); in DexFile_openDexFileNative()
140 static std::vector<const DexFile*>* toDexFiles(jlong dex_file_address, JNIEnv* env) { in toDexFiles() argument
144 ScopedObjectAccess soa(env); in toDexFiles()
150 static void DexFile_closeDexFile(JNIEnv* env, jclass, jlong cookie) { in DexFile_closeDexFile() argument
[all …]
Djava_lang_reflect_Field.cc123 static jobject Field_get(JNIEnv* env, jobject javaField, jobject javaObj, jboolean accessible) { in Field_get() argument
124 ScopedFastNativeObjectAccess soa(env); in Field_get()
148 ALWAYS_INLINE inline static JValue GetPrimitiveField(JNIEnv* env, jobject javaField, in GetPrimitiveField() argument
150 ScopedFastNativeObjectAccess soa(env); in GetPrimitiveField()
190 static jboolean Field_getBoolean(JNIEnv* env, jobject javaField, jobject javaObj, in Field_getBoolean() argument
192 return GetPrimitiveField<Primitive::kPrimBoolean>(env, javaField, javaObj, accessible).GetZ(); in Field_getBoolean()
195 static jbyte Field_getByte(JNIEnv* env, jobject javaField, jobject javaObj, jboolean accessible) { in Field_getByte() argument
196 return GetPrimitiveField<Primitive::kPrimByte>(env, javaField, javaObj, accessible).GetB(); in Field_getByte()
199 static jchar Field_getChar(JNIEnv* env, jobject javaField, jobject javaObj, jboolean accessible) { in Field_getChar() argument
200 return GetPrimitiveField<Primitive::kPrimChar>(env, javaField, javaObj, accessible).GetC(); in Field_getChar()
[all …]
Ddalvik_system_VMRuntime.cc59 static jobject VMRuntime_newNonMovableArray(JNIEnv* env, jobject, jclass javaElementClass, in VMRuntime_newNonMovableArray() argument
61 ScopedFastNativeObjectAccess soa(env); in VMRuntime_newNonMovableArray()
83 static jobject VMRuntime_newUnpaddedArray(JNIEnv* env, jobject, jclass javaElementClass, in VMRuntime_newUnpaddedArray() argument
85 ScopedFastNativeObjectAccess soa(env); in VMRuntime_newUnpaddedArray()
108 static jlong VMRuntime_addressOf(JNIEnv* env, jobject, jobject javaArray) { in VMRuntime_addressOf() argument
112 ScopedFastNativeObjectAccess soa(env); in VMRuntime_addressOf()
133 static jobjectArray VMRuntime_properties(JNIEnv* env, jobject) { in VMRuntime_properties() argument
134 return toStringArray(env, Runtime::Current()->GetProperties()); in VMRuntime_properties()
146 static jstring VMRuntime_bootClassPath(JNIEnv* env, jobject) { in VMRuntime_bootClassPath() argument
147 return env->NewStringUTF(DefaultToDot(Runtime::Current()->GetBootClassPathString())); in VMRuntime_bootClassPath()
[all …]
Djava_lang_System.cc45 static void System_arraycopy(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, jobject javaDst, in System_arraycopy() argument
49 ScopedFastNativeObjectAccess soa(env); in System_arraycopy()
157 inline void System_arraycopyTUnchecked(JNIEnv* env, jobject javaSrc, jint srcPos, in System_arraycopyTUnchecked() argument
159 ScopedFastNativeObjectAccess soa(env); in System_arraycopyTUnchecked()
171 static void System_arraycopyCharUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, in System_arraycopyCharUnchecked() argument
173 System_arraycopyTUnchecked<mirror::CharArray, Primitive::kPrimChar>(env, javaSrc, srcPos, in System_arraycopyCharUnchecked()
177 static void System_arraycopyByteUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, in System_arraycopyByteUnchecked() argument
179 System_arraycopyTUnchecked<mirror::ByteArray, Primitive::kPrimByte>(env, javaSrc, srcPos, in System_arraycopyByteUnchecked()
183 static void System_arraycopyShortUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, in System_arraycopyShortUnchecked() argument
185 System_arraycopyTUnchecked<mirror::ShortArray, Primitive::kPrimShort>(env, javaSrc, srcPos, in System_arraycopyShortUnchecked()
[all …]
Djava_lang_String.cc27 static jint String_compareTo(JNIEnv* env, jobject javaThis, jobject javaRhs) { in String_compareTo() argument
28 ScopedFastNativeObjectAccess soa(env); in String_compareTo()
37 static jint String_fastIndexOf(JNIEnv* env, jobject java_this, jint ch, jint start) { in String_fastIndexOf() argument
38 ScopedFastNativeObjectAccess soa(env); in String_fastIndexOf()
46 static jstring String_intern(JNIEnv* env, jobject javaThis) { in String_intern() argument
47 ScopedFastNativeObjectAccess soa(env); in String_intern()
59 void register_java_lang_String(JNIEnv* env) { in register_java_lang_String() argument
Dorg_apache_harmony_dalvik_ddmc_DdmVmInternal.cc33 static jbyteArray DdmVmInternal_getRecentAllocations(JNIEnv* env, jclass) { in DdmVmInternal_getRecentAllocations() argument
34 ScopedFastNativeObjectAccess soa(env); in DdmVmInternal_getRecentAllocations()
46 static jobjectArray DdmVmInternal_getStackTraceById(JNIEnv* env, jclass, jint thin_lock_id) { in DdmVmInternal_getStackTraceById() argument
51 ScopedObjectAccess soa(env); in DdmVmInternal_getStackTraceById()
72 ScopedObjectAccess soa(env); in DdmVmInternal_getStackTraceById()
133 static jbyteArray DdmVmInternal_getThreadStats(JNIEnv* env, jclass) { in DdmVmInternal_getThreadStats() argument
135 Thread* self = static_cast<JNIEnvExt*>(env)->self; in DdmVmInternal_getThreadStats()
150 jbyteArray result = env->NewByteArray(bytes.size()); in DdmVmInternal_getThreadStats()
152 env->SetByteArrayRegion(result, 0, bytes.size(), reinterpret_cast<const jbyte*>(&bytes[0])); in DdmVmInternal_getThreadStats()
157 static jint DdmVmInternal_heapInfoNotify(JNIEnv* env, jclass, jint when) { in DdmVmInternal_heapInfoNotify() argument
[all …]
Djava_lang_Throwable.cc23 static jobject Throwable_nativeFillInStackTrace(JNIEnv* env, jclass) { in Throwable_nativeFillInStackTrace() argument
24 ScopedFastNativeObjectAccess soa(env); in Throwable_nativeFillInStackTrace()
28 static jobjectArray Throwable_nativeGetStackTrace(JNIEnv* env, jclass, jobject javaStackState) { in Throwable_nativeGetStackTrace() argument
32 ScopedFastNativeObjectAccess soa(env); in Throwable_nativeGetStackTrace()
41 void register_java_lang_Throwable(JNIEnv* env) { in register_java_lang_Throwable() argument
Ddalvik_system_VMStack.cc63 static jint VMStack_fillStackTraceElements(JNIEnv* env, jclass, jobject javaThread, in VMStack_fillStackTraceElements() argument
65 ScopedFastNativeObjectAccess soa(env); in VMStack_fillStackTraceElements()
76 static jobject VMStack_getCallingClassLoader(JNIEnv* env, jclass) { in VMStack_getCallingClassLoader() argument
77 ScopedFastNativeObjectAccess soa(env); in VMStack_getCallingClassLoader()
87 static jobject VMStack_getClosestUserClassLoader(JNIEnv* env, jclass, jobject javaBootstrap, in VMStack_getClosestUserClassLoader() argument
108 ScopedFastNativeObjectAccess soa(env); in VMStack_getClosestUserClassLoader()
117 static jclass VMStack_getStackClass2(JNIEnv* env, jclass) { in VMStack_getStackClass2() argument
118 ScopedFastNativeObjectAccess soa(env); in VMStack_getStackClass2()
128 static jobjectArray VMStack_getThreadStackTrace(JNIEnv* env, jclass, jobject javaThread) { in VMStack_getThreadStackTrace() argument
129 ScopedFastNativeObjectAccess soa(env); in VMStack_getThreadStackTrace()
[all …]
Djava_lang_Runtime.cc46 static jstring Runtime_nativeLoad(JNIEnv* env, jclass, jstring javaFilename, jobject javaLoader, js… in Runtime_nativeLoad() argument
47 ScopedUtfChars filename(env, javaFilename); in Runtime_nativeLoad()
53 ScopedUtfChars ldLibraryPath(env, javaLdLibraryPath); in Runtime_nativeLoad()
69 ScopedObjectAccess soa(env); in Runtime_nativeLoad()
81 env->ExceptionClear(); in Runtime_nativeLoad()
82 return env->NewStringUTF(detail.c_str()); in Runtime_nativeLoad()
106 void register_java_lang_Runtime(JNIEnv* env) { in register_java_lang_Runtime() argument
Djava_lang_DexCache.cc25 static jobject DexCache_getDexNative(JNIEnv* env, jobject javaDexCache) { in DexCache_getDexNative() argument
26 ScopedFastNativeObjectAccess soa(env); in DexCache_getDexNative()
35 jobject byte_buffer = env->NewDirectByteBuffer(address, dex_file->Size()); in DexCache_getDexNative()
43 return env->CallStaticObjectMethodA(WellKnownClasses::com_android_dex_Dex, in DexCache_getDexNative()
52 void register_java_lang_DexCache(JNIEnv* env) { in register_java_lang_DexCache() argument
/art/dalvikvm/
Ddalvikvm.cc32 static bool IsMethodPublic(JNIEnv* env, jclass c, jmethodID method_id) { in IsMethodPublic() argument
33 ScopedLocalRef<jobject> reflected(env, env->ToReflectedMethod(c, method_id, JNI_FALSE)); in IsMethodPublic()
40 jclass method_class = env->FindClass("java/lang/reflect/Method"); in IsMethodPublic()
45 jmethodID mid = env->GetMethodID(method_class, "getModifiers", "()I"); in IsMethodPublic()
50 int modifiers = env->CallIntMethod(reflected.get(), mid); in IsMethodPublic()
58 static int InvokeMain(JNIEnv* env, char** argv) { in InvokeMain() argument
62 ScopedLocalRef<jobjectArray> args(env, toStringArray(env, argv + 1)); in InvokeMain()
64 env->ExceptionDescribe(); in InvokeMain()
74 ScopedLocalRef<jclass> klass(env, env->FindClass(class_name.c_str())); in InvokeMain()
77 env->ExceptionDescribe(); in InvokeMain()
[all …]
/art/test/115-native-bridge/
Dnativebridge.cc41 JNIEnv* env = nullptr; in trampoline_JNI_OnLoad() local
45 vm->GetEnv(reinterpret_cast<void **>(&env), JNI_VERSION_1_6); in trampoline_JNI_OnLoad()
46 if (env == nullptr) { in trampoline_JNI_OnLoad()
50 jclass klass = env->FindClass("Main"); in trampoline_JNI_OnLoad()
53 count1 = gNativeBridgeArtCallbacks->getNativeMethodCount(env, klass); in trampoline_JNI_OnLoad()
58 count2 = gNativeBridgeArtCallbacks->getNativeMethods(env, klass, methods.get(), count1); in trampoline_JNI_OnLoad()
68 mid = env->GetStaticMethodID(klass, methods[i].name, nb_method->signature); in trampoline_JNI_OnLoad()
70 mid = env->GetMethodID(klass, methods[i].name, nb_method->signature); in trampoline_JNI_OnLoad()
73 const char* shorty = gNativeBridgeArtCallbacks->getMethodShorty(env, mid); in trampoline_JNI_OnLoad()
88 static void trampoline_Java_Main_testFindClassOnAttachedNativeThread(JNIEnv* env, in trampoline_Java_Main_testFindClassOnAttachedNativeThread() argument
[all …]
/art/runtime/entrypoints/quick/
Dquick_jni_entrypoints.cc32 JNIEnvExt* env = self->GetJniEnv(); in JniMethodStart() local
33 DCHECK(env != nullptr); in JniMethodStart()
34 uint32_t saved_local_ref_cookie = env->local_ref_cookie; in JniMethodStart()
35 env->local_ref_cookie = env->locals.GetSegmentState(); in JniMethodStart()
65 JNIEnvExt* env = self->GetJniEnv(); in PopLocalReferences() local
66 env->locals.SetSegmentState(env->local_ref_cookie); in PopLocalReferences()
67 env->local_ref_cookie = saved_local_ref_cookie; in PopLocalReferences()
/art/runtime/entrypoints/portable/
Dportable_jni_entrypoints.cc27 JNIEnvExt* env = self->GetJniEnv(); in art_portable_jni_method_start() local
28 uint32_t saved_local_ref_cookie = env->local_ref_cookie; in art_portable_jni_method_start()
29 env->local_ref_cookie = env->locals.GetSegmentState(); in art_portable_jni_method_start()
42 JNIEnvExt* env = self->GetJniEnv(); in PopLocalReferences() local
43 env->locals.SetSegmentState(env->local_ref_cookie); in PopLocalReferences()
44 env->local_ref_cookie = saved_local_ref_cookie; in PopLocalReferences()
/art/runtime/jdwp/
Dobject_registry.cc69 JNIEnv* env = soa.Env(); in InternalAdd() local
74 entry->jni_reference = env->NewWeakGlobalRef(local_reference); in InternalAdd()
80 env->DeleteLocalRef(local_reference); in InternalAdd()
117 JNIEnv* env = self->GetJniEnv(); in Clear() local
121 env->DeleteWeakGlobalRef(entry->jni_reference); in Clear()
123 env->DeleteGlobalRef(entry->jni_reference); in Clear()
174 JNIEnv* env = self->GetJniEnv(); in Demote() local
176 entry.jni_reference = env->NewWeakGlobalRef(entry.jni_reference); in Demote()
178 env->DeleteGlobalRef(global); in Demote()
185 JNIEnv* env = self->GetJniEnv(); in Promote() local
[all …]

123