/art/test/178-app-image-native-method/ |
D | native_methods.cc | 30 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/ |
D | object_tagging.cc | 44 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 …]
|
D | object_tagging.h | 48 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_);
|
D | ti_allocator.h | 48 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;
|
D | ti_allocator.cc | 48 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()
|
D | ti_timers.cc | 64 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/ |
D | iterate_heap.cc | 47 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/runtime/native/ |
D | jdk_internal_misc_Unsafe.cc | 44 bool ValidJniSizeArgument(jlong size) REQUIRES_SHARED(Locks::mutator_lock_) { in ValidJniSizeArgument() 45 const jlong maybe_truncated_size = static_cast<jlong>(static_cast<size_t>(size)); in ValidJniSizeArgument() 55 static jboolean Unsafe_compareAndSetInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSetInt() 68 static jboolean Unsafe_compareAndSwapInt(JNIEnv* env, jobject obj, jobject javaObj, jlong offset, in Unsafe_compareAndSwapInt() 76 static jboolean Unsafe_compareAndSetLong(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSetLong() 77 jlong expectedValue, jlong newValue) { in Unsafe_compareAndSetLong() 87 static jboolean Unsafe_compareAndSwapLong(JNIEnv* env, jobject obj, jobject javaObj, jlong offset, in Unsafe_compareAndSwapLong() 88 jlong expectedValue, jlong newValue) { in Unsafe_compareAndSwapLong() 98 jlong offset, in Unsafe_compareAndSetReference() 127 static jboolean Unsafe_compareAndSwapObject(JNIEnv* env, jobject obj, jobject javaObj, jlong offset, in Unsafe_compareAndSwapObject() [all …]
|
D | sun_misc_Unsafe.cc | 41 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 …]
|
D | libcore_io_Memory.cc | 52 static T cast(jlong address) { in cast() 85 static inline void swapLongs(jlong* dstLongs, const jlong* srcLongs, size_t count) { in swapLongs() 97 JNIEnv* env, jclass, jlong srcAddress, jbyteArray dst, jint dstOffset, jint byteCount) { in Memory_peekByteArray() 125 jlong srcAddress, in Memory_peekCharArray() 135 jlong srcAddress, in Memory_peekDoubleArray() 140 PEEKER(jdouble, Double, jlong, swapLongs); in Memory_peekDoubleArray() 145 jlong srcAddress, in Memory_peekFloatArray() 155 jlong srcAddress, in Memory_peekIntArray() 165 jlong srcAddress, in Memory_peekLongArray() 170 PEEKER(jlong, Long, jlong, swapLongs); in Memory_peekLongArray() [all …]
|
/art/test/923-monitors/ |
D | monitors.cc | 32 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/test/1909-per-agent-tls/ |
D | agent_tls.cc | 29 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/ |
D | scoped_primitive_array.cc | 20 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/ |
D | heaps.cc | 47 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/ |
D | alloc.cc | 27 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/ |
D | tagging.cc | 42 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/ |
D | tracking_free.cc | 40 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/ |
D | unsafe_test.cc | 41 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/2235-JdkUnsafeTest/ |
D | unsafe_test.cc | 41 extern "C" JNIEXPORT jlong JNICALL Java_Main_jdkUnsafeTestMalloc(JNIEnv*, jclass, jlong size) { in Java_Main_jdkUnsafeTestMalloc() 44 return reinterpret_cast64<jlong>(memory); in Java_Main_jdkUnsafeTestMalloc() 47 extern "C" JNIEXPORT void JNICALL Java_Main_jdkUnsafeTestFree(JNIEnv*, jclass, jlong memory) { in Java_Main_jdkUnsafeTestFree()
|
/art/test/ti-agent/ |
D | agent_common.cc | 28 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/ |
D | jvmti.h | 74 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/openjdkjvm/ |
D | OpenjdkJvm.cc | 114 JNIEXPORT jlong JVM_Lseek(jint fd, jlong offset, jint whence) { in JVM_Lseek() 207 JNIEXPORT jlong JVM_CurrentTimeMillis(JNIEnv* env ATTRIBUTE_UNUSED, in JVM_CurrentTimeMillis() 211 jlong when = tv.tv_sec * 1000LL + tv.tv_usec / 1000; in JVM_CurrentTimeMillis() 219 JNIEXPORT jlong JVM_GetNanoTimeAdjustment(JNIEnv *ATTRIBUTE_UNUSED, in JVM_GetNanoTimeAdjustment() 221 jlong offset_secs) { in JVM_GetNanoTimeAdjustment() 232 jlong sec_diff = ((jlong) tv.tv_sec) - offset_secs; in JVM_GetNanoTimeAdjustment() 233 const jlong max_diff = ((jlong) 1) << 32; in JVM_GetNanoTimeAdjustment() 234 const jlong min_diff = -max_diff; in JVM_GetNanoTimeAdjustment() 238 jlong usec_diff = sec_diff * 1000000LL + tv.tv_usec; in JVM_GetNanoTimeAdjustment() 323 JNIEXPORT jlong JVM_FreeMemory(void) { in JVM_FreeMemory() [all …]
|
/art/test/1974-resize-array/ |
D | resize_array.cc | 129 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/ |
D | local_instance.cc | 41 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/1941-dispose-stress/ |
D | dispose_stress.cc | 44 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()
|