Home
last modified time | relevance | path

Searched refs:jint (Results 1 – 25 of 177) sorted by relevance

12345678

/art/openjdkjvm/
DOpenjdkJvm.cc69 JNIEXPORT jint JVM_Open(const char* fname, jint flags, jint mode) { in JVM_Open()
95 JNIEXPORT jint JVM_Close(jint fd) { in JVM_Close()
101 JNIEXPORT jint JVM_Read(jint fd, char* buf, jint nbytes) { in JVM_Read()
106 JNIEXPORT jint JVM_Write(jint fd, char* buf, jint nbytes) { in JVM_Write()
111 JNIEXPORT jlong JVM_Lseek(jint fd, jlong offset, jint whence) { in JVM_Lseek()
145 JNIEXPORT jint JVM_RawMonitorEnter(void* mon) { in JVM_RawMonitorEnter()
159 JNIEXPORT jint JVM_GetLastErrorString(char* buf, int len) { in JVM_GetLastErrorString()
196 JNIEXPORT jint JVM_Sync(jint fd) { in JVM_Sync()
212 JNIEXPORT jint JVM_Socket(jint domain, jint type, jint protocol) { in JVM_Socket()
216 JNIEXPORT jint JVM_InitializeSocketLibrary() { in JVM_InitializeSocketLibrary()
[all …]
/art/openjdkjvmti/
Dti_method.h50 jint* count_ptr,
53 static jvmtiError GetArgumentsSize(jvmtiEnv* env, jmethodID method, jint* size_ptr);
55 static jvmtiError GetMaxLocals(jvmtiEnv* env, jmethodID method, jint* max_ptr);
74 jint* modifiers_ptr);
78 jint* entry_count_ptr,
86 jint* entry_count_ptr,
90 static jvmtiError SetLocalVariable(jvmtiEnv* env, jthread thread, jint depth, jint slot, T data);
93 static jvmtiError GetLocalVariable(jvmtiEnv* env, jthread thread, jint depth, jint slot, T* data);
95 static jvmtiError GetLocalInstance(jvmtiEnv* env, jthread thread, jint depth, jobject* data);
100 jint depth,
[all …]
Dti_stack.h47 jint max_frame_count,
49 jint* thread_count_ptr)
52 static jvmtiError GetFrameCount(jvmtiEnv* env, jthread thread, jint* count_ptr);
56 jint depth,
62 jint start_depth,
63 jint max_frame_count,
65 jint* count_ptr);
68 jint thread_count,
70 jint max_frame_count,
75 jint* info_cnt_ptr,
[all …]
Dti_class.h49 jint* field_count_ptr,
54 jint* method_count_ptr,
59 jint* interface_count_ptr,
62 static jvmtiError GetClassModifiers(jvmtiEnv* env, jclass klass, jint* modifiers_ptr);
69 static jvmtiError GetClassStatus(jvmtiEnv* env, jclass klass, jint* status_ptr);
75 jint* class_count_ptr,
80 jint* count_ptr,
88 jint* minor_version_ptr,
89 jint* major_version_ptr);
Dti_ddms.h43 jint type_in,
44 jint length_in,
46 /*out*/ jint* type_out,
47 /*out*/ jint* data_length_out,
Dti_heap.h31 jvmtiError GetLoadedClasses(jvmtiEnv* env, jint* class_count_ptr, jclass** classes_ptr);
40 jint heap_filter,
46 jint heap_filter,
67 static jvmtiError JNICALL GetObjectHeapId(jvmtiEnv* env, jlong tag, jint* heap_id, ...);
68 static jvmtiError JNICALL GetHeapName(jvmtiEnv* env, jint heap_id, char** heap_name, ...);
71 jint heap_filter,
DOpenjdkJvmTi.cc143 static jvmtiError GetThreadState(jvmtiEnv* env, jthread thread, jint* thread_state_ptr) { in GetThreadState()
153 static jvmtiError GetAllThreads(jvmtiEnv* env, jint* threads_count_ptr, jthread** threads_ptr) { in GetAllThreads()
165 jint request_count, in SuspendThreadList()
180 jint request_count, in ResumeThreadList()
207 jint* owned_monitor_count_ptr, in GetOwnedMonitorInfo()
219 jint* monitor_info_count_ptr, in GetOwnedMonitorStackDepthInfo()
241 jint priority) { in RunAgentThread()
257 jint* group_count_ptr, in GetTopThreadGroups()
272 jint* thread_count_ptr, in GetThreadGroupChildren()
274 jint* group_count_ptr, in GetThreadGroupChildren()
[all …]
/art/test/ti-agent/
Dlocals_helper.cc29 static void DeallocateContents(jvmtiLocalVariableEntry* vars, jint nvars) { in DeallocateContents()
30 for (jint i = 0; i < nvars; i++) { in DeallocateContents()
49 jint depth, in Java_art_Locals_SetLocalVariableObject()
50 jint slot, in Java_art_Locals_SetLocalVariableObject()
58 jint depth, in Java_art_Locals_SetLocalVariableDouble()
59 jint slot, in Java_art_Locals_SetLocalVariableDouble()
67 jint depth, in Java_art_Locals_SetLocalVariableFloat()
68 jint slot, in Java_art_Locals_SetLocalVariableFloat()
76 jint depth, in Java_art_Locals_SetLocalVariableLong()
77 jint slot, in Java_art_Locals_SetLocalVariableLong()
[all …]
Dcommon_load.cc36 jint OnLoad(JavaVM* vm, char* options, void* reserved);
40 jint OnLoad(JavaVM* vm, char* options, void* reserved);
44 jint OnLoad(JavaVM* vm, char* options, void* reserved);
49 using OnLoad = jint (*)(JavaVM* vm, char* options, void* reserved);
50 using OnAttach = jint (*)(JavaVM* vm, char* options, void* reserved);
59 static jint MinimalOnLoad(JavaVM* vm, in MinimalOnLoad()
121 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* vm, char* options, void* reserved) { in Agent_OnLoad()
145 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach()
/art/openjdkjvmti/include/
Djvmti.h49 JNIEXPORT jint JNICALL
52 JNIEXPORT jint JNICALL
480 typedef jint (JNICALL *jvmtiHeapIterationCallback)
481 (jlong class_tag, jlong size, jlong* tag_ptr, jint length, void* user_data);
483 typedef jint (JNICALL *jvmtiHeapReferenceCallback)
484 … referrer_class_tag, jlong size, jlong* tag_ptr, jlong* referrer_tag_ptr, jint length, void* user_…
486 typedef jint (JNICALL *jvmtiPrimitiveFieldCallback)
489 typedef jint (JNICALL *jvmtiArrayPrimitiveValueCallback)
490 …(jlong class_tag, jlong size, jlong* tag_ptr, jint element_count, jvmtiPrimitiveType element_type,…
492 typedef jint (JNICALL *jvmtiStringPrimitiveValueCallback)
[all …]
/art/test/911-get-stack-trace/
Dstack_trace.cc41 static jint FindLineNumber(jint line_number_count, in FindLineNumber()
48 jint line_number = -1; in FindLineNumber()
49 for (jint i = 0; i != line_number_count; ++i) { in FindLineNumber()
60 jint count) { in TranslateJvmtiFrameInfoArray()
61 auto callback = [&](jint method_index) -> jobjectArray { in TranslateJvmtiFrameInfoArray()
72 jint line_number_count; in TranslateJvmtiFrameInfoArray()
90 auto inner_callback = [&](jint component_index) -> jstring { in TranslateJvmtiFrameInfoArray()
99 jint line_number = FindLineNumber(line_number_count, in TranslateJvmtiFrameInfoArray()
129 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thread, jint start, jint max) { in Java_art_PrintThread_getStackTrace()
132 jint count; in Java_art_PrintThread_getStackTrace()
[all …]
/art/test/906-iterate-heap/
Diterate_heap.cc47 virtual jint Handle(jlong class_tag, jlong size, jlong* tag_ptr, jint length) = 0;
50 static jint JNICALL HeapIterationCallback(jlong class_tag, in HeapIterationCallback()
53 jint length, in HeapIterationCallback()
59 static bool Run(JNIEnv* env, jint heap_filter, jclass klass_filter, IterationConfig* config) { in Run()
74 extern "C" JNIEXPORT jint JNICALL Java_art_Test906_iterateThroughHeapCount( in Java_art_Test906_iterateThroughHeapCount()
77 jint heap_filter, in Java_art_Test906_iterateThroughHeapCount()
79 jint stop_after) { in Java_art_Test906_iterateThroughHeapCount()
82 CountIterationConfig(jint _counter, jint _stop_after) in Java_art_Test906_iterateThroughHeapCount()
87 jint Handle(jlong class_tag ATTRIBUTE_UNUSED, in Java_art_Test906_iterateThroughHeapCount()
90 jint length ATTRIBUTE_UNUSED) override { in Java_art_Test906_iterateThroughHeapCount()
[all …]
/art/runtime/native/
Djava_lang_System.cc50 static void System_arraycopy(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, jobject javaDst, in System_arraycopy()
51 jint dstPos, jint length) { in System_arraycopy()
53 const jint count = length; in System_arraycopy()
175 inline void System_arraycopyTUnchecked(JNIEnv* env, jobject javaSrc, jint srcPos, in System_arraycopyTUnchecked()
176 jobject javaDst, jint dstPos, jint count) { in System_arraycopyTUnchecked()
189 static void System_arraycopyCharUnchecked(JNIEnv* env, jclass, jcharArray javaSrc, jint srcPos, in System_arraycopyCharUnchecked()
190 jcharArray javaDst, jint dstPos, jint count) { in System_arraycopyCharUnchecked()
195 static void System_arraycopyByteUnchecked(JNIEnv* env, jclass, jbyteArray javaSrc, jint srcPos, in System_arraycopyByteUnchecked()
196 jbyteArray javaDst, jint dstPos, jint count) { in System_arraycopyByteUnchecked()
201 static void System_arraycopyShortUnchecked(JNIEnv* env, jclass, jshortArray javaSrc, jint srcPos, in System_arraycopyShortUnchecked()
[all …]
Dlibcore_util_CharsetUtils.cc106 jint mSize;
107 jint mOffset;
114 static void CharsetUtils_asciiBytesToChars(JNIEnv* env, jclass, jbyteArray javaBytes, jint offset, in CharsetUtils_asciiBytesToChars()
115 jint length, jcharArray javaChars) { in CharsetUtils_asciiBytesToChars()
135 jint offset, jint length, jcharArray javaChars) { in CharsetUtils_isoLatin1BytesToChars()
157 static jbyteArray charsToBytes(JNIEnv* env, jstring java_string, jint offset, jint length, in charsToBytes()
184 static jbyteArray CharsetUtils_toAsciiBytes(JNIEnv* env, jclass, jstring java_string, jint offset, in CharsetUtils_toAsciiBytes()
185 jint length) { in CharsetUtils_toAsciiBytes()
190 jint offset, jint length) { in CharsetUtils_toIsoLatin1Bytes()
194 static jbyteArray CharsetUtils_toUtf8Bytes(JNIEnv* env, jclass, jstring java_string, jint offset, in CharsetUtils_toUtf8Bytes()
[all …]
/art/test/988-method-trace/
Dtrace_fib.cc22 extern "C" JNIEXPORT jint JNICALL Java_art_Test988_nativeFibonacci(JNIEnv* env, jclass, jint n) { in Java_art_Test988_nativeFibonacci()
29 jint x = 1; in Java_art_Test988_nativeFibonacci()
30 jint y = 1; in Java_art_Test988_nativeFibonacci()
31 for (jint i = 3; i <= n; i++) { in Java_art_Test988_nativeFibonacci()
32 jint z = x + y; in Java_art_Test988_nativeFibonacci()
/art/benchmark/jobject-benchmark/
Djobject_benchmark.cc27 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeAddRemoveLocal()
31 for (jint i = 0; i < reps; ++i) { in Java_JObjectBenchmark_timeAddRemoveLocal()
38 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeDecodeLocal()
43 for (jint i = 0; i < reps; ++i) { in Java_JObjectBenchmark_timeDecodeLocal()
50 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeAddRemoveGlobal()
54 for (jint i = 0; i < reps; ++i) { in Java_JObjectBenchmark_timeAddRemoveGlobal()
61 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeDecodeGlobal()
66 for (jint i = 0; i < reps; ++i) { in Java_JObjectBenchmark_timeDecodeGlobal()
73 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeAddRemoveWeakGlobal()
77 for (jint i = 0; i < reps; ++i) { in Java_JObjectBenchmark_timeAddRemoveWeakGlobal()
[all …]
/art/compiler/jni/
Djni_compiler_test.cc44 extern "C" JNIEXPORT jint JNICALL Java_MyClassNatives_bar(JNIEnv*, jobject, jint count) { in Java_MyClassNatives_bar()
48 extern "C" JNIEXPORT jint JNICALL Java_MyClassNatives_sbar(JNIEnv*, jclass, jint count) { in Java_MyClassNatives_sbar()
665 jint result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 24); in JNI_TEST()
681 jint result = env_->CallStaticIntMethod(jklass_, jmethod_, 42); in JNI_TEST_NORMAL_ONLY()
689 jint Java_MyClassNatives_fooI(JNIEnv*, jobject, jint x) { in Java_MyClassNatives_fooI()
699 jint result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 42); in CompileAndRunIntMethodImpl()
703 EXPECT_EQ(static_cast<jint>(0xCAFED00D), result); in CompileAndRunIntMethodImpl()
712 jint Java_MyClassNatives_fooII(JNIEnv*, jobject, jint x, jint y) { in Java_MyClassNatives_fooII()
722 jint result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 99, 10); in CompileAndRunIntIntMethodImpl()
727 EXPECT_EQ(static_cast<jint>(0xCAFEBABE - 0xCAFED00D), result); in CompileAndRunIntIntMethodImpl()
[all …]
/art/tools/jvmti-agents/wrapagentproperties/
Dwrapagentproperties.cc39 using AgentLoadFunction = jint (*)(ProxyJavaVM*, const char*, void*);
40 using AgentUnloadFunction = jint (*)(JavaVM*);
51 static jint CreateJvmtiEnv(ProxyJavaVM* vm, void** out_env, jint version);
80 static jint WrapDestroyJavaVM(ProxyJavaVM* vm) { in WrapDestroyJavaVM()
83 static jint WrapAttachCurrentThread(ProxyJavaVM* vm, JNIEnv** env, void* res) { in WrapAttachCurrentThread()
86 static jint WrapDetachCurrentThread(ProxyJavaVM* vm) { in WrapDetachCurrentThread()
89 static jint WrapAttachCurrentThreadAsDaemon(ProxyJavaVM* vm, JNIEnv** env, void* res) { in WrapAttachCurrentThreadAsDaemon()
93 static jint WrapGetEnv(ProxyJavaVM* vm, void** out_env, jint version) { in WrapGetEnv()
113 out->DestroyJavaVM = reinterpret_cast<jint (*)(JavaVM*)>(WrapDestroyJavaVM); in CreateInvokeInterface()
115 reinterpret_cast<jint(*)(JavaVM*, JNIEnv**, void*)>(WrapAttachCurrentThread); in CreateInvokeInterface()
[all …]
/art/test/1940-ddms-ext/
Dddm_ext.cc29 jint type_in,
30 jint len_in,
32 jint* type_out,
33 jint* len_data_out,
72 jint type = env->GetIntField(chunk, type_field_id); in Java_art_Test1940_processChunk()
73 jint off = env->GetIntField(chunk, offset_field_id); in Java_art_Test1940_processChunk()
74 jint len = env->GetIntField(chunk, length_field_id); in Java_art_Test1940_processChunk()
81 jint out_type; in Java_art_Test1940_processChunk()
82 jint out_size; in Java_art_Test1940_processChunk()
108 static void DeallocParams(jvmtiParamInfo* params, jint n_params) { in DeallocParams()
[all …]
/art/tools/jvmti-agents/dump-jvmti-state/
Ddump-jvmti.cc27 static constexpr jint kArtTiVersion = JVMTI_VERSION_1_2 | 0x40000000;
38 static void DeallocParams(jvmtiEnv* env, jvmtiParamInfo* params, jint n_params) { in DeallocParams()
39 for (jint i = 0; i < n_params; i++) { in DeallocParams()
47 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv()
48 jint res = 0; in SetupJvmtiEnv()
62 jint n_ext = 0; in SetupJvmtiEnv()
67 for (jint i = 0; i < n_ext; i++) { in SetupJvmtiEnv()
91 static jint AgentStart(JavaVM* vm, char* options ATTRIBUTE_UNUSED, void* reserved ATTRIBUTE_UNUSED)… in AgentStart()
106 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach()
111 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, char* options, void* reserved) { in Agent_OnLoad()
/art/test/913-heaps/
Dheaps.cc91 virtual jint Handle(jvmtiHeapReferenceKind reference_kind,
98 jint length,
102 static jint JNICALL HeapReferenceCallback(jvmtiHeapReferenceKind reference_kind, in HeapReferenceCallback()
109 jint length, in HeapReferenceCallback()
124 jint heap_filter, in Run()
143 jint heap_filter, in Java_art_Test913_followReferences()
146 jint stop_after, in Java_art_Test913_followReferences()
147 jint follow_set, in Java_art_Test913_followReferences()
151 PrintIterationConfig(jint _stop_after, jint _follow_set) in Java_art_Test913_followReferences()
157 jint Handle(jvmtiHeapReferenceKind reference_kind, in Java_art_Test913_followReferences()
[all …]
/art/test/925-threadgroups/
Dthreadgroups.cc41 jint group_count; in Java_art_Test925_getTopThreadGroups()
47 auto callback = [&](jint index) -> jobject { in Java_art_Test925_getTopThreadGroups()
65 auto callback = [&](jint index) -> jobject { in Java_art_Test925_getThreadGroupInfo()
91 jint thread_count; in Java_art_Test925_getThreadGroupChildren()
93 jint threadgroup_count; in Java_art_Test925_getThreadGroupChildren()
105 auto callback = [&](jint component_index) -> jobject { in Java_art_Test925_getThreadGroupChildren()
108 auto inner_callback = [&](jint index) { in Java_art_Test925_getThreadGroupChildren()
114 auto inner_callback = [&](jint index) { in Java_art_Test925_getThreadGroupChildren()
/art/test/900-hello-plugin/
Dload_unload.cc29 constexpr jint TEST_900_ENV_VERSION_NUMBER = 0x900FFFFF;
33 static jint GetEnvHandler(JavaVMExt* vm ATTRIBUTE_UNUSED, void** new_env, jint version) { in GetEnvHandler()
54 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* vm, in Agent_OnLoad()
62 jint res = vm->GetEnv(reinterpret_cast<void**>(&env), TEST_900_ENV_VERSION_NUMBER); in Agent_OnLoad()
/art/test/908-gc-start-finish/
Dgc_callbacks.cc73 extern "C" JNIEXPORT jint JNICALL Java_art_Test908_getGcStarts(JNIEnv* env ATTRIBUTE_UNUSED, in Java_art_Test908_getGcStarts()
75 jint result = static_cast<jint>(starts); in Java_art_Test908_getGcStarts()
80 extern "C" JNIEXPORT jint JNICALL Java_art_Test908_getGcFinishes(JNIEnv* env ATTRIBUTE_UNUSED, in Java_art_Test908_getGcFinishes()
82 jint result = static_cast<jint>(finishes); in Java_art_Test908_getGcFinishes()
/art/test/1946-list-descriptors/
Ddescriptors.cc27 using GetDescriptorList = jvmtiError(*)(jvmtiEnv* env, jobject loader, jint* cnt, char*** descs);
44 static void Cleanup(char** data, jint cnt) { in Cleanup()
45 for (jint i = 0; i < cnt; i++) { in Cleanup()
64 jint cnt = -1; in Java_art_Test1946_getClassloaderDescriptors()
79 for (jint i = 0; i < cnt; i++) { in Java_art_Test1946_getClassloaderDescriptors()
90 static void DeallocParams(jvmtiParamInfo* params, jint n_params) { in DeallocParams()
91 for (jint i = 0; i < n_params; i++) { in DeallocParams()
114 jint n_ext = 0; in Java_art_Test1946_initializeTest()
119 for (jint i = 0; i < n_ext; i++) { in Java_art_Test1946_initializeTest()

12345678