Home
last modified time | relevance | path

Searched refs:jvmtiError (Results 1 – 25 of 105) sorted by relevance

12345

/art/openjdkjvmti/include/
Djvmti.h388 } jvmtiError; typedef
510 typedef jvmtiError (JNICALL *jvmtiExtensionFunction)
642 jvmtiError* errors;
1008 jvmtiError (JNICALL *SetEventNotificationMode) (jvmtiEnv* env,
1018 jvmtiError (JNICALL *GetAllThreads) (jvmtiEnv* env,
1023 jvmtiError (JNICALL *SuspendThread) (jvmtiEnv* env,
1027 jvmtiError (JNICALL *ResumeThread) (jvmtiEnv* env,
1031 jvmtiError (JNICALL *StopThread) (jvmtiEnv* env,
1036 jvmtiError (JNICALL *InterruptThread) (jvmtiEnv* env,
1040 jvmtiError (JNICALL *GetThreadInfo) (jvmtiEnv* env,
[all …]
/art/openjdkjvmti/
Dti_class.h47 static jvmtiError GetClassFields(jvmtiEnv* env,
52 static jvmtiError GetClassMethods(jvmtiEnv* env,
57 static jvmtiError GetImplementedInterfaces(jvmtiEnv* env,
62 static jvmtiError GetClassModifiers(jvmtiEnv* env, jclass klass, jint* modifiers_ptr);
64 static jvmtiError GetClassSignature(jvmtiEnv* env,
69 static jvmtiError GetClassStatus(jvmtiEnv* env, jclass klass, jint* status_ptr);
71 static jvmtiError GetClassLoader(jvmtiEnv* env, jclass klass, jobject* classloader_ptr);
73 static jvmtiError GetClassLoaderClasses(jvmtiEnv* env,
78 static jvmtiError GetClassLoaderClassDescriptors(jvmtiEnv* env,
83 static jvmtiError IsInterface(jvmtiEnv* env, jclass klass, jboolean* is_interface_ptr);
[all …]
Dti_method.h48 static jvmtiError GetBytecodes(jvmtiEnv* env,
53 static jvmtiError GetArgumentsSize(jvmtiEnv* env, jmethodID method, jint* size_ptr);
55 static jvmtiError GetMaxLocals(jvmtiEnv* env, jmethodID method, jint* max_ptr);
57 static jvmtiError GetMethodName(jvmtiEnv* env,
63 static jvmtiError GetMethodDeclaringClass(jvmtiEnv* env,
67 static jvmtiError GetMethodLocation(jvmtiEnv* env,
72 static jvmtiError GetMethodModifiers(jvmtiEnv* env,
76 static jvmtiError GetLineNumberTable(jvmtiEnv* env,
81 static jvmtiError IsMethodNative(jvmtiEnv* env, jmethodID method, jboolean* is_native_ptr);
82 static jvmtiError IsMethodObsolete(jvmtiEnv* env, jmethodID method, jboolean* is_obsolete_ptr);
[all …]
Dti_monitor.h42 static jvmtiError CreateRawMonitor(jvmtiEnv* env, const char* name, jrawMonitorID* monitor_ptr);
44 static jvmtiError DestroyRawMonitor(jvmtiEnv* env, jrawMonitorID monitor);
46 static jvmtiError RawMonitorEnterNoSuspend(jvmtiEnv* env, jrawMonitorID monitor);
48 static jvmtiError RawMonitorEnter(jvmtiEnv* env, jrawMonitorID monitor);
50 static jvmtiError RawMonitorExit(jvmtiEnv* env, jrawMonitorID monitor);
52 static jvmtiError RawMonitorWait(jvmtiEnv* env, jrawMonitorID monitor, jlong millis);
54 static jvmtiError RawMonitorNotify(jvmtiEnv* env, jrawMonitorID monitor);
56 static jvmtiError RawMonitorNotifyAll(jvmtiEnv* env, jrawMonitorID monitor);
58 static jvmtiError GetCurrentContendedMonitor(jvmtiEnv* env, jthread thr, jobject* monitor);
Dti_thread.h98 static jvmtiError GetAllThreads(jvmtiEnv* env, jint* threads_count_ptr, jthread** threads_ptr);
100 static jvmtiError GetCurrentThread(jvmtiEnv* env, jthread* thread_ptr);
102 static jvmtiError GetThreadInfo(jvmtiEnv* env, jthread thread, jvmtiThreadInfo* info_ptr);
104 static jvmtiError GetThreadState(jvmtiEnv* env, jthread thread, jint* thread_state_ptr);
106 static jvmtiError SetThreadLocalStorage(jvmtiEnv* env, jthread thread, const void* data);
107 static jvmtiError GetThreadLocalStorage(jvmtiEnv* env, jthread thread, void** data_ptr);
109 static jvmtiError RunAgentThread(jvmtiEnv* env,
115 static jvmtiError SuspendThread(jvmtiEnv* env, jthread thread);
116 static jvmtiError ResumeThread(jvmtiEnv* env, jthread thread);
118 static jvmtiError SuspendThreadList(jvmtiEnv* env,
[all …]
Dti_field.h44 static jvmtiError GetFieldName(jvmtiEnv* env,
51 static jvmtiError GetFieldDeclaringClass(jvmtiEnv* env,
56 static jvmtiError GetFieldModifiers(jvmtiEnv* env,
61 static jvmtiError IsFieldSynthetic(jvmtiEnv* env,
66 static jvmtiError SetFieldModificationWatch(jvmtiEnv* env, jclass klass, jfieldID field)
68 static jvmtiError ClearFieldModificationWatch(jvmtiEnv* env, jclass klass, jfieldID field)
70 static jvmtiError SetFieldAccessWatch(jvmtiEnv* env, jclass klass, jfieldID field)
72 static jvmtiError ClearFieldAccessWatch(jvmtiEnv* env, jclass klass, jfieldID field)
DOpenjdkJvmTi.cc100 static jvmtiError getEnvironmentError(jvmtiEnv* env) { in getEnvironmentError()
112 jvmtiError ensure_valid_env_ ## __LINE__ = getEnvironmentError(env); \
126 static jvmtiError Allocate(jvmtiEnv* env, jlong size, unsigned char** mem_ptr) { in Allocate()
127 jvmtiError err = getEnvironmentError(env); in Allocate()
136 static jvmtiError Deallocate(jvmtiEnv* env, unsigned char* mem) { in Deallocate()
137 jvmtiError err = getEnvironmentError(env); in Deallocate()
145 static jvmtiError GetThreadState(jvmtiEnv* env, jthread thread, jint* thread_state_ptr) { in GetThreadState()
150 static jvmtiError GetCurrentThread(jvmtiEnv* env, jthread* thread_ptr) { in GetCurrentThread()
155 static jvmtiError GetAllThreads(jvmtiEnv* env, jint* threads_count_ptr, jthread** threads_ptr) { in GetAllThreads()
160 static jvmtiError SuspendThread(jvmtiEnv* env, jthread thread) { in SuspendThread()
[all …]
Dti_stack.h47 static jvmtiError GetAllStackTraces(jvmtiEnv* env,
53 static jvmtiError GetFrameCount(jvmtiEnv* env, jthread thread, jint* count_ptr);
55 static jvmtiError GetFrameLocation(jvmtiEnv* env,
61 static jvmtiError GetStackTrace(jvmtiEnv* env,
68 static jvmtiError GetThreadListStackTraces(jvmtiEnv* env,
74 static jvmtiError GetOwnedMonitorStackDepthInfo(jvmtiEnv* env,
79 static jvmtiError GetOwnedMonitorInfo(jvmtiEnv* env,
84 static jvmtiError NotifyFramePop(jvmtiEnv* env, jthread thread, jint depth);
86 static jvmtiError PopFrame(jvmtiEnv* env, jthread thread);
89 static jvmtiError ForceEarlyReturn(
Dti_heap.h45 jvmtiError GetLoadedClasses(jvmtiEnv* env, jint* class_count_ptr, jclass** classes_ptr);
47 jvmtiError IterateOverInstancesOfClass(jvmtiEnv* env,
53 jvmtiError IterateThroughHeap(jvmtiEnv* env,
59 jvmtiError FollowReferences(jvmtiEnv* env,
66 static jvmtiError ForceGarbageCollection(jvmtiEnv* env);
83 static jvmtiError JNICALL GetObjectHeapId(jvmtiEnv* env, jlong tag, jint* heap_id, ...);
84 static jvmtiError JNICALL GetHeapName(jvmtiEnv* env, jint heap_id, char** heap_name, ...);
86 static jvmtiError JNICALL IterateThroughHeapExt(jvmtiEnv* env,
92 static jvmtiError JNICALL ChangeArraySize(jvmtiEnv* env, jobject arr, jsize new_size);
Dti_search.h46 static jvmtiError AddToBootstrapClassLoaderSearch(jvmtiEnv* env, const char* segment);
48 static jvmtiError AddToSystemClassLoaderSearch(jvmtiEnv* env, const char* segment);
50 static jvmtiError AddToDexClassLoader(jvmtiEnv* env, jobject classloader, const char* segment);
51 static jvmtiError AddToDexClassLoaderInMemory(jvmtiEnv* env,
Dti_timers.h42 static jvmtiError GetAvailableProcessors(jvmtiEnv* env, jint* processor_count_ptr);
44 static jvmtiError GetTimerInfo(jvmtiEnv* env, jvmtiTimerInfo* info_ptr);
46 static jvmtiError GetTime(jvmtiEnv* env, jlong* nanos_ptr);
Dti_properties.h42 static jvmtiError GetSystemProperties(jvmtiEnv* env, jint* count_ptr, char*** property_ptr);
44 static jvmtiError GetSystemProperty(jvmtiEnv* env, const char* property, char** value_ptr);
46 static jvmtiError SetSystemProperty(jvmtiEnv* env, const char* property, const char* value);
Dti_object.h42 static jvmtiError GetObjectSize(jvmtiEnv* env, jobject object, jlong* size_ptr);
44 static jvmtiError GetObjectHashCode(jvmtiEnv* env, jobject object, jint* hash_code_ptr);
46 static jvmtiError GetObjectMonitorUsage(jvmtiEnv* env, jobject object, jvmtiMonitorUsage* usage);
Dti_properties.cc92 jvmtiError PropertiesUtil::GetSystemProperties(jvmtiEnv* env, in GetSystemProperties()
98 jvmtiError array_alloc_result; in GetSystemProperties()
109 jvmtiError libpath_result; in GetSystemProperties()
119 jvmtiError classpath_result; in GetSystemProperties()
129 jvmtiError data_result; in GetSystemProperties()
148 static jvmtiError Copy(jvmtiEnv* env, const char* in, char** out) { in Copy()
149 jvmtiError result; in Copy()
161 static jvmtiError GetLibraryPath(jvmtiEnv* env, char** value_ptr) { in GetLibraryPath()
205 jvmtiError PropertiesUtil::GetSystemProperty(jvmtiEnv* env, in GetSystemProperty()
229 jvmtiError PropertiesUtil::SetSystemProperty(jvmtiEnv* env ATTRIBUTE_UNUSED, in SetSystemProperty()
Dti_extension.h44 static jvmtiError GetExtensionFunctions(jvmtiEnv* env,
48 static jvmtiError GetExtensionEvents(jvmtiEnv* env,
52 static jvmtiError SetExtensionEventCallback(jvmtiEnv* env,
Dti_threadgroup.h42 static jvmtiError GetTopThreadGroups(jvmtiEnv* env,
46 static jvmtiError GetThreadGroupInfo(jvmtiEnv* env,
50 static jvmtiError GetThreadGroupChildren(jvmtiEnv* env,
Dti_allocator.h48 static jvmtiError Allocate(jvmtiEnv* env, jlong size, unsigned char** mem_ptr);
49 static jvmtiError Deallocate(jvmtiEnv* env, unsigned char* mem);
50 static jvmtiError GetGlobalJvmtiAllocationState(jvmtiEnv* env, jlong* total_allocated);
Dti_redefine.h79 static jvmtiError RedefineClassesDirect(ArtJvmTiEnv* env,
89 static jvmtiError RedefineClasses(jvmtiEnv* env,
92 static jvmtiError StructurallyRedefineClasses(jvmtiEnv* env,
96 static jvmtiError IsModifiableClass(jvmtiEnv* env, jclass klass, jboolean* is_redefinable);
97 static jvmtiError IsStructurallyModifiableClass(jvmtiEnv* env,
107 static jvmtiError GetClassRedefinitionError(jclass klass, /*out*/std::string* error_msg)
110 static jvmtiError StructurallyRedefineClassDirect(jvmtiEnv* env,
168 void RecordFailure(jvmtiError e, const std::string& err) { in RecordFailure()
302 jvmtiError result_;
324 jvmtiError AddRedefinition(ArtJvmTiEnv* env, const ArtClassDefinition& def)
[all …]
Dti_jni.h51 static jvmtiError SetJNIFunctionTable(jvmtiEnv* env, const jniNativeInterface* function_table);
53 static jvmtiError GetJNIFunctionTable(jvmtiEnv* env, jniNativeInterface** function_table);
/art/test/923-monitors/
Dmonitors.cc43 jvmtiError result = jvmti_env->CreateRawMonitor("dummy", &id); in Java_art_Test923_createRawMonitor()
52 jvmtiError result = jvmti_env->DestroyRawMonitor(LongToMonitor(l)); in Java_art_Test923_destroyRawMonitor()
58 jvmtiError result = jvmti_env->RawMonitorEnter(LongToMonitor(l)); in Java_art_Test923_rawMonitorEnter()
64 jvmtiError result = jvmti_env->RawMonitorExit(LongToMonitor(l)); in Java_art_Test923_rawMonitorExit()
70 jvmtiError result = jvmti_env->RawMonitorWait(LongToMonitor(l), millis); in Java_art_Test923_rawMonitorWait()
76 jvmtiError result = jvmti_env->RawMonitorNotify(LongToMonitor(l)); in Java_art_Test923_rawMonitorNotify()
82 jvmtiError result = jvmti_env->RawMonitorNotifyAll(LongToMonitor(l)); in Java_art_Test923_rawMonitorNotifyAll()
/art/test/910-methods/
Dmethods.cc40 jvmtiError result = jvmti_env->GetMethodName(id, &name, &sig, &gen); in Java_art_Test910_getMethodName()
68 jvmtiError result2 = jvmti_env->GetMethodName(id, nullptr, nullptr, nullptr); in Java_art_Test910_getMethodName()
81 jvmtiError result = jvmti_env->GetMethodDeclaringClass(id, &declaring_class); in Java_art_Test910_getMethodDeclaringClass()
94 jvmtiError result = jvmti_env->GetMethodModifiers(id, &modifiers); in Java_art_Test910_getMethodModifiers()
107 jvmtiError result = jvmti_env->GetMaxLocals(id, &max_locals); in Java_art_Test910_getMaxLocals()
120 jvmtiError result = jvmti_env->GetArgumentsSize(id, &arguments); in Java_art_Test910_getArgumentsSize()
134 jvmtiError result = jvmti_env->GetMethodLocation(id, &start, &end); in Java_art_Test910_getMethodLocationStart()
148 jvmtiError result = jvmti_env->GetMethodLocation(id, &start, &end); in Java_art_Test910_getMethodLocationEnd()
161 jvmtiError result = jvmti_env->IsMethodNative(id, &is_native); in Java_art_Test910_isMethodNative()
174 jvmtiError result = jvmti_env->IsMethodObsolete(id, &is_obsolete); in Java_art_Test910_isMethodObsolete()
[all …]
/art/test/901-hello-ti-agent/
Dbasics.cc35 jvmtiError error = env->SetEventNotificationMode(JVMTI_ENABLE, evt, nullptr); in EnableEvent()
75 jvmtiError ret = env->SetEventCallbacks(&callbacks, sizeof(callbacks)); in InstallVMEvents()
144 jvmtiError phase_result = jvmti_env->GetPhase(&current_phase); in OnLoad()
162 jvmtiError result = jvmti_env->SetVerboseFlag(flag, val); in Java_art_Test901_setVerboseFlag()
169 jvmtiError phase_result = jvmti_env->GetPhase(&current_phase); in Java_art_Test901_checkLivePhase()
176 static void CallJvmtiFunction(jvmtiEnv* env, jclass klass, jvmtiError* err) { in CallJvmtiFunction()
184 jvmtiError res = JVMTI_ERROR_NONE; in Java_art_Test901_checkUnattached()
193 jvmtiError res = jvmti_env->GetErrorName(static_cast<jvmtiError>(error), &name); in Java_art_Test901_getErrorName()
199 jvmtiError dealloc = jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(name)); in Java_art_Test901_getErrorName()
/art/test/928-jni-table/
Djni_table.cc64 jvmtiError getorig_result = jvmti_env->GetJNIFunctionTable(&gOriginalEnv); in Java_art_Test928_doJNITableTest()
71 jvmtiError getoverride_result = jvmti_env->GetJNIFunctionTable(&env_override); in Java_art_Test928_doJNITableTest()
81 jvmtiError setoverride_result = jvmti_env->SetJNIFunctionTable(env_override); in Java_art_Test928_doJNITableTest()
98 jvmtiError setoverride2_result = jvmti_env->SetJNIFunctionTable(gOriginalEnv); in Java_art_Test928_doJNITableTest()
108 jvmtiError setoverride3_result = jvmti_env->SetJNIFunctionTable(nullptr); in Java_art_Test928_doJNITableTest()
/art/test/ti-agent/
Djvmti_helper.h42 void CheckJvmtiError(jvmtiEnv* env, jvmtiError error);
46 bool JvmtiErrorToException(JNIEnv* env, jvmtiEnv* jvmtienv, jvmtiError error);
59 jvmtiError ret = env_->Deallocate(ptr); in operator()
75 static inline jvmtiError Deallocate(jvmtiEnv* env, T* mem) { in Deallocate()
80 std::ostream& operator<<(std::ostream& os, const jvmtiError& rhs);
/art/test/931-agent-thread/
Dagent_thread.cc52 jvmtiError this_thread_result = jenv->GetCurrentThread(&this_thread); in AgentMain()
58 jvmtiError info_result = jenv->GetThreadInfo(this_thread, &info); in AgentMain()
76 jvmtiError threads_result = jenv->GetAllThreads(&thread_count, &threads); in AgentMain()
112 jvmtiError info_result = jvmti_env->GetThreadInfo(nullptr, &cur_thread_info); in Java_art_Test931_testAgentThread()
141 jvmtiError main_thread_result = jvmti_env->GetCurrentThread(&main_thread); in Java_art_Test931_testAgentThread()
152 jvmtiError result = jvmti_env->RunAgentThread(thread.get(), AgentMain, &data, data.priority); in Java_art_Test931_testAgentThread()
165 jvmtiError state_result = jvmti_env->GetThreadState(thread.get(), &thread_state); in Java_art_Test931_testAgentThread()

12345