Searched refs:vm (Results 1 - 20 of 20) sorted by relevance

/art/tools/
H A Drun-jdwp-tests.sh41 vm_command="--vm-command=$art"
58 image_compiler_option="--vm-arg -Ximage-compiler-option --vm-arg --debuggable"
72 --vm-arg $image \
78 --vm-arg -Djpda.settings.verbose=true \
79 --vm-arg -Djpda.settings.syncPort=34016 \
80 --vm-arg -Djpda.settings.transportAddress=127.0.0.1:55107 \
81 --vm-arg -Djpda.settings.debuggeeJavaPath="\"$art_debugee $image $debuggee_args\"" \
84 --vm-arg -Xcompiler-option --vm
[all...]
/art/runtime/
H A Djni_env_ext.h37 static JNIEnvExt* Create(Thread* self, JavaVMExt* vm);
67 JavaVMExt* const vm; member in struct:art::JNIEnvExt
95 JNIEnvExt(Thread* self, JavaVMExt* vm);
H A Dscoped_thread_state_change.h180 : self_(ThreadForEnv(env)), env_(down_cast<JNIEnvExt*>(env)), vm_(env_->vm) {
186 vm_(env_ != nullptr ? env_->vm : nullptr) {
191 explicit ScopedObjectAccessAlreadyRunnable(JavaVM* vm) argument
192 : self_(nullptr), env_(nullptr), vm_(down_cast<JavaVMExt*>(vm)) {}
238 explicit ScopedObjectAccessUnchecked(JavaVM* vm) ALWAYS_INLINE
239 : ScopedObjectAccessAlreadyRunnable(vm), tsc_() {}
272 explicit ScopedObjectAccess(JavaVM* vm)
274 : ScopedObjectAccessUnchecked(vm) {}
H A Djni_env_ext.cc51 vm(vm_in),
58 if (vm->IsCheckJniEnabled()) {
H A Djava_vm_ext.cc259 static jint DestroyJavaVM(JavaVM* vm) { argument
260 if (vm == nullptr) {
263 JavaVMExt* raw_vm = reinterpret_cast<JavaVMExt*>(vm);
268 static jint AttachCurrentThread(JavaVM* vm, JNIEnv** p_env, void* thr_args) { argument
269 return AttachCurrentThreadInternal(vm, p_env, thr_args, false);
272 static jint AttachCurrentThreadAsDaemon(JavaVM* vm, JNIEnv** p_env, void* thr_args) { argument
273 return AttachCurrentThreadInternal(vm, p_env, thr_args, true);
276 static jint DetachCurrentThread(JavaVM* vm) { argument
277 if (vm == nullptr || Thread::Current() == nullptr) {
280 JavaVMExt* raw_vm = reinterpret_cast<JavaVMExt*>(vm);
286 GetEnv(JavaVM* vm, void** env, jint version) argument
307 AttachCurrentThreadInternal(JavaVM* vm, JNIEnv** p_env, void* raw_args, bool as_daemon) argument
[all...]
H A Dindirect_reference_table.cc62 JavaVMExt* vm = Runtime::Current()->GetJavaVM(); local
63 if (!vm->IsCheckJniEnabled()) {
H A Dcheck_jni.cc394 bool CheckNonHeap(JavaVMExt* vm, bool entry, const char* fmt, JniValueType* args) { argument
396 if (!should_trace && vm != nullptr && vm->IsTracingEnabled()) {
403 should_trace = (traceMethod != nullptr && vm->ShouldTrace(traceMethod));
1445 static jint GetJavaVM(JNIEnv *env, JavaVM **vm) { argument
1448 JniValueType args[2] = {{.E = env }, {.p = vm}};
1451 result.i = baseEnv(env)->GetJavaVM(env, vm);
2388 return reinterpret_cast<JNIEnvExt*>(env)->vm;
3622 static jint DestroyJavaVM(JavaVM* vm) { argument
3624 JniValueType args[1] = {{.v = vm}};
3634 AttachCurrentThread(JavaVM* vm, JNIEnv** p_env, void* thr_args) argument
3644 AttachCurrentThreadAsDaemon(JavaVM* vm, JNIEnv** p_env, void* thr_args) argument
3654 DetachCurrentThread(JavaVM* vm) argument
3664 GetEnv(JavaVM* vm, void** p_env, jint version) argument
3675 BaseVm(JavaVM* vm) argument
[all...]
H A Dreflection.cc345 static void CheckMethodArguments(JavaVMExt* vm, ArtMethod* m, uint32_t* args)
415 vm->JniAbortF(nullptr, "bad arguments passed to %s (see above for details)",
890 self->GetJniEnv()->vm->UpdateGlobal(self, ref, result);
893 self->GetJniEnv()->vm->UpdateWeakGlobal(self, ref, result);
H A Djni_internal.cc288 return reinterpret_cast<JNIEnvExt*>(env)->vm;
530 JavaVMExt* vm = down_cast<JNIEnvExt*>(env)->vm; local
532 vm->DeleteGlobalRef(self, obj);
542 JavaVMExt* vm = down_cast<JNIEnvExt*>(env)->vm; local
544 vm->DeleteWeakGlobalRef(self, obj);
2149 bool warn_on_going_to_parent = down_cast<JNIEnvExt*>(env)->vm->IsCheckJniEnabled();
2249 static jint GetJavaVM(JNIEnv* env, JavaVM** vm) { argument
2250 CHECK_NON_NULL_ARGUMENT_RETURN(vm, JNI_ER
[all...]
H A Dthread.cc499 DCHECK_EQ(jni_env_ext->vm, java_vm);
1570 tlsPtr_.jni_env->vm->JniAbortF(nullptr, "use of invalid jobject %p", obj);
1575 result = tlsPtr_.jni_env->vm->DecodeGlobal(const_cast<Thread*>(this), ref);
1578 result = tlsPtr_.jni_env->vm->DecodeWeakGlobal(const_cast<Thread*>(this), ref);
1587 tlsPtr_.jni_env->vm->JniAbortF(nullptr, "use of deleted %s %p",
H A Ddebugger.cc128 JavaVMExt* vm = Runtime::Current()->GetJavaVM(); local
131 vm->DeleteWeakGlobalRef(self, p.second);
4820 const char* propertyName = "dalvik.vm.allocTrackerMax";
/art/dalvikvm/
H A Ddalvikvm.cc175 JavaVM* vm = nullptr; local
177 if (JNI_CreateJavaVM(&vm, &env, &init_args) != JNI_OK) {
195 if (vm->DetachCurrentThread() != JNI_OK) {
201 if (vm->DestroyJavaVM() != 0) {
/art/runtime/native/
H A Djava_lang_Runtime.cc81 JavaVMExt* vm = Runtime::Current()->GetJavaVM(); local
82 bool success = vm->LoadNativeLibrary(env, filename.c_str(), javaLoader, &error_msg);
H A Ddalvik_system_ZygoteHooks.cc73 JavaVMExt* vm = runtime->GetJavaVM(); local
74 if (!vm->IsCheckJniEnabled()) {
76 vm->SetCheckJniEnabled(true);
H A Ddalvik_system_VMRuntime.cc189 return down_cast<JNIEnvExt*>(env)->vm->IsCheckJniEnabled() ? JNI_TRUE : JNI_FALSE;
/art/test/115-native-bridge/
H A Dnativebridge.cc44 static jint trampoline_JNI_OnLoad(JavaVM* vm, void* reserved) { argument
49 vm->GetEnv(reinterpret_cast<void **>(&env), JNI_VERSION_1_6);
89 return fnPtr(vm, reserved);
/art/
H A DAndroid.mk386 adb shell setprop persist.sys.dalvik.vm.lib.2 libart.so
393 adb shell setprop persist.sys.dalvik.vm.lib.2 libartd.so
400 adb shell setprop persist.sys.dalvik.vm.lib.2 libdvm.so
408 adb shell setprop dalvik.vm.dex2oat-filter \"\"
409 adb shell setprop dalvik.vm.image-dex2oat-filter \"\"
410 adb shell setprop persist.sys.dalvik.vm.lib.2 libart.so
418 adb shell setprop dalvik.vm.dex2oat-filter \"\"
419 adb shell setprop dalvik.vm.image-dex2oat-filter \"\"
420 adb shell setprop persist.sys.dalvik.vm.lib.2 libartd.so
428 adb shell setprop dalvik.vm
[all...]
/art/runtime/gc/
H A Dreference_processor.cc246 cleared_references = self->GetJniEnv()->vm->AddGlobalRef(
H A Dheap.cc1219 JavaVMExt* vm = soa.Vm(); local
1221 vm->TrimGlobals();
/art/test/004-JniTest/
H A Djni_test.cc30 extern "C" JNIEXPORT jint JNI_OnLoad(JavaVM *vm, void *) { argument
31 assert(vm != nullptr);
33 jvm = vm;

Completed in 1569 milliseconds