Searched refs:JNIEnvExt (Results 1 - 25 of 32) sorted by relevance

12

/art/runtime/
H A Djni_env_ext.cc43 const JNINativeInterface* JNIEnvExt::table_override_ = nullptr;
45 bool JNIEnvExt::CheckLocalsValid(JNIEnvExt* in) NO_THREAD_SAFETY_ANALYSIS {
52 jint JNIEnvExt::GetEnvHandler(JavaVMExt* vm, /*out*/void** env, jint version) {
66 JNIEnvExt* JNIEnvExt::Create(Thread* self_in, JavaVMExt* vm_in, std::string* error_msg) {
67 std::unique_ptr<JNIEnvExt> ret(new JNIEnvExt(self_in, vm_in, error_msg));
74 JNIEnvExt::JNIEnvExt(Threa function in class:art::JNIEnvExt
[all...]
H A Dnon_debuggable_classes.cc31 JNIEnvExt* env = self->GetJniEnv();
H A Djni_env_ext-inl.h27 inline T JNIEnvExt::AddLocalReference(ObjPtr<mirror::Object> obj) {
H A Djni_env_ext.h40 class JNIEnvExt : public JNIEnv { class in namespace:art
42 // Creates a new JNIEnvExt. Returns null on error, in which case error_msg
44 static JNIEnvExt* Create(Thread* self, JavaVMExt* vm, std::string* error_msg);
50 ~JNIEnvExt();
150 static bool CheckLocalsValid(JNIEnvExt* in) NO_THREAD_SAFETY_ANALYSIS;
158 JNIEnvExt(Thread* self, JavaVMExt* vm, std::string* error_msg)
208 // Used to save and restore the JNIEnvExt state when not going through code created by the JNI
212 explicit ScopedJniEnvLocalRefState(JNIEnvExt* env) :
224 JNIEnvExt* const env_;
H A Dscoped_thread_state_change.h30 class JNIEnvExt;
75 JNIEnvExt* Env() const {
126 JNIEnvExt* const env_;
H A Dscoped_thread_state_change-inl.h100 : self_(ThreadForEnv(env)), env_(down_cast<JNIEnvExt*>(env)), vm_(env_->GetVm()) {}
104 env_(down_cast<JNIEnvExt*>(self->GetJniEnv())),
H A Dthread-inl.h36 JNIEnvExt* full_env(down_cast<JNIEnvExt*>(env));
H A Dthread.h89 class JNIEnvExt;
536 JNIEnvExt* GetJniEnv() const {
1341 // The third parameter is not mandatory. If given, the thread will use this JNIEnvExt. In case
1343 // responsibility to destroy the given JNIEnvExt. If the parameter is null, Init will try to
1344 // create a JNIEnvExt on its own (and potentially fail at that stage, indicated by a return value
1346 bool Init(ThreadList*, JavaVMExt*, JNIEnvExt* jni_env_ext = nullptr)
1596 JNIEnvExt* jni_env;
1598 // Temporary storage to transfer a pre-allocated JNIEnvExt from the creating thread to the
1600 JNIEnvExt* tmp_jni_env;
H A Djni_internal_test.cc937 return reinterpret_cast<JNIEnvExt*>(env)->GetLocalsCapacity();
1124 down_cast<JNIEnvExt*>(env_)->SetCheckJniEnabled(false); \
1147 down_cast<JNIEnvExt*>(env_)->SetCheckJniEnabled(true); \
2469 // Test the offset computation of JNIEnvExt offsets. b/26071368.
2471 EXPECT_EQ(OFFSETOF_MEMBER(JNIEnvExt, local_ref_cookie_),
2472 JNIEnvExt::LocalRefCookieOffset(sizeof(void*)).Uint32Value());
2474 EXPECT_EQ(OFFSETOF_MEMBER(JNIEnvExt, self_), JNIEnvExt::SelfOffset(sizeof(void*)).Uint32Value());
2479 OFFSETOF_MEMBER(JNIEnvExt, locals_) +
2481 uint32_t segment_state_computed = JNIEnvExt
[all...]
H A Djni_internal.cc409 return reinterpret_cast<JNIEnvExt*>(env)->GetVm();
571 return static_cast<JNIEnvExt*>(env)->self_->IsExceptionPending() ? JNI_TRUE : JNI_FALSE;
625 down_cast<JNIEnvExt*>(env)->PushFrame(capacity);
649 JavaVMExt* vm = down_cast<JNIEnvExt*>(env)->GetVm();
650 Thread* self = down_cast<JNIEnvExt*>(env)->self_;
661 JavaVMExt* vm = down_cast<JNIEnvExt*>(env)->GetVm();
662 Thread* self = down_cast<JNIEnvExt*>(env)->self_;
684 auto* ext_env = down_cast<JNIEnvExt*>(env);
2336 bool warn_on_going_to_parent = down_cast<JNIEnvExt*>(env)->GetVm()->IsCheckJniEnabled();
2484 return static_cast<JNIEnvExt*>(en
[all...]
H A Dthread.cc625 Thread* self = static_cast<JNIEnvExt*>(env)->GetSelf();
672 // Try to allocate a JNIEnvExt for the thread. We do this here as we might be out of memory and
675 std::unique_ptr<JNIEnvExt> child_jni_env_ext(
676 JNIEnvExt::Create(child_thread, Runtime::Current()->GetJavaVM(), &error_msg));
695 // JNIEnvExt we created.
703 // Either JNIEnvExt::Create or pthread_create(3) failed, so clean up.
725 bool Thread::Init(ThreadList* thread_list, JavaVMExt* java_vm, JNIEnvExt* jni_env_ext) {
763 tlsPtr_.jni_env = JNIEnvExt::Create(this, java_vm, &error_msg);
765 LOG(ERROR) << "Failed to create JNIEnvExt: " << error_msg;
H A Dcheck_jni.cc1297 JNIEnvExt* threadEnv = self->GetJniEnv();
1303 Thread* envThread = reinterpret_cast<JNIEnvExt*>(env)->GetSelf();
2639 down_cast<JNIEnvExt*>(env)->RecordMonitorEnter(obj);
2657 down_cast<JNIEnvExt*>(env)->CheckMonitorRelease(obj);
2756 return reinterpret_cast<JNIEnvExt*>(env)->GetVm();
2760 return reinterpret_cast<JNIEnvExt*>(env)->GetUncheckedFunctions();
H A Dcommon_throws.cc768 JNIEnvExt* env = self->GetJniEnv();
/art/openjdkjvmti/
H A Dti_jni.cc52 art::JNIEnvExt::SetTableOverride(function_table);
61 // We use the generic JNIEnvExt::GetFunctionTable instead of querying a specific JNIEnv, as
75 current_table = art::JNIEnvExt::GetFunctionTable(check_jni);
H A Devents.cc236 static Type AddLocalRef(art::JNIEnvExt* e, art::mirror::Object* obj)
244 art::JNIEnvExt* jnienv,
304 art::JNIEnvExt* jni_env = self->GetJniEnv();
343 art::JNIEnvExt* jnienv = self->GetJniEnv();
357 art::JNIEnvExt* jnienv = self->GetJniEnv();
371 art::JNIEnvExt* jnienv = self->GetJniEnv();
398 art::JNIEnvExt* jnienv = self->GetJniEnv();
490 art::JNIEnvExt* jnienv = self->GetJniEnv();
511 art::JNIEnvExt* jnienv = self->GetJniEnv();
537 art::JNIEnvExt* jnien
[all...]
H A Dti_object.cc89 art::JNIEnvExt* jni = self->GetJniEnv();
H A Djvmti_weak_table-inl.h333 art::JNIEnvExt* jni_env = self->GetJniEnv();
/art/test/136-daemon-jni-shutdown/
H A Ddaemon_jni_shutdown.cc61 JavaVM* vm = down_cast<JNIEnvExt*>(env)->GetVm();
/art/compiler/trampolines/
H A Dtrampoline_compiler.cc76 ___ Ldr(temp_reg, MemOperand(r0, JNIEnvExt::SelfOffset(4).Int32Value()));
113 Offset(JNIEnvExt::SelfOffset(8).Int32Value()));
148 __ LoadFromOffset(kLoadWord, T9, A0, JNIEnvExt::SelfOffset(4).Int32Value());
180 __ LoadFromOffset(kLoadDoubleword, T9, A0, JNIEnvExt::SelfOffset(8).Int32Value());
/art/runtime/entrypoints/quick/
H A Dquick_jni_entrypoints.cc52 JNIEnvExt* env = self->GetJniEnv();
67 JNIEnvExt* env = self->GetJniEnv();
117 JNIEnvExt* env = self->GetJniEnv();
H A Dquick_trampoline_entrypoints.cc928 JNIEnvExt* env = self->GetJniEnv();
1296 JNIEnvExt* env = self->GetJniEnv();
2756 JNIEnvExt* env = self->GetJniEnv();
/art/runtime/native/
H A Dorg_apache_harmony_dalvik_ddmc_DdmVmInternal.cc36 return static_cast<JNIEnvExt*>(env)->GetSelf();
H A Djava_lang_Thread.cc40 return static_cast<JNIEnvExt*>(env)->GetSelf()->Interrupted() ? JNI_TRUE : JNI_FALSE;
/art/openjdkjvm/
H A DOpenjdkJvm.cc388 return static_cast<art::JNIEnvExt*>(env)->GetSelf()->Interrupted() ? JNI_TRUE : JNI_FALSE;
/art/compiler/jni/quick/
H A Djni_compiler.cc224 const Offset functions(OFFSETOF_MEMBER(JNIEnvExt, functions));

Completed in 401 milliseconds

12