Home
last modified time | relevance | path

Searched refs:jlong (Results 1 – 25 of 87) sorted by relevance

1234

/art/test/178-app-image-native-method/
Dnative_methods.cc30 jint i1, jlong l1, jfloat f1, jdouble d1, in VerifyManyParameters()
31 jint i2, jlong l2, jfloat f2, jdouble d2, in VerifyManyParameters()
32 jint i3, jlong l3, jfloat f3, jdouble d3, in VerifyManyParameters()
33 jint i4, jlong l4, jfloat f4, jdouble d4, in VerifyManyParameters()
34 jint i5, jlong l5, jfloat f5, jdouble d5, in VerifyManyParameters()
35 jint i6, jlong l6, jfloat f6, jdouble d6, in VerifyManyParameters()
36 jint i7, jlong l7, jfloat f7, jdouble d7, in VerifyManyParameters()
37 jint i8, jlong l8, jfloat f8, jdouble d8) { in VerifyManyParameters()
59 jint i1, jlong l1, jfloat f1, jdouble d1, in Java_Test_nativeMethodWithManyParameters()
60 jint i2, jlong l2, jfloat f2, jdouble d2, in Java_Test_nativeMethodWithManyParameters()
[all …]
/art/openjdkjvmti/
Dobject_tagging.cc44 template class JvmtiWeakTable<jlong>;
47 JvmtiWeakTable<jlong>::Allow(); in Allow()
52 JvmtiWeakTable<jlong>::Broadcast(broadcast_for_checkpoint); in Broadcast()
59 std::vector<jlong> to_send; in SendDelayedFreeEvents()
64 for (jlong t : to_send) { in SendDelayedFreeEvents()
69 void ObjectTagTable::SendSingleFreeEvent(jlong tag) { in SendSingleFreeEvent()
74 bool ObjectTagTable::Set(art::ObjPtr<art::mirror::Object> obj, jlong new_tag) { in Set()
76 jlong tmp; in Set()
79 return JvmtiWeakTable<jlong>::Set(obj, new_tag); in Set()
82 bool ObjectTagTable::SetLocked(art::ObjPtr<art::mirror::Object> obj, jlong new_tag) { in SetLocked()
[all …]
Dobject_tagging.h48 class ObjectTagTable final : public JvmtiWeakTable<jlong> {
64 bool Set(art::ObjPtr<art::mirror::Object> obj, jlong tag) override
67 bool SetLocked(art::ObjPtr<art::mirror::Object> obj, jlong tag) override
71 jlong GetTagOrZero(art::ObjPtr<art::mirror::Object> obj) in GetTagOrZero()
74 jlong tmp = 0; in GetTagOrZero()
78 jlong GetTagOrZeroLocked(art::ObjPtr<art::mirror::Object> obj) in GetTagOrZeroLocked()
81 jlong tmp = 0; in GetTagOrZeroLocked()
88 void HandleNullSweep(jlong tag) override;
95 void SendSingleFreeEvent(jlong tag)
100 std::vector<jlong> null_tags_ GUARDED_BY(lock_);
Dti_allocator.h48 static jvmtiError Allocate(jvmtiEnv* env, jlong size, unsigned char** mem_ptr);
50 static jvmtiError GetGlobalJvmtiAllocationState(jvmtiEnv* env, jlong* total_allocated);
54 static unsigned char* AllocateImpl(jlong size);
56 static std::atomic<jlong> allocated;
Dti_allocator.cc48 std::atomic<jlong> AllocUtil::allocated;
51 jlong* allocated_ptr) { in GetGlobalJvmtiAllocationState()
60 jlong size, in Allocate()
75 unsigned char* AllocUtil::AllocateImpl(jlong size) { in AllocateImpl()
Dti_timers.cc64 info_ptr->max_value = static_cast<jlong>(std::numeric_limits<uint64_t>::max()); in GetTimerInfo()
72 jvmtiError TimerUtil::GetTime(jvmtiEnv* env ATTRIBUTE_UNUSED, jlong* nanos_ptr) { in GetTime()
87 *nanos_ptr = static_cast<jlong>(t.tv_sec)*1000000000LL + static_cast<jlong>(t.tv_usec)*1000LL; in GetTime()
/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()
51 jlong size, in HeapIterationCallback()
52 jlong* tag_ptr, in HeapIterationCallback()
87 jint Handle(jlong class_tag ATTRIBUTE_UNUSED, in Java_art_Test906_iterateThroughHeapCount()
88 jlong size ATTRIBUTE_UNUSED, in Java_art_Test906_iterateThroughHeapCount()
89 jlong* tag_ptr ATTRIBUTE_UNUSED, in Java_art_Test906_iterateThroughHeapCount()
123 jint Handle(jlong class_tag, jlong size, jlong* tag_ptr, jint length) override { in Java_art_Test906_iterateThroughHeapData()
132 std::vector<jlong> class_tags_; in Java_art_Test906_iterateThroughHeapData()
133 std::vector<jlong> sizes_; in Java_art_Test906_iterateThroughHeapData()
[all …]
/art/test/923-monitors/
Dmonitors.cc32 static jlong MonitorToLong(jrawMonitorID id) { in MonitorToLong()
33 return static_cast<jlong>(reinterpret_cast<uintptr_t>(id)); in MonitorToLong()
36 static jrawMonitorID LongToMonitor(jlong l) { in LongToMonitor()
40 extern "C" JNIEXPORT jlong JNICALL Java_art_Test923_createRawMonitor( in Java_art_Test923_createRawMonitor()
51 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jlong l) { in Java_art_Test923_destroyRawMonitor()
57 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jlong l) { in Java_art_Test923_rawMonitorEnter()
63 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jlong l) { in Java_art_Test923_rawMonitorExit()
69 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jlong l, jlong millis) { in Java_art_Test923_rawMonitorWait()
75 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jlong l) { in Java_art_Test923_rawMonitorNotify()
81 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jlong l) { in Java_art_Test923_rawMonitorNotifyAll()
/art/runtime/native/
Dsun_misc_Unsafe.cc41 static jboolean Unsafe_compareAndSwapInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapInt()
54 static jboolean Unsafe_compareAndSwapLong(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapLong()
55 jlong expectedValue, jlong newValue) { in Unsafe_compareAndSwapLong()
65 static jboolean Unsafe_compareAndSwapObject(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapObject()
93 static jint Unsafe_getInt(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getInt()
99 static jint Unsafe_getIntVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getIntVolatile()
105 static void Unsafe_putInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, jint newValue) { in Unsafe_putInt()
112 static void Unsafe_putIntVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_putIntVolatile()
120 static void Unsafe_putOrderedInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_putOrderedInt()
130 static jlong Unsafe_getLong(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getLong()
[all …]
/art/test/1909-per-agent-tls/
Dagent_tls.cc29 jlong jvmti_env_ptr, in Java_art_Test1909_setTLS()
31 jlong data) { in Java_art_Test1909_setTLS()
38 extern "C" JNIEXPORT jlong JNICALL Java_art_Test1909_getTLS(JNIEnv* env, in Java_art_Test1909_getTLS()
40 jlong jvmti_env_ptr, in Java_art_Test1909_getTLS()
47 return static_cast<jlong>(reinterpret_cast<intptr_t>(res)); in Java_art_Test1909_getTLS()
52 jlong jvmti_env_ptr) { in Java_art_Test1909_destroyJvmtiEnv()
58 extern "C" JNIEXPORT jlong Java_art_Test1909_newJvmtiEnv(JNIEnv* env, jclass) { in Java_art_Test1909_newJvmtiEnv()
71 return static_cast<jlong>(reinterpret_cast<intptr_t>(new_env)); in Java_art_Test1909_newJvmtiEnv()
/art/benchmark/scoped-primitive-array/
Dscoped_primitive_array.cc20 extern "C" JNIEXPORT jlong JNICALL Java_ScopedPrimitiveArrayBenchmark_measureByteArray( in Java_ScopedPrimitiveArrayBenchmark_measureByteArray()
22 jlong ret = 0; in Java_ScopedPrimitiveArrayBenchmark_measureByteArray()
30 extern "C" JNIEXPORT jlong JNICALL Java_ScopedPrimitiveArrayBenchmark_measureShortArray( in Java_ScopedPrimitiveArrayBenchmark_measureShortArray()
32 jlong ret = 0; in Java_ScopedPrimitiveArrayBenchmark_measureShortArray()
40 extern "C" JNIEXPORT jlong JNICALL Java_ScopedPrimitiveArrayBenchmark_measureIntArray( in Java_ScopedPrimitiveArrayBenchmark_measureIntArray()
42 jlong ret = 0; in Java_ScopedPrimitiveArrayBenchmark_measureIntArray()
50 extern "C" JNIEXPORT jlong JNICALL Java_ScopedPrimitiveArrayBenchmark_measureLongArray( in Java_ScopedPrimitiveArrayBenchmark_measureLongArray()
52 jlong ret = 0; in Java_ScopedPrimitiveArrayBenchmark_measureLongArray()
/art/test/913-heaps/
Dheaps.cc47 static constexpr jlong kThreadTag = 3000;
58 jlong size; // Size as reported by GetObjectSize.
59 jlong serial; // Computed serial that should be printed instead of the size.
63 static std::map<jlong, ClassData> sClassData;
66 static constexpr jlong kClassDataSerialBase = 123456780000;
71 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jlong tag, jobject obj) { in Java_art_Test913_registerClass()
83 sClassData.insert(std::pair<jlong, ClassData>(tag, data)); in Java_art_Test913_registerClass()
93 jlong class_tag,
94 jlong referrer_class_tag,
95 jlong size,
[all …]
/art/test/1900-track-alloc/
Dalloc.cc27 using GetGlobalState = jvmtiError(*)(jvmtiEnv* env, jlong* allocated);
46 jlong jvmti_env_ptr, in Java_art_Test1900_doDeallocate()
47 jlong ptr) { in Java_art_Test1900_doDeallocate()
54 extern "C" JNIEXPORT jlong JNICALL Java_art_Test1900_doAllocate(JNIEnv* env, in Java_art_Test1900_doAllocate()
56 jlong jvmti_env_ptr, in Java_art_Test1900_doAllocate()
57 jlong size) { in Java_art_Test1900_doAllocate()
62 return static_cast<jlong>(reinterpret_cast<intptr_t>(res)); in Java_art_Test1900_doAllocate()
65 extern "C" JNIEXPORT jlong JNICALL Java_art_Test1900_getAmountAllocated(JNIEnv* env, jclass) { in Java_art_Test1900_getAmountAllocated()
76 jlong allocated = -1; in Java_art_Test1900_getAmountAllocated()
87 extern "C" JNIEXPORT jlong JNICALL Java_art_Test1900_getDefaultJvmtiEnv(JNIEnv*, jclass) { in Java_art_Test1900_getDefaultJvmtiEnv()
[all …]
/art/test/903-hello-tagging/
Dtagging.cc42 const jlong* tag_ptr = scoped_array.get(); in Java_art_Test903_getTaggedObjects()
45 tag_ptr = reinterpret_cast<const jlong*>(1); in Java_art_Test903_getTaggedObjects()
51 jlong* result_tag_array; in Java_art_Test903_getTaggedObjects()
52 jlong** result_tag_array_ptr = returnTags == JNI_TRUE ? &result_tag_array : nullptr; in Java_art_Test903_getTaggedObjects()
124 static void SetTag(jvmtiEnv* env, jobject obj, jlong tag) { in SetTag()
129 static jlong GetTag(jvmtiEnv* env, jobject obj) { in GetTag()
130 jlong tag; in GetTag()
137 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject obj, jlong base_tag, jint count) { in Java_art_Test903_testTagsInDifferentEnvs()
147 std::unique_ptr<jlong[]> vals = std::unique_ptr<jlong[]>(new jlong[count]); in Java_art_Test903_testTagsInDifferentEnvs()
/art/test/905-object-free/
Dtracking_free.cc40 static std::vector<jlong> collected_tags1;
42 static std::vector<jlong> collected_tags2;
46 static void JNICALL ObjectFree1(jvmtiEnv* ti_env, jlong tag) { in ObjectFree1()
52 static void JNICALL ObjectFree2(jvmtiEnv* ti_env, jlong tag) { in ObjectFree2()
95 std::vector<jlong>& tags = (index == 0) ? collected_tags1 : collected_tags2; in Java_art_Test905_getCollectedTags()
107 extern "C" JNIEXPORT jlong JNICALL Java_art_Test905_getTag2( in Java_art_Test905_getTag2()
109 jlong tag; in Java_art_Test905_getTag2()
116 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject obj, jlong tag) { in Java_art_Test905_setTag2()
/art/test/004-UnsafeTest/
Dunsafe_test.cc41 extern "C" JNIEXPORT jlong JNICALL Java_Main_unsafeTestMalloc(JNIEnv*, jclass, jlong size) { in Java_Main_unsafeTestMalloc()
44 return reinterpret_cast64<jlong>(memory); in Java_Main_unsafeTestMalloc()
47 extern "C" JNIEXPORT void JNICALL Java_Main_unsafeTestFree(JNIEnv*, jclass, jlong memory) { in Java_Main_unsafeTestFree()
/art/test/ti-agent/
Dagent_common.cc28 JNIEnv* env, jclass, jobject obj, jlong tag) { in Java_art_Main_setTag()
33 extern "C" JNIEXPORT jlong JNICALL Java_art_Main_getTag(JNIEnv* env, jclass, jobject obj) { in Java_art_Main_getTag()
34 jlong tag = 0; in Java_art_Main_getTag()
/art/openjdkjvmti/include/
Djvmti.h74 typedef jlong jlocation;
481 (jlong class_tag, jlong size, jlong* tag_ptr, jint length, void* user_data);
484 …mtiHeapReferenceInfo* reference_info, jlong class_tag, jlong referrer_class_tag, jlong size, jlong
487 …(jvmtiHeapReferenceKind kind, const jvmtiHeapReferenceInfo* info, jlong object_class_tag, jlong* o…
490 …(jlong class_tag, jlong size, jlong* tag_ptr, jint element_count, jvmtiPrimitiveType element_type,…
493 …(jlong class_tag, jlong size, jlong* tag_ptr, const jchar* value, jint value_length, void* user_da…
499 (jlong class_tag, jlong size, jlong* tag_ptr, void* user_data);
502 (jvmtiHeapRootKind root_kind, jlong class_tag, jlong size, jlong* tag_ptr, void* user_data);
505 …(jvmtiHeapRootKind root_kind, jlong class_tag, jlong size, jlong* tag_ptr, jlong thread_tag, jint …
508 …(jvmtiObjectReferenceKind reference_kind, jlong class_tag, jlong size, jlong* tag_ptr, jlong refer…
[all …]
/art/test/1974-resize-array/
Dresize_array.cc129 jlong r) { in Java_art_Test1974_ReadJniRef()
133 extern "C" JNIEXPORT jlong JNICALL
135 return static_cast<jlong>(reinterpret_cast<intptr_t>(env->NewWeakGlobalRef(r))); in Java_art_Test1974_GetWeakGlobalJniRef()
138 extern "C" JNIEXPORT jlong JNICALL Java_art_Test1974_GetGlobalJniRef(JNIEnv* env, in Java_art_Test1974_GetGlobalJniRef()
141 return static_cast<jlong>(reinterpret_cast<intptr_t>(env->NewGlobalRef(r))); in Java_art_Test1974_GetGlobalJniRef()
145 Java_art_Test1974_GetObjectsWithTag(JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jlong tag) { in Java_art_Test1974_GetObjectsWithTag()
180 std::vector<jlong> freed_tags_;
187 [](jvmtiEnv* jvmti, jlong tag) { in Java_art_Test1974_StartCollectFrees()
217 using ObsoleteEvent = void (*)(jvmtiEnv * env, jlong * obsolete, jlong * non_obsolete); in Java_art_Test1974_StartAssignObsoleteIncrementedId()
218 ObsoleteEvent oe = [](jvmtiEnv* env ATTRIBUTE_UNUSED, jlong* obsolete, jlong* non_obsolete) { in Java_art_Test1974_StartAssignObsoleteIncrementedId()
/art/test/1939-proxy-frames/
Dlocal_instance.cc41 jlong loc = -1; in Java_art_Test1939_GetFrameMethod()
54 extern "C" JNIEXPORT jlong Java_art_Test1939_GetFrameLocation(JNIEnv* env, in Java_art_Test1939_GetFrameLocation()
59 jlong loc = -1; in Java_art_Test1939_GetFrameLocation()
/art/test/2005-pause-all-redefine-multithreaded/
Dpause-all.cc34 static constexpr jlong kRedefinedObjectTag = 0xDEADBEEF;
55 [](jlong class_tag ATTRIBUTE_UNUSED, in Java_art_Test2005_UpdateFieldValuesAndResumeThreads()
56 jlong size ATTRIBUTE_UNUSED, in Java_art_Test2005_UpdateFieldValuesAndResumeThreads()
57 jlong* tag_ptr, in Java_art_Test2005_UpdateFieldValuesAndResumeThreads()
/art/test/1941-dispose-stress/
Ddispose_stress.cc44 extern "C" JNIEXPORT jlong JNICALL Java_art_Test1941_AllocEnv(JNIEnv* env, jclass) { in Java_art_Test1941_AllocEnv()
57 return static_cast<jlong>(reinterpret_cast<intptr_t>(new_env)); in Java_art_Test1941_AllocEnv()
62 jlong jvmti_env_ptr) { in Java_art_Test1941_FreeEnv()
/art/test/1934-jvmti-signal-thread/
Dsignal_threads.cc44 extern "C" JNIEXPORT jlong JNICALL Java_art_Test1934_allocNativeMonitor(JNIEnv* env, jclass) { in Java_art_Test1934_allocNativeMonitor()
66 return static_cast<jlong>(reinterpret_cast<intptr_t>(mon)); in Java_art_Test1934_allocNativeMonitor()
71 jlong id) { in Java_art_Test1934_nativeWaitForOtherThread()
105 jlong id, in Java_art_Test1934_nativeDoInterleaved()
148 extern "C" JNIEXPORT void Java_art_Test1934_destroyNativeMonitor(JNIEnv*, jclass, jlong id) { in Java_art_Test1934_destroyNativeMonitor()
/art/test/1970-force-early-return-long/
Dforce_early_return_long.cc45 jlong JNICALL Java_art_Test1970_00024NativeCalledObject_calledFunction( in Java_art_Test1970_00024NativeCalledObject_calledFunction()
51 jlong res = static_cast<jlong>(env->GetIntField(thiz, cnt)); in Java_art_Test1970_00024NativeCalledObject_calledFunction()
/art/test/1975-hello-structural-transformation/
Dstructural_transform.cc47 jlong fid_val; in Java_art_Test1975_readNativeFields()
70 jlong lfid = static_cast<jlong>(reinterpret_cast<intptr_t>(fid)); in Java_art_Test1975_getNativeFields()

1234