/art/runtime/jni/ |
D | jni_internal_test.cc | 45 vm_->AttachCurrentThread(&env_, nullptr); in SetUp() 47 ScopedLocalRef<jclass> aioobe(env_, in SetUp() 48 env_->FindClass("java/lang/ArrayIndexOutOfBoundsException")); in SetUp() 50 aioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(aioobe.get())); in SetUp() 52 ScopedLocalRef<jclass> ase(env_, env_->FindClass("java/lang/ArrayStoreException")); in SetUp() 54 ase_ = reinterpret_cast<jclass>(env_->NewGlobalRef(ase.get())); in SetUp() 56 ScopedLocalRef<jclass> sioobe(env_, in SetUp() 57 env_->FindClass("java/lang/StringIndexOutOfBoundsException")); in SetUp() 59 sioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(sioobe.get())); in SetUp() 63 ScopedObjectAccess soa(env_); in ExpectException() [all …]
|
D | jni_env_ext.h | 216 env_(env), in ScopedJniEnvLocalRefState() 220 env_->PopLocalReferenceFrame(saved_local_ref_cookie_); in ~ScopedJniEnvLocalRefState() 224 JNIEnvExt* const env_;
|
/art/openjdkjvmti/ |
D | jvmti_allocator.h | 58 explicit JvmtiAllocator(jvmtiEnv* env) : env_(env) {} in JvmtiAllocator() 59 JvmtiAllocator() : env_(nullptr) {} in JvmtiAllocator() 63 : env_(other.env_) {} in JvmtiAllocator() 70 jvmtiEnv* env_; 95 explicit JvmtiAllocator(jvmtiEnv* env) : env_(env) {} in JvmtiAllocator() 96 JvmtiAllocator() : env_(nullptr) {} in JvmtiAllocator() 100 : env_(other.env_) {} in JvmtiAllocator() 115 if (env_ == nullptr) { 121 jvmtiError alloc_error = env_->Allocate(n * sizeof(T), &result); 127 if (env_ == nullptr) { in deallocate() [all …]
|
D | ti_logging.h | 65 : env_(ArtJvmTiEnv::AsArtJvmTiEnv(env)), in JvmtiLogMessage() 68 DCHECK(env_ != nullptr); in JvmtiLogMessage() 72 art::MutexLock mu(art::Thread::Current(), env_->last_error_mutex_); in ~JvmtiLogMessage() 73 env_->last_error_ = save_stream_.str(); in ~JvmtiLogMessage() 84 ArtJvmTiEnv* env_;
|
D | art_jvmti.h | 149 JvmtiDeleter() : env_(nullptr) {} in JvmtiDeleter() 150 explicit JvmtiDeleter(jvmtiEnv* env) : env_(env) {} in JvmtiDeleter() 157 CHECK(env_ != nullptr); in operator() 158 jvmtiError ret = env_->Deallocate(reinterpret_cast<unsigned char*>(ptr)); in operator() 163 mutable jvmtiEnv* env_; 169 JvmtiDeleter() : env_(nullptr) {} in JvmtiDeleter() 170 explicit JvmtiDeleter(jvmtiEnv* env) : env_(env) {} in JvmtiDeleter() 178 CHECK(env_ != nullptr); in operator() 179 jvmtiError ret = env_->Deallocate(reinterpret_cast<unsigned char*>(ptr)); in operator() 184 mutable jvmtiEnv* env_;
|
D | events-inl.h | 58 ScopedEventDispatchEnvironment() : env_(nullptr), throw_(nullptr, nullptr) { in ScopedEventDispatchEnvironment() 63 : env_(env), in ScopedEventDispatchEnvironment() 64 throw_(env_, env_->ExceptionOccurred()) { in ScopedEventDispatchEnvironment() 68 env_->PushLocalFrame(128); in ScopedEventDispatchEnvironment() 69 env_->ExceptionClear(); in ScopedEventDispatchEnvironment() 73 if (env_ != nullptr) { in ~ScopedEventDispatchEnvironment() 74 if (throw_.get() != nullptr && !env_->ExceptionCheck()) { in ~ScopedEventDispatchEnvironment() 77 env_->Throw(throw_.get()); in ~ScopedEventDispatchEnvironment() 79 env_->PopLocalFrame(nullptr); in ~ScopedEventDispatchEnvironment() 85 JNIEnv* env_; [all …]
|
D | ti_redefine.h | 291 ArtJvmTiEnv* env_; variable 306 : env_(env), in Redefiner()
|
D | ti_redefine.cc | 2158 BreakpointUtil::RemoveBreakpointsInClass(driver_->env_, GetMirrorClass().Ptr()); in UnregisterJvmtiBreakpoints()
|
/art/test/ti-agent/ |
D | scoped_utf_chars.h | 32 ScopedUtfChars(JNIEnv* env, jstring s) : env_(env), string_(s) { in ScopedUtfChars() 42 env_(rhs.env_), string_(rhs.string_), utf_chars_(rhs.utf_chars_) { in ScopedUtfChars() 43 rhs.env_ = nullptr; in ScopedUtfChars() 50 env_->ReleaseStringUTFChars(string_, utf_chars_); in ~ScopedUtfChars() 60 env_ = rhs.env_; 63 rhs.env_ = nullptr; 83 JNIEnv* env_;
|
D | jvmti_helper.h | 50 JvmtiDeleter() : env_(nullptr) {} in JvmtiDeleter() 51 explicit JvmtiDeleter(jvmtiEnv* env) : env_(env) {} in JvmtiDeleter() 58 CHECK(env_ != nullptr); in operator() 59 jvmtiError ret = env_->Deallocate(ptr); in operator() 60 CheckJvmtiError(env_, ret); in operator() 64 mutable jvmtiEnv* env_;
|
D | trace_helper.cc | 58 : jnienv_(jnienv), env_(env), thr_(thr) { in ScopedCallbackState() 59 CHECK(!IsInCallback(jnienv_, env_, thr_)); in ScopedCallbackState() 60 SetInCallback(jnienv_, env_, thr_, true); in ScopedCallbackState() 63 CHECK(IsInCallback(jnienv_, env_, thr_)); in ~ScopedCallbackState() 64 SetInCallback(jnienv_, env_, thr_, false); in ~ScopedCallbackState() 69 jvmtiEnv* env_; member in art::common_trace::ScopedCallbackState
|
/art/test/004-JniTest/ |
D | jni_test.cc | 422 : env_(env), in JniCallNonvirtualVoidMethodTest() 442 JNIEnv* const env_; member in art::JniCallNonvirtualVoidMethodTest 462 jclass c = env_->FindClass(class_name); in GetClass() 463 if (env_->ExceptionCheck()) { in GetClass() 464 env_->ExceptionDescribe(); in GetClass() 465 env_->FatalError(__FUNCTION__); in GetClass() 467 CHECK(!env_->ExceptionCheck()); in GetClass() 474 env_->GetMethodID(c, method_name, "()V") : in GetMethodID() 475 env_->GetStaticMethodID(c, method_name, "()V")); in GetMethodID() 476 if (env_->ExceptionCheck()) { in GetMethodID() [all …]
|
/art/compiler/jni/ |
D | jni_compiler_test.cc | 310 env_ = Thread::Current()->GetJniEnv(); in SetUpForTest() 311 jklass_ = env_->FindClass("MyClassNatives"); in SetUpForTest() 315 jmethod_ = env_->GetStaticMethodID(jklass_, method_name, method_sig); in SetUpForTest() 317 jmethod_ = env_->GetMethodID(jklass_, method_name, method_sig); in SetUpForTest() 329 ASSERT_EQ(JNI_OK, env_->RegisterNatives(jklass_, methods, 1)) in SetUpForTest() 332 env_->UnregisterNatives(jklass_); in SetUpForTest() 335 jmethodID constructor = env_->GetMethodID(jklass_, "<init>", "()V"); in SetUpForTest() 336 jobj_ = env_->NewObject(jklass_, constructor); in SetUpForTest() 398 JNIEnv* env_; member in art::JniCompilerTest 707 env_->CallNonvirtualVoidMethod(jobj_, jklass_, jmethod_); in CompileAndRunNoArgMethodImpl() [all …]
|
/art/runtime/ |
D | reflection_test.cc | 44 vm_->AttachCurrentThread(&env_, nullptr); in SetUp() 46 ScopedLocalRef<jclass> aioobe(env_, in SetUp() 47 env_->FindClass("java/lang/ArrayIndexOutOfBoundsException")); in SetUp() 49 aioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(aioobe.get())); in SetUp() 51 ScopedLocalRef<jclass> ase(env_, env_->FindClass("java/lang/ArrayStoreException")); in SetUp() 53 ase_ = reinterpret_cast<jclass>(env_->NewGlobalRef(ase.get())); in SetUp() 55 ScopedLocalRef<jclass> sioobe(env_, in SetUp() 56 env_->FindClass("java/lang/StringIndexOutOfBoundsException")); in SetUp() 58 sioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(sioobe.get())); in SetUp() 63 env_->DeleteGlobalRef(aioobe_); in CleanUpJniEnv() [all …]
|
D | scoped_thread_state_change-inl.h | 97 : self_(Thread::ForEnv(env)), env_(down_cast<JNIEnvExt*>(env)), vm_(env_->GetVm()) {} in ScopedObjectAccessAlreadyRunnable() 101 env_(down_cast<JNIEnvExt*>(self->GetJniEnv())), in ScopedObjectAccessAlreadyRunnable() 102 vm_(env_ != nullptr ? env_->GetVm() : nullptr) {} in ScopedObjectAccessAlreadyRunnable()
|
D | scoped_thread_state_change.h | 78 return env_; in Env() 117 : self_(nullptr), env_(nullptr), vm_(reinterpret_cast<JavaVMExt*>(vm)) {} in ScopedObjectAccessAlreadyRunnable() 128 JNIEnvExt* const env_; variable
|
/art/dex2oat/driver/ |
D | compiler_driver_test.cc | 61 env_ = Thread::Current()->GetJniEnv(); in EnsureCompiled() 62 class_ = env_->FindClass(class_name); in EnsureCompiled() 65 mid_ = env_->GetMethodID(class_, method, signature); in EnsureCompiled() 67 mid_ = env_->GetStaticMethodID(class_, method, signature); in EnsureCompiled() 117 JNIEnv* env_; member in art::CompilerDriverTest 175 jclass c_class = env_->FindClass("ConcreteClass"); in TEST_F() 177 jmethodID constructor = env_->GetMethodID(c_class, "<init>", "()V"); in TEST_F() 179 jobject jobj_ = env_->NewObject(c_class, constructor); in TEST_F() 183 env_->CallNonvirtualVoidMethod(jobj_, class_, mid_); in TEST_F() 185 EXPECT_EQ(env_->ExceptionCheck(), JNI_TRUE); in TEST_F() [all …]
|
/art/tools/jvmti-agents/titrace/ |
D | titrace.cc | 46 explicit TiMemory(jvmtiEnv* env, T* mem, size_t size) : env_(env), mem_(mem), size_(size) { in TiMemory() 51 env_->Deallocate(static_cast<unsigned char*>(mem_)); in ~TiMemory() 58 env_ = other.env_; in TiMemory() 63 other.env_ = nullptr; in TiMemory() 86 jvmtiEnv* env_; member
|
/art/tools/jvmti-agents/ti-alloc-sample/ |
D | ti_alloc_sample.cc | 55 : jvmtienv_(jvmtienv), env_(env), free_name_(false) { in ScopedThreadInfo() 69 DeleteLocalRef(env_, info_.thread_group); in ~ScopedThreadInfo() 70 DeleteLocalRef(env_, info_.context_class_loader); in ~ScopedThreadInfo() 79 JNIEnv* env_; member in tifast::__anon9d4dc8ac0111::ScopedThreadInfo 159 : jvmtienv_(jvmtienv), env_(env), method_(m) {} in ScopedMethodInfo() 162 DeleteLocalRef(env_, declaring_class_); in ~ScopedMethodInfo() 215 JNIEnv* env_; member in tifast::__anon9d4dc8ac0111::ScopedMethodInfo
|
/art/tools/jvmti-agents/breakpoint-logger/ |
D | breakpoint_logger.cc | 74 : jvmti_env_(jvmti_env), env_(env), free_name_(false) { in ScopedThreadInfo() 89 env_->DeleteLocalRef(info_.thread_group); in ~ScopedThreadInfo() 90 env_->DeleteLocalRef(info_.context_class_loader); in ~ScopedThreadInfo() 99 JNIEnv* env_; member in breakpoint_logger::ScopedThreadInfo 177 env_(env), in ScopedMethodInfo() 187 env_->DeleteLocalRef(declaring_class_); in ~ScopedMethodInfo() 240 JNIEnv* env_; member in breakpoint_logger::ScopedMethodInfo
|
/art/test/ti-stress/ |
D | stress.cc | 123 : jvmtienv_(jvmtienv), env_(env), free_name_(false) { in ScopedThreadInfo() 138 DeleteLocalRef(env_, info_.thread_group); in ~ScopedThreadInfo() 139 DeleteLocalRef(env_, info_.context_class_loader); in ~ScopedThreadInfo() 148 JNIEnv* env_; member in art::ScopedThreadInfo 218 env_(env), in ScopedMethodInfo() 227 DeleteLocalRef(env_, declaring_class_); in ~ScopedMethodInfo() 275 JNIEnv* env_; member in art::ScopedMethodInfo
|
/art/tools/jvmti-agents/ti-fast/ |
D | tifast.cc | 133 : jvmtienv_(jvmtienv), env_(env), free_name_(false) { in ScopedThreadInfo() 147 DeleteLocalRef(env_, info_.thread_group); in ~ScopedThreadInfo() 148 DeleteLocalRef(env_, info_.context_class_loader); in ~ScopedThreadInfo() 157 JNIEnv* env_; member in tifast::__anon4fd488430111::ScopedThreadInfo 237 : jvmtienv_(jvmtienv), env_(env), method_(m) {} in ScopedMethodInfo() 240 DeleteLocalRef(env_, declaring_class_); in ~ScopedMethodInfo() 293 JNIEnv* env_; member in tifast::__anon4fd488430111::ScopedMethodInfo
|
/art/tools/jvmti-agents/simple-profile/ |
D | simple_profile.cc | 255 env_(env), in ScopedMethodInfo() 264 env_->DeleteLocalRef(declaring_class_); in ~ScopedMethodInfo() 302 JNIEnv* env_; member in simple_profile::ScopedMethodInfo
|
/art/runtime/native/ |
D | dalvik_system_DexFile.cc | 236 ScopedIntArrayAccessor(JNIEnv* env, jintArray arr) : env_(env), array_(arr) { in ScopedIntArrayAccessor() 237 elements_ = env_->GetIntArrayElements(array_, /* isCopy= */ nullptr); in ScopedIntArrayAccessor() 242 env_->ReleaseIntArrayElements(array_, elements_, JNI_ABORT); in ~ScopedIntArrayAccessor() 248 JNIEnv* env_; member
|
/art/compiler/optimizing/ |
D | nodes.h | 2168 explicit EnvInputSelector(const HEnvironment* e) : env_(e) {} in EnvInputSelector() 2170 return env_->GetInstructionAt(s); in operator() 2173 const HEnvironment* env_;
|