Home
last modified time | relevance | path

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

/art/runtime/
Djni_env_ext.cc41 static bool CheckLocalsValid(JNIEnvExt* in) NO_THREAD_SAFETY_ANALYSIS { in CheckLocalsValid()
48 JNIEnvExt* JNIEnvExt::Create(Thread* self_in, JavaVMExt* vm_in) { in Create()
49 std::unique_ptr<JNIEnvExt> ret(new JNIEnvExt(self_in, vm_in)); in Create()
56 JNIEnvExt::JNIEnvExt(Thread* self_in, JavaVMExt* vm_in) in JNIEnvExt() function in art::JNIEnvExt
71 void JNIEnvExt::SetFunctionsToRuntimeShutdownFunctions() { in SetFunctionsToRuntimeShutdownFunctions()
76 JNIEnvExt::~JNIEnvExt() { in ~JNIEnvExt()
79 jobject JNIEnvExt::NewLocalRef(mirror::Object* obj) { in NewLocalRef()
86 void JNIEnvExt::DeleteLocalRef(jobject obj) { in DeleteLocalRef()
92 void JNIEnvExt::SetCheckJniEnabled(bool enabled) { in SetCheckJniEnabled()
97 void JNIEnvExt::DumpReferenceTables(std::ostream& os) { in DumpReferenceTables()
[all …]
Djni_env_ext.h36 struct JNIEnvExt : public JNIEnv { struct
37 static JNIEnvExt* Create(Thread* self, JavaVMExt* vm);
39 ~JNIEnvExt();
107 JNIEnvExt(Thread* self, JavaVMExt* vm); argument
119 explicit ScopedJniEnvLocalRefState(JNIEnvExt* env) : env_(env) { in ScopedJniEnvLocalRefState()
130 JNIEnvExt* const env_;
Dscoped_thread_state_change.h111 JNIEnvExt* Env() const { in Env()
180 : self_(ThreadForEnv(env)), env_(down_cast<JNIEnvExt*>(env)), vm_(env_->vm) { in ScopedObjectAccessAlreadyRunnable()
185 : self_(self), env_(down_cast<JNIEnvExt*>(self->GetJniEnv())), in ScopedObjectAccessAlreadyRunnable()
201 JNIEnvExt* const env_;
Djni_env_ext-inl.h27 inline T JNIEnvExt::AddLocalReference(mirror::Object* obj) { in AddLocalReference()
Dthread-inl.h38 JNIEnvExt* full_env(down_cast<JNIEnvExt*>(env)); in ThreadForEnv()
Dthread.h85 struct JNIEnvExt;
441 JNIEnvExt* GetJniEnv() const { in GetJniEnv()
1165 bool Init(ThreadList*, JavaVMExt*, JNIEnvExt* jni_env_ext = nullptr)
1383 JNIEnvExt* jni_env; in PACKED()
1387 JNIEnvExt* tmp_jni_env; in PACKED()
Djni_internal_test.cc1032 down_cast<JNIEnvExt*>(env_)->SetCheckJniEnabled(false); \
1055 down_cast<JNIEnvExt*>(env_)->SetCheckJniEnabled(true); \
2288 EXPECT_EQ(OFFSETOF_MEMBER(JNIEnvExt, local_ref_cookie), in TEST_F()
2289 JNIEnvExt::LocalRefCookieOffset(sizeof(void*)).Uint32Value()); in TEST_F()
2291 EXPECT_EQ(OFFSETOF_MEMBER(JNIEnvExt, self), JNIEnvExt::SelfOffset(sizeof(void*)).Uint32Value()); in TEST_F()
2296 OFFSETOF_MEMBER(JNIEnvExt, locals) + in TEST_F()
2298 uint32_t segment_state_computed = JNIEnvExt::SegmentStateOffset(sizeof(void*)).Uint32Value(); in TEST_F()
Djni_internal.cc288 return reinterpret_cast<JNIEnvExt*>(env)->vm; in JavaVmExtFromEnv()
447 return static_cast<JNIEnvExt*>(env)->self->IsExceptionPending() ? JNI_TRUE : JNI_FALSE; in ExceptionCheck()
501 down_cast<JNIEnvExt*>(env)->PushFrame(capacity); in PushLocalFrame()
525 JavaVMExt* vm = down_cast<JNIEnvExt*>(env)->vm; in DeleteGlobalRef()
526 Thread* self = down_cast<JNIEnvExt*>(env)->self; in DeleteGlobalRef()
537 JavaVMExt* vm = down_cast<JNIEnvExt*>(env)->vm; in DeleteWeakGlobalRef()
538 Thread* self = down_cast<JNIEnvExt*>(env)->self; in DeleteWeakGlobalRef()
560 auto* ext_env = down_cast<JNIEnvExt*>(env); in DeleteLocalRef()
2162 bool warn_on_going_to_parent = down_cast<JNIEnvExt*>(env)->vm->IsCheckJniEnabled(); in RegisterNativeMethods()
2292 return static_cast<JNIEnvExt*>(env)->self->IsExceptionPending() ? nullptr : result; in NewDirectByteBuffer()
Dthread.cc586 Thread* self = static_cast<JNIEnvExt*>(env)->self; in CreateNativeThread()
635 std::unique_ptr<JNIEnvExt> child_jni_env_ext( in CreateNativeThread()
636 JNIEnvExt::Create(child_thread, Runtime::Current()->GetJavaVM())); in CreateNativeThread()
685 bool Thread::Init(ThreadList* thread_list, JavaVMExt* java_vm, JNIEnvExt* jni_env_ext) { in Init()
722 tlsPtr_.jni_env = JNIEnvExt::Create(this, java_vm); in Init()
Dcommon_throws.cc567 JNIEnvExt* env = self->GetJniEnv(); in ThrowStackOverflowError()
Dcheck_jni.cc1180 JNIEnvExt* threadEnv = self->GetJniEnv(); in CheckThread()
2467 down_cast<JNIEnvExt*>(env)->RecordMonitorEnter(obj); in PRIMITIVE_ARRAY_FUNCTIONS()
2484 down_cast<JNIEnvExt*>(env)->CheckMonitorRelease(obj); in MonitorExit()
2578 return reinterpret_cast<JNIEnvExt*>(env)->vm; in GetJavaVMExt()
2582 return reinterpret_cast<JNIEnvExt*>(env)->unchecked_functions; in baseEnv()
Dthread_list.cc716 JNIEnvExt* env = self->GetJniEnv(); in ThreadSuspendByPeerWarning()
Druntime.cc1333 JNIEnvExt* env = self->GetJniEnv(); in InitThreadGroups()
/art/compiler/trampolines/
Dtrampoline_compiler.cc61 __ LoadFromOffset(kLoadWord, IP, R0, JNIEnvExt::SelfOffset(4).Int32Value()); in CreateTrampoline()
95 Offset(JNIEnvExt::SelfOffset(8).Int32Value())); in CreateTrampoline()
130 __ LoadFromOffset(kLoadWord, T9, A0, JNIEnvExt::SelfOffset(4).Int32Value()); in CreateTrampoline()
162 __ LoadFromOffset(kLoadDoubleword, T9, A0, JNIEnvExt::SelfOffset(8).Int32Value()); in CreateTrampoline()
/art/test/136-daemon-jni-shutdown/
Ddaemon_jni_shutdown.cc47 JavaVM* vm = down_cast<JNIEnvExt*>(env)->vm; in Java_Main_destroyJavaVMAndExit()
/art/runtime/entrypoints/quick/
Dquick_jni_entrypoints.cc34 JNIEnvExt* env = self->GetJniEnv(); in JniMethodStart()
67 JNIEnvExt* env = self->GetJniEnv(); in PopLocalReferences()
Dquick_trampoline_entrypoints.cc851 JNIEnvExt* env = self->GetJniEnv(); in artQuickProxyInvokeHandler()
933 JNIEnvExt* env = self->GetJniEnv(); in artQuickResolutionTrampoline()
/art/runtime/native/
Dorg_apache_harmony_dalvik_ddmc_DdmVmInternal.cc132 Thread* self = static_cast<JNIEnvExt*>(env)->self; in DdmVmInternal_getThreadStats()
Djava_lang_Thread.cc38 return static_cast<JNIEnvExt*>(env)->self->Interrupted() ? JNI_TRUE : JNI_FALSE; in Thread_interrupted()
Ddalvik_system_VMRuntime.cc193 return down_cast<JNIEnvExt*>(env)->vm->IsCheckJniEnabled() ? JNI_TRUE : JNI_FALSE; in VMRuntime_isCheckJniEnabled()
/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.cc109 const Offset functions(OFFSETOF_MEMBER(JNIEnvExt, functions)); in ArtJniCompileMethodInternal()
/art/runtime/base/
Dmutex.cc857 JNIEnvExt* const env = self->GetJniEnv(); in WaitHoldingLocks()
/art/runtime/interpreter/
Dunstarted_runtime.cc1389 JNIEnvExt* env = self->GetJniEnv(); in UnstartedMethodInvoke()