Home
last modified time | relevance | path

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

12

/art/runtime/jni/
Djni_env_ext.cc46 const JNINativeInterface* JNIEnvExt::table_override_ = nullptr;
48 jint JNIEnvExt::GetEnvHandler(JavaVMExt* vm, /*out*/void** env, jint version) { in GetEnvHandler()
62 JNIEnvExt* JNIEnvExt::Create(Thread* self_in, JavaVMExt* vm_in, std::string* error_msg) { in Create()
63 std::unique_ptr<JNIEnvExt> ret(new JNIEnvExt(self_in, vm_in)); in Create()
70 JNIEnvExt::JNIEnvExt(Thread* self_in, JavaVMExt* vm_in) in JNIEnvExt() function in art::JNIEnvExt
85 bool JNIEnvExt::Initialize(std::string* error_msg) { in Initialize()
89 void JNIEnvExt::SetFunctionsToRuntimeShutdownFunctions() { in SetFunctionsToRuntimeShutdownFunctions()
93 JNIEnvExt::~JNIEnvExt() { in ~JNIEnvExt()
96 jobject JNIEnvExt::NewLocalRef(mirror::Object* obj) { in NewLocalRef()
110 void JNIEnvExt::DeleteLocalRef(jobject obj) { in DeleteLocalRef()
[all …]
Djni_env_ext.h40 class JNIEnvExt : public JNIEnv {
44 static JNIEnvExt* Create(Thread* self, JavaVMExt* vm, std::string* error_msg);
50 ~JNIEnvExt();
159 JNIEnvExt(Thread* self, JavaVMExt* vm)
220 explicit ScopedJniEnvLocalRefState(JNIEnvExt* env) : in ScopedJniEnvLocalRefState()
232 JNIEnvExt* const env_;
Djni_env_ext-inl.h28 inline T JNIEnvExt::AddLocalReference(ObjPtr<mirror::Object> obj) { in AddLocalReference()
53 inline void JNIEnvExt::UpdateLocal(IndirectRef iref, ObjPtr<mirror::Object> obj) { in UpdateLocal()
Djni_internal_test.cc937 return reinterpret_cast<JNIEnvExt*>(env)->GetLocalsCapacity(); in GetLocalsCapacity()
1124 down_cast<JNIEnvExt*>(env_)->SetCheckJniEnabled(false); \
1147 down_cast<JNIEnvExt*>(env_)->SetCheckJniEnabled(true); \
1572 const JNINativeInterface* base_env = down_cast<JNIEnvExt*>(env_)->GetUncheckedFunctions(); in TEST_F()
2604 EXPECT_EQ(OFFSETOF_MEMBER(JNIEnvExt, local_ref_cookie_), in TEST_F()
2605 JNIEnvExt::LocalRefCookieOffset(sizeof(void*)).Uint32Value()); in TEST_F()
2607 EXPECT_EQ(OFFSETOF_MEMBER(JNIEnvExt, self_), JNIEnvExt::SelfOffset(sizeof(void*)).Uint32Value()); in TEST_F()
2612 OFFSETOF_MEMBER(JNIEnvExt, locals_) + in TEST_F()
2614 uint32_t segment_state_computed = JNIEnvExt::SegmentStateOffset(sizeof(void*)).Uint32Value(); in TEST_F()
2639 JNIEnvExt::SetTableOverride(&env_override); in TEST_F()
[all …]
Djni_internal.cc616 return reinterpret_cast<JNIEnvExt*>(env)->GetVm(); in JavaVmExtFromEnv()
780 return static_cast<JNIEnvExt*>(env)->self_->IsExceptionPending() ? JNI_TRUE : JNI_FALSE; in ExceptionCheck()
834 down_cast<JNIEnvExt*>(env)->PushFrame(capacity); in PushLocalFrame()
858 JavaVMExt* vm = down_cast<JNIEnvExt*>(env)->GetVm(); in DeleteGlobalRef()
859 Thread* self = down_cast<JNIEnvExt*>(env)->self_; in DeleteGlobalRef()
870 JavaVMExt* vm = down_cast<JNIEnvExt*>(env)->GetVm(); in DeleteWeakGlobalRef()
871 Thread* self = down_cast<JNIEnvExt*>(env)->self_; in DeleteWeakGlobalRef()
893 auto* ext_env = down_cast<JNIEnvExt*>(env); in DeleteLocalRef()
2632 bool warn_on_going_to_parent = down_cast<JNIEnvExt*>(env)->GetVm()->IsCheckJniEnabled(); in RegisterNatives()
/art/test/2033-shutdown-mechanics/
Dnative_shutdown.cc40 JNIEnvExt* const extEnv = down_cast<JNIEnvExt*>(env); in Java_Main_monitorShutdown()
/art/openjdkjvmti/
Dti_jni.cc52 art::JNIEnvExt::SetTableOverride(function_table); in SetJNIFunctionTable()
75 current_table = art::JNIEnvExt::GetFunctionTable(check_jni); in GetJNIFunctionTable()
Devents.cc265 static Type AddLocalRef(art::JNIEnvExt* e, art::ObjPtr<art::mirror::Object> obj) in AddLocalRef()
273 art::JNIEnvExt* jnienv, in RunEventCallback()
332 art::JNIEnvExt* jni_env = self->GetJniEnv(); in ObjectAllocated()
370 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MonitorContendedLocking()
384 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MonitorContendedLocked()
398 art::JNIEnvExt* jnienv = self->GetJniEnv(); in ObjectWaitStart()
425 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MonitorWaitFinished()
448 art::JNIEnvExt* jnienv = self->GetJniEnv(); in ThreadParkStart()
505 art::JNIEnvExt* jnienv = self->GetJniEnv(); in ThreadParkFinished()
628 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MethodEntered()
[all …]
Dti_object.cc89 art::JNIEnvExt* jni = self->GetJniEnv(); in GetObjectMonitorUsage()
Djvmti_weak_table-inl.h335 art::JNIEnvExt* jni_env = self->GetJniEnv();
/art/runtime/
Dscoped_thread_state_change.h30 class JNIEnvExt; variable
77 JNIEnvExt* Env() const { in Env()
128 JNIEnvExt* const env_;
Dnon_debuggable_classes.cc33 JNIEnvExt* env = self->GetJniEnv(); in AddNonDebuggableClass()
Dscoped_thread_state_change-inl.h97 : self_(Thread::ForEnv(env)), env_(down_cast<JNIEnvExt*>(env)), vm_(env_->GetVm()) {} in ScopedObjectAccessAlreadyRunnable()
101 env_(down_cast<JNIEnvExt*>(self->GetJniEnv())), in ScopedObjectAccessAlreadyRunnable()
Dthread-inl.h39 JNIEnvExt* full_env(down_cast<JNIEnvExt*>(env)); in ForEnv()
Dthread.h99 class JNIEnvExt; variable
654 JNIEnvExt* GetJniEnv() const { in GetJniEnv()
1583 bool Init(ThreadList*, JavaVMExt*, JNIEnvExt* jni_env_ext = nullptr)
1979 JNIEnvExt* jni_env; in PACKED()
1983 JNIEnvExt* tmp_jni_env; in PACKED()
/art/test/136-daemon-jni-shutdown/
Ddaemon_jni_shutdown.cc61 JavaVM* vm = down_cast<JNIEnvExt*>(env)->GetVm(); in Java_Main_destroyJavaVMAndExit()
/art/compiler/trampolines/
Dtrampoline_compiler.cc69 ___ Ldr(temp_reg, MemOperand(r0, JNIEnvExt::SelfOffset(4).Int32Value())); in CreateTrampoline()
106 Offset(JNIEnvExt::SelfOffset(8).Int32Value())); in CreateTrampoline()
/art/compiler/jni/quick/
Djni_compiler.cc743 const MemberOffset jni_env_cookie_offset = JNIEnvExt::LocalRefCookieOffset(kRawPointerSize); in PushLocalReferenceFrame()
744 const MemberOffset jni_env_segment_state_offset = JNIEnvExt::SegmentStateOffset(kRawPointerSize); in PushLocalReferenceFrame()
760 const MemberOffset jni_env_cookie_offset = JNIEnvExt::LocalRefCookieOffset(kRawPointerSize); in PopLocalReferenceFrame()
761 const MemberOffset jni_env_segment_state_offset = JNIEnvExt::SegmentStateOffset(kRawPointerSize); in PopLocalReferenceFrame()
/art/runtime/native/
Dorg_apache_harmony_dalvik_ddmc_DdmVmInternal.cc45 return static_cast<JNIEnvExt*>(env)->GetSelf(); in GetSelf()
Djava_lang_Thread.cc40 return static_cast<JNIEnvExt*>(env)->GetSelf()->Interrupted() ? JNI_TRUE : JNI_FALSE; in Thread_interrupted()
/art/runtime/entrypoints/jni/
Djni_entrypoints.cc112 JavaVMExt* vm = down_cast<JNIEnvExt*>(self->GetJniEnv())->GetVm(); in artFindNativeMethodRunnable()
/art/runtime/entrypoints/quick/
Dquick_jni_entrypoints.cc80 JNIEnvExt* env = self->GetJniEnv(); in PopLocalReferences()
Dquick_trampoline_entrypoints.cc821 JNIEnvExt* env = self->GetJniEnv(); in artQuickProxyInvokeHandler()
1126 JNIEnvExt* env = self->GetJniEnv(); in artQuickResolutionTrampoline()
2036 JNIEnvExt* env = self->GetJniEnv(); in artQuickGenericJniTrampoline()
2329 JNIEnvExt* env = self->GetJniEnv(); in artInvokePolymorphic()
2455 JNIEnvExt* env = self->GetJniEnv(); in artInvokeCustom()
/art/openjdkjvm/
DOpenjdkJvm.cc419 return static_cast<art::JNIEnvExt*>(env)->GetSelf()->Interrupted() ? JNI_TRUE : JNI_FALSE; in JVM_IsInterrupted()
/art/runtime/base/
Dmutex.cc84 JNIEnvExt* const env = self->GetJniEnv(); in SleepIfRuntimeDeleted()
134 JNIEnvExt* const env = self == nullptr ? nullptr : self->GetJniEnv(); in WaitBrieflyFor()

12