Home
last modified time | relevance | path

Searched refs:JNIEnvExt (Results 1 – 25 of 31) sorted by relevance

12

/art/runtime/
Djni_env_ext.cc41 const JNINativeInterface* JNIEnvExt::table_override_ = nullptr;
46 static bool CheckLocalsValid(JNIEnvExt* in) NO_THREAD_SAFETY_ANALYSIS { in CheckLocalsValid()
53 jint JNIEnvExt::GetEnvHandler(JavaVMExt* vm, /*out*/void** env, jint version) { in GetEnvHandler()
67 JNIEnvExt* JNIEnvExt::Create(Thread* self_in, JavaVMExt* vm_in, std::string* error_msg) { in Create()
68 std::unique_ptr<JNIEnvExt> ret(new JNIEnvExt(self_in, vm_in, error_msg)); in Create()
75 JNIEnvExt::JNIEnvExt(Thread* self_in, JavaVMExt* vm_in, std::string* error_msg) in JNIEnvExt() function in art::JNIEnvExt
90 void JNIEnvExt::SetFunctionsToRuntimeShutdownFunctions() { in SetFunctionsToRuntimeShutdownFunctions()
95 JNIEnvExt::~JNIEnvExt() { in ~JNIEnvExt()
98 jobject JNIEnvExt::NewLocalRef(mirror::Object* obj) { in NewLocalRef()
105 void JNIEnvExt::DeleteLocalRef(jobject obj) { in DeleteLocalRef()
[all …]
Djni_env_ext.h40 struct JNIEnvExt : public JNIEnv { struct
43 static JNIEnvExt* Create(Thread* self, JavaVMExt* vm, std::string* error_msg);
45 ~JNIEnvExt();
130 JNIEnvExt(Thread* self, JavaVMExt* vm, std::string* error_msg)
143 explicit ScopedJniEnvLocalRefState(JNIEnvExt* env) : env_(env) { in ScopedJniEnvLocalRefState()
154 JNIEnvExt* const env_;
Dscoped_thread_state_change.h30 struct JNIEnvExt;
75 JNIEnvExt* Env() const { in Env()
126 JNIEnvExt* const env_;
Djni_env_ext-inl.h27 inline T JNIEnvExt::AddLocalReference(ObjPtr<mirror::Object> obj) { in AddLocalReference()
Dnon_debuggable_classes.cc32 JNIEnvExt* env = self->GetJniEnv(); in AddNonDebuggableClass()
Dscoped_thread_state_change-inl.h98 : self_(ThreadForEnv(env)), env_(down_cast<JNIEnvExt*>(env)), vm_(env_->vm) {} in ScopedObjectAccessAlreadyRunnable()
102 env_(down_cast<JNIEnvExt*>(self->GetJniEnv())), in ScopedObjectAccessAlreadyRunnable()
Dthread-inl.h35 JNIEnvExt* full_env(down_cast<JNIEnvExt*>(env)); in ThreadForEnv()
Djni_internal_test.cc870 return reinterpret_cast<JNIEnvExt*>(env)->locals.Capacity(); in GetLocalsCapacity()
1057 down_cast<JNIEnvExt*>(env_)->SetCheckJniEnabled(false); \
1080 down_cast<JNIEnvExt*>(env_)->SetCheckJniEnabled(true); \
2354 EXPECT_EQ(OFFSETOF_MEMBER(JNIEnvExt, local_ref_cookie), in TEST_F()
2355 JNIEnvExt::LocalRefCookieOffset(sizeof(void*)).Uint32Value()); in TEST_F()
2357 EXPECT_EQ(OFFSETOF_MEMBER(JNIEnvExt, self), JNIEnvExt::SelfOffset(sizeof(void*)).Uint32Value()); in TEST_F()
2362 OFFSETOF_MEMBER(JNIEnvExt, locals) + in TEST_F()
2364 uint32_t segment_state_computed = JNIEnvExt::SegmentStateOffset(sizeof(void*)).Uint32Value(); in TEST_F()
2389 JNIEnvExt::SetTableOverride(&env_override); in TEST_F()
2396 JNIEnvExt::SetTableOverride(nullptr); in TEST_F()
Dthread.h87 struct JNIEnvExt;
481 JNIEnvExt* GetJniEnv() const { in GetJniEnv()
1284 bool Init(ThreadList*, JavaVMExt*, JNIEnvExt* jni_env_ext = nullptr)
1530 JNIEnvExt* jni_env; in PACKED()
1534 JNIEnvExt* tmp_jni_env; in PACKED()
Djni_internal.cc386 return reinterpret_cast<JNIEnvExt*>(env)->vm; in JavaVmExtFromEnv()
548 return static_cast<JNIEnvExt*>(env)->self->IsExceptionPending() ? JNI_TRUE : JNI_FALSE; in ExceptionCheck()
602 down_cast<JNIEnvExt*>(env)->PushFrame(capacity); in PushLocalFrame()
626 JavaVMExt* vm = down_cast<JNIEnvExt*>(env)->vm; in DeleteGlobalRef()
627 Thread* self = down_cast<JNIEnvExt*>(env)->self; in DeleteGlobalRef()
638 JavaVMExt* vm = down_cast<JNIEnvExt*>(env)->vm; in DeleteWeakGlobalRef()
639 Thread* self = down_cast<JNIEnvExt*>(env)->self; in DeleteWeakGlobalRef()
661 auto* ext_env = down_cast<JNIEnvExt*>(env); in DeleteLocalRef()
2313 bool warn_on_going_to_parent = down_cast<JNIEnvExt*>(env)->vm->IsCheckJniEnabled(); in RegisterNatives()
2456 return static_cast<JNIEnvExt*>(env)->self->IsExceptionPending() ? nullptr : result; in NewDirectByteBuffer()
Dthread.cc609 Thread* self = static_cast<JNIEnvExt*>(env)->self; in CreateNativeThread()
659 std::unique_ptr<JNIEnvExt> child_jni_env_ext( in CreateNativeThread()
660 JNIEnvExt::Create(child_thread, Runtime::Current()->GetJavaVM(), &error_msg)); in CreateNativeThread()
709 bool Thread::Init(ThreadList* thread_list, JavaVMExt* java_vm, JNIEnvExt* jni_env_ext) { in Init()
747 tlsPtr_.jni_env = JNIEnvExt::Create(this, java_vm, &error_msg); in Init()
Dcheck_jni.cc1192 JNIEnvExt* threadEnv = self->GetJniEnv(); in CheckThread()
1198 Thread* envThread = reinterpret_cast<JNIEnvExt*>(env)->self; in CheckThread()
2482 down_cast<JNIEnvExt*>(env)->RecordMonitorEnter(obj); in PRIMITIVE_ARRAY_FUNCTIONS()
2499 down_cast<JNIEnvExt*>(env)->CheckMonitorRelease(obj); in MonitorExit()
2593 return reinterpret_cast<JNIEnvExt*>(env)->vm; in GetJavaVMExt()
2597 return reinterpret_cast<JNIEnvExt*>(env)->unchecked_functions; in baseEnv()
Dcommon_throws.cc743 JNIEnvExt* env = self->GetJniEnv(); in ThrowStackOverflowError()
/art/runtime/openjdkjvmti/
Dti_jni.cc52 art::JNIEnvExt::SetTableOverride(function_table); in SetJNIFunctionTable()
75 current_table = art::JNIEnvExt::GetFunctionTable(check_jni); in GetJNIFunctionTable()
Devents.cc209 art::JNIEnvExt* jni_env = self->GetJniEnv(); in ObjectAllocated()
304 static Type AddLocalRef(art::JNIEnvExt* e, art::mirror::Object* obj) in AddLocalRef()
314 void RunEventCallback(art::Thread* self, art::JNIEnvExt* jnienv, Args... args) in RunEventCallback()
338 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MethodEntered()
358 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MethodExited()
383 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MethodExited()
408 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MethodUnwind()
439 art::JNIEnvExt* jnienv = self->GetJniEnv(); in DexPcMoved()
460 art::JNIEnvExt* jnienv = self->GetJniEnv(); in FieldRead()
484 art::JNIEnvExt* jnienv = self->GetJniEnv(); in FieldWritten()
[all …]
Djvmti_weak_table-inl.h332 art::JNIEnvExt* jni_env = self->GetJniEnv();
Dti_method.cc58 art::JNIEnvExt* jnienv = thread->GetJniEnv(); in RegisterNativeMethod()
/art/compiler/trampolines/
Dtrampoline_compiler.cc76 ___ Ldr(temp_reg, MemOperand(r0, JNIEnvExt::SelfOffset(4).Int32Value())); in CreateTrampoline()
113 Offset(JNIEnvExt::SelfOffset(8).Int32Value())); in CreateTrampoline()
148 __ LoadFromOffset(kLoadWord, T9, A0, JNIEnvExt::SelfOffset(4).Int32Value()); in CreateTrampoline()
180 __ LoadFromOffset(kLoadDoubleword, T9, A0, JNIEnvExt::SelfOffset(8).Int32Value()); in CreateTrampoline()
/art/runtime/entrypoints/quick/
Dquick_jni_entrypoints.cc51 JNIEnvExt* env = self->GetJniEnv(); in JniMethodFastStart()
66 JNIEnvExt* env = self->GetJniEnv(); in JniMethodStart()
120 JNIEnvExt* env = self->GetJniEnv(); in PopLocalReferences()
Dquick_trampoline_entrypoints.cc915 JNIEnvExt* env = self->GetJniEnv(); in artQuickProxyInvokeHandler()
1071 JNIEnvExt* env = self->GetJniEnv(); in artQuickResolutionTrampoline()
2571 JNIEnvExt* env = self->GetJniEnv(); in artInvokePolymorphic()
/art/test/136-daemon-jni-shutdown/
Ddaemon_jni_shutdown.cc61 JavaVM* vm = down_cast<JNIEnvExt*>(env)->vm; in Java_Main_destroyJavaVMAndExit()
/art/runtime/native/
Dorg_apache_harmony_dalvik_ddmc_DdmVmInternal.cc137 Thread* self = static_cast<JNIEnvExt*>(env)->self; in DdmVmInternal_getThreadStats()
Djava_lang_Thread.cc40 return static_cast<JNIEnvExt*>(env)->self->Interrupted() ? JNI_TRUE : JNI_FALSE; in Thread_interrupted()
/art/runtime/openjdkjvm/
DOpenjdkJvm.cc389 return static_cast<art::JNIEnvExt*>(env)->self->Interrupted() ? JNI_TRUE : JNI_FALSE; in JVM_IsInterrupted()
/art/compiler/jni/quick/
Djni_compiler.cc226 const Offset functions(OFFSETOF_MEMBER(JNIEnvExt, functions)); in ArtJniCompileMethodInternal()

12