/art/benchmark/scoped-primitive-array/ |
D | scoped_primitive_array.cc | 22 jlong ret = 0; in Java_ScopedPrimitiveArrayBenchmark_measureByteArray() local 25 ret += sc[0] + sc[sc.size() - 1]; in Java_ScopedPrimitiveArrayBenchmark_measureByteArray() 27 return ret; in Java_ScopedPrimitiveArrayBenchmark_measureByteArray() 32 jlong ret = 0; in Java_ScopedPrimitiveArrayBenchmark_measureShortArray() local 35 ret += sc[0] + sc[sc.size() - 1]; in Java_ScopedPrimitiveArrayBenchmark_measureShortArray() 37 return ret; in Java_ScopedPrimitiveArrayBenchmark_measureShortArray() 42 jlong ret = 0; in Java_ScopedPrimitiveArrayBenchmark_measureIntArray() local 45 ret += sc[0] + sc[sc.size() - 1]; in Java_ScopedPrimitiveArrayBenchmark_measureIntArray() 47 return ret; in Java_ScopedPrimitiveArrayBenchmark_measureIntArray() 52 jlong ret = 0; in Java_ScopedPrimitiveArrayBenchmark_measureLongArray() local [all …]
|
/art/test/905-object-free/ |
D | tracking_free.cc | 62 jvmtiError ret = jenv->SetEventCallbacks(&callbacks, sizeof(callbacks)); in setupObjectFreeCallback() local 63 JvmtiErrorToException(env, jenv, ret); in setupObjectFreeCallback() 78 jvmtiError ret = jvmti_env->SetEventNotificationMode( in Java_art_Test905_enableFreeTracking() local 82 if (JvmtiErrorToException(env, jvmti_env, ret)) { in Java_art_Test905_enableFreeTracking() 85 ret = jvmti_env2->SetEventNotificationMode( in Java_art_Test905_enableFreeTracking() 89 JvmtiErrorToException(env, jvmti_env, ret); in Java_art_Test905_enableFreeTracking() 96 jlongArray ret = env->NewLongArray(tags.size()); in Java_art_Test905_getCollectedTags() local 97 if (ret == nullptr) { in Java_art_Test905_getCollectedTags() 98 return ret; in Java_art_Test905_getCollectedTags() 101 env->SetLongArrayRegion(ret, 0, tags.size(), tags.data()); in Java_art_Test905_getCollectedTags() [all …]
|
/art/runtime/mirror/ |
D | method.cc | 31 ObjPtr<Method> ret = ObjPtr<Method>::DownCast(GetClassRoot<Method>()->AllocObject(self)); in CreateFromArtMethod() local 32 if (LIKELY(ret != nullptr)) { in CreateFromArtMethod() 33 ret->InitializeFromArtMethod<kPointerSize>(method); in CreateFromArtMethod() 35 return ret; in CreateFromArtMethod() 46 ObjPtr<Constructor> ret = in CreateFromArtMethod() local 48 if (LIKELY(ret != nullptr)) { in CreateFromArtMethod() 49 ret->InitializeFromArtMethod<kPointerSize>(method); in CreateFromArtMethod() 51 return ret; in CreateFromArtMethod()
|
D | field.cc | 77 auto ret = hs.NewHandle(ObjPtr<Field>::DownCast(GetClassRoot<Field>()->AllocObject(self))); in CreateFromArtField() local 78 if (UNLIKELY(ret == nullptr)) { in CreateFromArtField() 84 ret->SetType</*kTransactionActive=*/ false, /*kCheckTransaction=*/ false>(type.Get()); in CreateFromArtField() 85 ret->SetDeclaringClass</*kTransactionActive=*/ false, /*kCheckTransaction=*/ false>( in CreateFromArtField() 87 ret->SetAccessFlags</*kTransactionActive=*/ false, /*kCheckTransaction=*/ false>( in CreateFromArtField() 94 ret->SetArtFieldIndex</*kTransactionActive=*/ false, /*kCheckTransaction=*/ false>( in CreateFromArtField() 96 ret->SetOffset</*kTransactionActive=*/ false, /*kCheckTransaction=*/ false>( in CreateFromArtField() 98 return ret.Get(); in CreateFromArtField()
|
/art/test/ti-agent/ |
D | suspension_helper.cc | 39 std::vector<jthread> ret; in CopyToVector() local 41 ret.push_back(reinterpret_cast<jthread>(env->GetObjectArrayElement(thrs, i))); in CopyToVector() 43 return ret; in CopyToVector() 54 jintArray ret = env->NewIntArray(threads.size()); in Java_art_Suspension_resumeList() local 58 jint* elems = env->GetIntArrayElements(ret, nullptr); in Java_art_Suspension_resumeList() 63 env->ReleaseIntArrayElements(ret, elems, 0); in Java_art_Suspension_resumeList() 64 return ret; in Java_art_Suspension_resumeList() 75 jintArray ret = env->NewIntArray(threads.size()); in Java_art_Suspension_suspendList() local 79 jint* elems = env->GetIntArrayElements(ret, nullptr); in Java_art_Suspension_suspendList() 84 env->ReleaseIntArrayElements(ret, elems, 0); in Java_art_Suspension_suspendList() [all …]
|
D | locals_helper.cc | 96 jdouble ret = 0; in Java_art_Locals_GetLocalVariableDouble() local 97 JvmtiErrorToException(env, jvmti_env, jvmti_env->GetLocalDouble(t, depth, slot, &ret)); in Java_art_Locals_GetLocalVariableDouble() 98 return ret; in Java_art_Locals_GetLocalVariableDouble() 106 jfloat ret = 0; in Java_art_Locals_GetLocalVariableFloat() local 107 JvmtiErrorToException(env, jvmti_env, jvmti_env->GetLocalFloat(t, depth, slot, &ret)); in Java_art_Locals_GetLocalVariableFloat() 108 return ret; in Java_art_Locals_GetLocalVariableFloat() 116 jlong ret = 0; in Java_art_Locals_GetLocalVariableLong() local 117 JvmtiErrorToException(env, jvmti_env, jvmti_env->GetLocalLong(t, depth, slot, &ret)); in Java_art_Locals_GetLocalVariableLong() 118 return ret; in Java_art_Locals_GetLocalVariableLong() 126 jint ret = 0; in Java_art_Locals_GetLocalVariableInt() local [all …]
|
D | agent_common.cc | 29 jvmtiError ret = jvmti_env->SetTag(obj, tag); in Java_art_Main_setTag() local 30 JvmtiErrorToException(env, jvmti_env, ret); in Java_art_Main_setTag() 35 jvmtiError ret = jvmti_env->GetTag(obj, &tag); in Java_art_Main_getTag() local 36 if (JvmtiErrorToException(env, jvmti_env, ret)) { in Java_art_Main_getTag()
|
D | jni_helper.h | 40 ScopedLocalRef<jobjectArray> ret(env, env->NewObjectArray(length, obj_class.get(), nullptr)); in CreateObjectArray() 41 if (ret.get() == nullptr) { in CreateObjectArray() 47 env->SetObjectArrayElement(ret.get(), static_cast<jint>(i), element); in CreateObjectArray() 54 return ret.release(); in CreateObjectArray()
|
/art/test/933-misc-events/ |
D | misc_events.cc | 46 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks)); in Java_art_Test933_testSigQuit() local 47 if (JvmtiErrorToException(env, jvmti_env, ret)) { in Java_art_Test933_testSigQuit() 51 ret = jvmti_env->SetEventNotificationMode(JVMTI_ENABLE, in Java_art_Test933_testSigQuit() 54 if (JvmtiErrorToException(env, jvmti_env, ret)) { in Java_art_Test933_testSigQuit() 69 ret = jvmti_env->SetEventNotificationMode(JVMTI_DISABLE, JVMTI_EVENT_DATA_DUMP_REQUEST, nullptr); in Java_art_Test933_testSigQuit() 70 JvmtiErrorToException(env, jvmti_env, ret); in Java_art_Test933_testSigQuit()
|
/art/libartbase/base/ |
D | arena_allocator.cc | 228 uint8_t* ret; in AllocWithMemoryTool() local 230 ret = AllocFromNewArenaWithMemoryTool(rounded_bytes); in AllocWithMemoryTool() 232 ret = ptr_; in AllocWithMemoryTool() 235 MEMORY_TOOL_MAKE_DEFINED(ret, bytes); in AllocWithMemoryTool() 237 DCHECK(std::all_of(ret, ret + bytes, [](uint8_t val) { return val == 0u; })); in AllocWithMemoryTool() 238 return ret; in AllocWithMemoryTool() 250 uint8_t* ret; in AllocWithMemoryToolAlign16() local 253 ret = AllocFromNewArenaWithMemoryTool(rounded_bytes); in AllocWithMemoryToolAlign16() 256 ret = ptr_; in AllocWithMemoryToolAlign16() 259 MEMORY_TOOL_MAKE_DEFINED(ret, bytes); in AllocWithMemoryToolAlign16() [all …]
|
D | malloc_arena_pool.cc | 106 Arena* ret = nullptr; in AllocArena() local 110 ret = free_arenas_; in AllocArena() 114 if (ret == nullptr) { in AllocArena() 115 ret = new MallocArena(size); in AllocArena() 117 ret->Reset(); in AllocArena() 118 return ret; in AllocArena()
|
/art/test/912-classes/ |
D | classes_art.cc | 43 jvmtiError ret = jvmti_env->SetEventNotificationMode(JVMTI_DISABLE, variable 46 if (JvmtiErrorToException(env, jvmti_env, ret)) { 49 ret = jvmti_env->SetEventNotificationMode(JVMTI_DISABLE, 52 JvmtiErrorToException(env, jvmti_env, ret); 60 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks)); variable 61 if (JvmtiErrorToException(env, jvmti_env, ret)) { 65 ret = jvmti_env->SetEventNotificationMode(JVMTI_ENABLE, 68 if (JvmtiErrorToException(env, jvmti_env, ret)) { 71 ret = jvmti_env->SetEventNotificationMode(JVMTI_ENABLE, 74 JvmtiErrorToException(env, jvmti_env, ret);
|
/art/test/908-gc-start-finish/ |
D | gc_callbacks.cc | 50 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks)); in Java_art_Test908_setupGcCallback() local 51 JvmtiErrorToException(env, jvmti_env, ret); in Java_art_Test908_setupGcCallback() 57 jvmtiError ret = jvmti_env->SetEventNotificationMode( in Java_art_Test908_enableGcTracking() local 61 if (JvmtiErrorToException(env, jvmti_env, ret)) { in Java_art_Test908_enableGcTracking() 64 ret = jvmti_env->SetEventNotificationMode( in Java_art_Test908_enableGcTracking() 68 if (JvmtiErrorToException(env, jvmti_env, ret)) { in Java_art_Test908_enableGcTracking()
|
/art/test/616-cha-unloading/src-art/ |
D | Main.java | 92 AbstractCHATester ret = null; in setupLoader() local 93 return new CHAUnloaderRetType(new WeakReference(loader), ret, artMethod); in setupLoader() 98 CHAUnloaderRetType ret = new CHAUnloaderRetType(null, null, 0); in targetMethodForJit() local 100 ret = setupLoader(); in targetMethodForJit() 104 ret = setupLoader(); in targetMethodForJit() 105 AbstractCHATester obj = ret.obj; in targetMethodForJit() 108 return ret; in targetMethodForJit()
|
/art/test/924-threads/ |
D | threads.cc | 126 jobjectArray ret = CreateObjectArray(env, 5, "java/lang/Object", callback); in Java_art_Test924_getThreadInfo() local 136 return ret; in Java_art_Test924_getThreadInfo() 162 jobjectArray ret = CreateObjectArray(env, thread_count, "java/lang/Thread", callback); in Java_art_Test924_getAllThreads() local 166 return ret; in Java_art_Test924_getAllThreads() 228 jvmtiError ret = jvmti_env->SetEventNotificationMode(JVMTI_DISABLE, in Java_art_Test924_enableThreadEvents() local 231 if (JvmtiErrorToException(env, jvmti_env, ret)) { in Java_art_Test924_enableThreadEvents() 234 ret = jvmti_env->SetEventNotificationMode(JVMTI_DISABLE, in Java_art_Test924_enableThreadEvents() 237 JvmtiErrorToException(env, jvmti_env, ret); in Java_art_Test924_enableThreadEvents() 245 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks)); in Java_art_Test924_enableThreadEvents() local 246 if (JvmtiErrorToException(env, jvmti_env, ret)) { in Java_art_Test924_enableThreadEvents() [all …]
|
/art/test/922-properties/ |
D | properties.cc | 46 jstring ret = env->NewStringUTF(data); in Java_art_Test922_getSystemProperties() local 48 return ret; in Java_art_Test922_getSystemProperties() 50 jobjectArray ret = CreateObjectArray(env, count, "java/lang/String", callback); in Java_art_Test922_getSystemProperties() local 54 return ret; in Java_art_Test922_getSystemProperties() 70 jstring ret = (value == nullptr) ? nullptr : env->NewStringUTF(value); in Java_art_Test922_getSystemProperty() local 74 return ret; in Java_art_Test922_getSystemProperty()
|
/art/test/992-source-data/ |
D | source_file.cc | 47 jstring ret = env->NewStringUTF(file); in Java_art_Test992_getSourceFileName() local 49 return ret; in Java_art_Test992_getSourceFileName() 60 jstring ret = env->NewStringUTF(ext); in Java_art_Test992_getSourceDebugExtension() local 62 return ret; in Java_art_Test992_getSourceDebugExtension()
|
/art/test/957-methodhandle-transforms/src/ |
D | Main.java | 952 int ret = (int) mhAsSpreader.invoke("a", "b", "c", new String[] {}); in testSpreaders_reference() local 953 assertEquals(42, ret); in testSpreaders_reference() 956 ret = (int) mhAsSpreader.invoke("a", "b", new String[] { "c" }); in testSpreaders_reference() 957 assertEquals(42, ret); in testSpreaders_reference() 960 ret = (int) mhAsSpreader.invoke("a", new String[] { "b", "c" }); in testSpreaders_reference() 961 assertEquals(42, ret); in testSpreaders_reference() 964 ret = (int) mhAsSpreader.invoke(new String[] { "a", "b", "c"}); in testSpreaders_reference() 965 assertEquals(42, ret); in testSpreaders_reference() 978 ret = (int) mhAsSpreader.invoke(new String[] { "a", "b"}); in testSpreaders_reference() 984 ret = (int) mhAsSpreader.invoke("a", new String[] { "b", "c" }); in testSpreaders_reference() [all …]
|
/art/runtime/gc/space/ |
D | bump_pointer_space-inl.h | 32 mirror::Object* ret = AllocNonvirtual(num_bytes); in Alloc() local 33 if (LIKELY(ret != nullptr)) { in Alloc() 40 return ret; in Alloc() 84 mirror::Object* ret = AllocNonvirtualWithoutAccounting(num_bytes); in AllocNonvirtual() local 85 if (ret != nullptr) { in AllocNonvirtual() 89 return ret; in AllocNonvirtual()
|
/art/openjdkjvmti/ |
D | ti_allocator.cc | 76 unsigned char* ret = size != 0 ? reinterpret_cast<unsigned char*>(malloc(size)) : nullptr; in AllocateImpl() local 77 if (LIKELY(ret != nullptr)) { in AllocateImpl() 78 allocated += malloc_usable_size(ret); in AllocateImpl() 80 return ret; in AllocateImpl()
|
D | art_jvmti.h | 149 jvmtiError ret = env_->Deallocate(reinterpret_cast<unsigned char*>(ptr)); in operator() local 150 CHECK(ret == ERR(NONE)); in operator() 170 jvmtiError ret = env_->Deallocate(reinterpret_cast<unsigned char*>(ptr)); in operator() local 171 CHECK(ret == ERR(NONE)); in operator() 236 JvmtiUniquePtr<char[]> ret = AllocJvmtiUniquePtr<char[]>(env, 0, error); in CopyString() local 237 return ret; in CopyString() 240 JvmtiUniquePtr<char[]> ret = AllocJvmtiUniquePtr<char[]>(env, len, error); in CopyString() local 241 if (ret != nullptr) { in CopyString() 242 strlcpy(ret.get(), src, len); in CopyString() 244 return ret; in CopyString()
|
/art/runtime/gc/ |
D | heap-inl.h | 296 mirror::Object* ret; in TryToAllocate() local 301 ret = bump_pointer_space_->AllocNonvirtual(alloc_size); in TryToAllocate() 302 if (LIKELY(ret != nullptr)) { in TryToAllocate() 318 ret = rosalloc_space_->Alloc(self, alloc_size, bytes_allocated, usable_size, in TryToAllocate() 332 ret = rosalloc_space_->AllocNonvirtual(self, in TryToAllocate() 343 ret = dlmalloc_space_->Alloc(self, in TryToAllocate() 350 ret = dlmalloc_space_->AllocNonvirtual(self, in TryToAllocate() 359 ret = non_moving_space_->Alloc(self, in TryToAllocate() 367 ret = large_object_space_->Alloc(self, in TryToAllocate() 375 DCHECK(ret == nullptr || large_object_space_->Contains(ret)); in TryToAllocate() [all …]
|
/art/runtime/base/ |
D | mem_map_arena_pool.cc | 105 Arena* ret = nullptr; in AllocArena() local 109 ret = free_arenas_; in AllocArena() 113 if (ret == nullptr) { in AllocArena() 114 ret = new MemMapArena(size, low_4gb_, name_); in AllocArena() 116 ret->Reset(); in AllocArena() 117 return ret; in AllocArena()
|
/art/runtime/gc/collector/ |
D | concurrent_copying-inl.h | 200 mirror::Object* ret; in MarkFromReadBarrier() local 208 ret = MarkFromReadBarrierWithMeasurements(self, from_ref); in MarkFromReadBarrier() 210 ret = Mark</*kGrayImmuneObject=*/true, /*kNoUnEvac=*/false, /*kFromGCThread=*/false>(self, in MarkFromReadBarrier() 214 if (kUseBakerReadBarrier && LIKELY(!rb_mark_bit_stack_full_ && ret->AtomicSetMarkBit(0, 1))) { in MarkFromReadBarrier() 217 if (!rb_mark_bit_stack_->AtomicPushBack(ret)) { in MarkFromReadBarrier() 219 CHECK(ret->AtomicSetMarkBit(1, 0)); in MarkFromReadBarrier() 224 return ret; in MarkFromReadBarrier()
|
/art/libartbase/arch/ |
D | instruction_set.h | 285 TwoWordReturn ret; in GetTwoWordFailureValue() local 286 ret.lo = 0; in GetTwoWordFailureValue() 287 return ret; in GetTwoWordFailureValue() 292 TwoWordReturn ret; in GetTwoWordSuccessValue() local 293 ret.lo = lo; in GetTwoWordSuccessValue() 294 ret.hi = hi; in GetTwoWordSuccessValue() 295 return ret; in GetTwoWordSuccessValue()
|