/art/tools/tracefast-plugin/ |
D | tracefast.cc | 42 class Tracer final : public art::instrumentation::InstrumentationListener { 46 void MethodEntered(art::Thread* thread ATTRIBUTE_UNUSED, in MethodEntered() 47 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in MethodEntered() 48 art::ArtMethod* method ATTRIBUTE_UNUSED, in MethodEntered() 50 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in MethodEntered() 52 void MethodExited(art::Thread* thread ATTRIBUTE_UNUSED, in MethodExited() 53 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in MethodExited() 54 art::ArtMethod* method ATTRIBUTE_UNUSED, in MethodExited() 56 art::instrumentation::OptionalFrame frame ATTRIBUTE_UNUSED, in MethodExited() 57 art::MutableHandle<art::mirror::Object>& return_value ATTRIBUTE_UNUSED) in MethodExited() [all …]
|
/art/runtime/arch/arm64/ |
D | callee_save_frame_arm64.h | 28 namespace art { 36 (1 << art::arm64::LR); 39 (1 << art::arm64::X20) | (1 << art::arm64::X21) | (1 << art::arm64::X22) | 40 (1 << art::arm64::X23) | (1 << art::arm64::X24) | (1 << art::arm64::X25) | 41 (1 << art::arm64::X26) | (1 << art::arm64::X27) | (1 << art::arm64::X28) | 42 (1 << art::arm64::X29); 45 (1 << art::arm64::X1) | (1 << art::arm64::X2) | (1 << art::arm64::X3) | 46 (1 << art::arm64::X4) | (1 << art::arm64::X5) | (1 << art::arm64::X6) | 47 (1 << art::arm64::X7); 49 (1 << art::arm64::X19); [all …]
|
/art/openjdkjvmti/ |
D | ti_class_loader.h | 44 namespace art { 60 static bool AddToClassLoader(art::Thread* self, 61 art::Handle<art::mirror::ClassLoader> loader, 62 const art::DexFile* dex_file) 63 REQUIRES_SHARED(art::Locks::mutator_lock_); 68 static art::ObjPtr<art::mirror::Object> FindSourceDexFileObject( 69 art::Thread* self, art::Handle<art::mirror::ClassLoader> loader) 70 REQUIRES_SHARED(art::Locks::mutator_lock_); 75 static inline void VisitDexFileObjects(art::Thread* self, 76 art::Handle<art::mirror::ClassLoader> loader, [all …]
|
D | ti_class_loader.cc | 63 bool ClassLoaderHelper::AddToClassLoader(art::Thread* self, in AddToClassLoader() 64 art::Handle<art::mirror::ClassLoader> loader, in AddToClassLoader() 65 const art::DexFile* dex_file) { in AddToClassLoader() 66 art::ScopedObjectAccessUnchecked soa(self); in AddToClassLoader() 67 art::StackHandleScope<3> hs(self); in AddToClassLoader() 68 if (art::ClassLinker::IsBootClassLoader(soa, loader.Get())) { in AddToClassLoader() 69 art::Runtime::Current()->GetClassLinker()->AppendToBootClassPath(self, dex_file); in AddToClassLoader() 72 art::Handle<art::mirror::Object> java_dex_file_obj( in AddToClassLoader() 77 art::Handle<art::mirror::LongArray> old_cookie(hs.NewHandle(GetDexFileCookie(java_dex_file_obj))); in AddToClassLoader() 78 art::Handle<art::mirror::LongArray> cookie(hs.NewHandle( in AddToClassLoader() [all …]
|
D | deopt_manager.h | 44 namespace art { 56 struct JvmtiMethodInspectionCallback : public art::MethodInspectionCallback { 60 bool IsMethodBeingInspected(art::ArtMethod* method) 61 override REQUIRES_SHARED(art::Locks::mutator_lock_); 63 bool IsMethodSafeToJit(art::ArtMethod* method) 64 override REQUIRES_SHARED(art::Locks::mutator_lock_); 66 bool MethodNeedsDebugVersion(art::ArtMethod* method) 67 override REQUIRES_SHARED(art::Locks::mutator_lock_); 82 void DumpDeoptInfo(art::Thread* self, std::ostream& stream); 85 !art::Roles::uninterruptible_); [all …]
|
D | jvmti_weak_table.h | 54 class JvmtiWeakTable : public art::gc::SystemWeakHolder { 57 : art::gc::SystemWeakHolder(art::kTaggingLockLevel), in JvmtiWeakTable() 63 ALWAYS_INLINE bool Remove(art::ObjPtr<art::mirror::Object> obj, /* out */ T* tag) 64 REQUIRES_SHARED(art::Locks::mutator_lock_) 66 ALWAYS_INLINE bool RemoveLocked(art::ObjPtr<art::mirror::Object> obj, /* out */ T* tag) 67 REQUIRES_SHARED(art::Locks::mutator_lock_) 72 ALWAYS_INLINE virtual bool Set(art::ObjPtr<art::mirror::Object> obj, T tag) 73 REQUIRES_SHARED(art::Locks::mutator_lock_) 75 ALWAYS_INLINE virtual bool SetLocked(art::ObjPtr<art::mirror::Object> obj, T tag) 76 REQUIRES_SHARED(art::Locks::mutator_lock_) [all …]
|
D | ti_thread.cc | 67 art::ArtField* ThreadUtil::context_class_loader_ = nullptr; 69 ScopedNoUserCodeSuspension::ScopedNoUserCodeSuspension(art::Thread* self) : self_(self) { in ScopedNoUserCodeSuspension() 70 DCHECK_EQ(self, art::Thread::Current()); in ScopedNoUserCodeSuspension() 74 art::Locks::user_code_suspension_lock_->AssertNotHeld(self_); in ScopedNoUserCodeSuspension() 77 art::Locks::user_code_suspension_lock_->ExclusiveLock(self_); in ScopedNoUserCodeSuspension() 79 art::Locks::user_code_suspension_lock_->ExclusiveUnlock(self_); in ScopedNoUserCodeSuspension() 83 art::Locks::user_code_suspension_lock_->AssertHeld(self_); in ScopedNoUserCodeSuspension() 90 art::Locks::user_code_suspension_lock_->ExclusiveUnlock(self_); in ~ScopedNoUserCodeSuspension() 93 struct ThreadCallback : public art::ThreadLifecycleCallback { 94 jthread GetThreadObject(art::Thread* self) REQUIRES_SHARED(art::Locks::mutator_lock_) { in GetThreadObject() [all …]
|
D | deopt_manager.cc | 69 bool JvmtiMethodInspectionCallback::IsMethodBeingInspected(art::ArtMethod* method) { in IsMethodBeingInspected() 74 return !art::Runtime::Current()->IsJavaDebuggable() || in IsMethodBeingInspected() 79 bool JvmtiMethodInspectionCallback::IsMethodSafeToJit(art::ArtMethod* method) { in IsMethodSafeToJit() 84 art::ArtMethod* method ATTRIBUTE_UNUSED) { in MethodNeedsDebugVersion() 90 static_cast<art::LockLevel>( in DeoptManager() 91 art::LockLevel::kClassLinkerClassesLock + 1)), in DeoptManager() 97 static_cast<art::LockLevel>(art::LockLevel::kAbortLock + 1)), in DeoptManager() 102 art::ScopedThreadStateChange stsc(art::Thread::Current(), in Setup() 103 art::ThreadState::kWaitingForDebuggerToAttach); in Setup() 104 art::ScopedSuspendAll ssa("Add method Inspection Callback"); in Setup() [all …]
|
D | ti_redefine.h | 54 namespace art { 80 art::Runtime* runtime, 81 art::Thread* self, 101 static art::MemMap MoveDataToMemMap(const std::string& original_location, 102 art::ArrayRef<const unsigned char> data, 108 REQUIRES(!art::Locks::mutator_lock_); 120 const art::DexFile* redefined_dex_file, 122 art::ArrayRef<const unsigned char> orig_dex_file) 123 REQUIRES_SHARED(art::Locks::mutator_lock_); 153 art::ObjPtr<art::mirror::Class> GetMirrorClass() REQUIRES_SHARED(art::Locks::mutator_lock_); [all …]
|
D | ti_threadgroup.cc | 63 art::Runtime* runtime = art::Runtime::Current(); in GetTopThreadGroups() 83 reinterpret_cast<JNIEnv*>(art::Thread::Current()->GetJniEnv())->NewLocalRef(sys_thread_group); in GetTopThreadGroups() 97 art::ScopedObjectAccess soa(art::Thread::Current()); in GetThreadGroupInfo() 98 if (soa.Env()->IsInstanceOf(group, art::WellKnownClasses::java_lang_ThreadGroup) == JNI_FALSE) { in GetThreadGroupInfo() 102 art::StackHandleScope<2> hs(soa.Self()); in GetThreadGroupInfo() 103 art::Handle<art::mirror::Class> tg_class( in GetThreadGroupInfo() 104 hs.NewHandle(soa.Decode<art::mirror::Class>(art::WellKnownClasses::java_lang_ThreadGroup))); in GetThreadGroupInfo() 105 art::Handle<art::mirror::Object> obj(hs.NewHandle(soa.Decode<art::mirror::Object>(group))); in GetThreadGroupInfo() 109 art::ArtField* name_field = in GetThreadGroupInfo() 110 art::jni::DecodeArtField(art::WellKnownClasses::java_lang_ThreadGroup_name); in GetThreadGroupInfo() [all …]
|
D | ti_class.cc | 89 static std::unique_ptr<const art::DexFile> MakeSingleDexFile(art::Thread* self, in MakeSingleDexFile() 94 REQUIRES_SHARED(art::Locks::mutator_lock_) { in MakeSingleDexFile() 97 art::ArrayRef<const unsigned char> final_data(final_dex_data, final_len); in MakeSingleDexFile() 98 art::MemMap map = Redefiner::MoveDataToMemMap(orig_location, final_data, &error_msg); in MakeSingleDexFile() 107 if (map.Size() < sizeof(art::DexFile::Header)) { in MakeSingleDexFile() 109 art::ThrowClassFormatError(nullptr, in MakeSingleDexFile() 114 uint32_t checksum = reinterpret_cast<const art::DexFile::Header*>(map.Begin())->checksum_; in MakeSingleDexFile() 116 const art::ArtDexFileLoader dex_file_loader; in MakeSingleDexFile() 117 std::unique_ptr<const art::DexFile> dex_file(dex_file_loader.Open(map_name, in MakeSingleDexFile() 125 art::ThrowClassFormatError(nullptr, in MakeSingleDexFile() [all …]
|
D | ti_redefine.cc | 140 constexpr bool kCheckAllMethodsSeenOnce = art::kIsDebugBuild; 149 art::ArtMethod* FindObsoleteVersion(art::ArtMethod* original) const in FindObsoleteVersion() 150 REQUIRES(art::Locks::mutator_lock_, art::Roles::uninterruptible_) { in FindObsoleteVersion() 153 art::ArtMethod* res = obsolete_methods_->GetElementPtrSize<art::ArtMethod*>( in FindObsoleteVersion() 154 method_pair->second, art::kRuntimePointerSize); in FindObsoleteVersion() 162 void RecordObsolete(art::ArtMethod* original, art::ArtMethod* obsolete) in RecordObsolete() 163 REQUIRES(art::Locks::mutator_lock_, art::Roles::uninterruptible_) { in RecordObsolete() 169 obsolete_methods_->GetElementPtrSize<art::ArtMethod*>(slot, art::kRuntimePointerSize)); in RecordObsolete() 171 obsolete_methods_->SetElementPtrSize(slot, obsolete, art::kRuntimePointerSize); in RecordObsolete() 176 ObsoleteMap(art::ObjPtr<art::mirror::PointerArray> obsolete_methods, in ObsoleteMap() [all …]
|
D | alloc_manager.h | 43 namespace art { 57 class JvmtiAllocationListener : public art::gc::AllocationListener { 60 void ObjectAllocated(art::Thread* self, 61 art::ObjPtr<art::mirror::Object>* obj, 62 size_t cnt) override REQUIRES_SHARED(art::Locks::mutator_lock_); 63 bool HasPreAlloc() const override REQUIRES_SHARED(art::Locks::mutator_lock_); 64 void PreObjectAllocated(art::Thread* self, 65 art::MutableHandle<art::mirror::Class> type, 66 size_t* byte_count) override REQUIRES_SHARED(art::Locks::mutator_lock_); 77 virtual void ObjectAllocated(art::Thread* self, [all …]
|
D | ti_monitor.cc | 62 static bool Destroy(art::Thread* self, JvmtiMonitor* monitor) NO_THREAD_SAFETY_ANALYSIS { in Destroy() 64 art::Thread* owner_thread = monitor->owner_.load(std::memory_order_relaxed); in Destroy() 79 void MonitorEnter(art::Thread* self, bool suspend) NO_THREAD_SAFETY_ANALYSIS { in MonitorEnter() 124 bool MonitorExit(art::Thread* self) NO_THREAD_SAFETY_ANALYSIS { in MonitorExit() 138 bool Wait(art::Thread* self) { in Wait() 145 bool Wait(art::Thread* self, uint64_t timeout_in_ms) { in Wait() 152 bool Notify(art::Thread* self) { in Notify() 156 bool NotifyAll(art::Thread* self) { in NotifyAll() 161 bool IsOwner(art::Thread* self) const { in IsOwner() 165 art::Thread* owner_thread = owner_.load(std::memory_order_relaxed); in IsOwner() [all …]
|
D | ti_class_definition.cc | 51 DCHECK(art::MemMap::kCanReplaceMapping); in InitializeMemory() 68 art::MemMap source; in InitializeMemory() 118 jvmtiError ArtClassDefinition::InitCommon(art::Thread* self, jclass klass) { in InitCommon() 119 art::ScopedObjectAccess soa(self); in InitCommon() 120 art::ObjPtr<art::mirror::Class> m_klass(soa.Decode<art::mirror::Class>(klass)); in InitCommon() 135 static void DequickenDexFile(const art::DexFile* dex_file, in DequickenDexFile() 138 REQUIRES_SHARED(art::Locks::mutator_lock_) { in DequickenDexFile() 146 static void GetDexDataForRetransformation(art::Handle<art::mirror::Class> klass, in GetDexDataForRetransformation() 148 REQUIRES_SHARED(art::Locks::mutator_lock_) { in GetDexDataForRetransformation() 149 art::StackHandleScope<3> hs(art::Thread::Current()); in GetDexDataForRetransformation() [all …]
|
/art/test/1929-exception-catch-exception/ |
D | expected.txt | 1 Test "art.Test1929$DoThrowClass": Running breakpoint with handler "art.Test1929$DoNothingHandler" 2 main: public static void art.Test1929.run() throws java.lang.Exception @ line = 298 caught class ar… 4 …private static native art.StackTrace$StackFrameData[] art.StackTrace.nativeGetStackTrace(java.lang… 5 …public static art.StackTrace$StackFrameData[] art.StackTrace.GetStackTrace(java.lang.Thread) @ lin… 6 private static void art.Test1929.PrintStack() @ line = 52 7 …public static void art.Test1929.ExceptionCatchEvent(java.lang.Thread,java.lang.reflect.Executable,… 8 public static void art.Test1929.run() throws java.lang.Exception @ line = 298 9 Test "art.Test1929$DoThrowClass": Caught error art.Test1929$TestException:"doThrow" with handler "a… 10 Test "art.Test1929$DoThrowClass": Finished running with handler "art.Test1929$DoNothingHandler" 11 Test "art.Test1929$DoThrowCatchBaseTestException": Running breakpoint with handler "art.Test1929$Do… [all …]
|
/art/tools/cpp-define-generator/ |
D | thread.def | 23 art::Thread::CardTableOffset<art::kRuntimePointerSize>().Int32Value()) 25 art::kCheckpointRequest) 27 art::Thread::MterpCurrentIBaseOffset<art::kRuntimePointerSize>().Int32Value()) 29 art::kEmptyCheckpointRequest) 31 art::Thread::ExceptionOffset<art::kRuntimePointerSize>().Int32Value()) 33 art::Thread::ThreadFlagsOffset<art::kRuntimePointerSize>().Int32Value()) 35 art::Thread::ThinLockIdOffset<art::kRuntimePointerSize>().Int32Value()) 37 art::Thread::InterpreterCacheOffset<art::kRuntimePointerSize>().Int32Value()) 39 art::Thread::InterpreterCacheSizeLog2()) 41 (sizeof(art::InterpreterCache::Entry) * (art::InterpreterCache::kSize - 1))) [all …]
|
/art/test/991-field-trace-2/ |
D | expected.txt | 1 Test is class art.Test991$DoNothingFieldTracer & class art.Test991$JavaReadWrite 3 FieldTracer: class art.Test991$DoNothingFieldTracer 4 …ublic int art.Test991$TestClass1.xyz on object of type: class art.Test991$TestClass1 in method pub… 6 FieldTracer: class art.Test991$DoNothingFieldTracer 7 …ublic int art.Test991$TestClass1.xyz on object of type: class art.Test991$TestClass1 in method pub… 9 Test is class art.Test991$ThrowReadFieldTracer & class art.Test991$JavaReadWrite 11 FieldTracer: class art.Test991$ThrowReadFieldTracer 12 …ublic int art.Test991$TestClass1.xyz on object of type: class art.Test991$TestClass1 in method pub… 13 Caught error. art.Test991$TestError: Throwing error during access 15 Test is class art.Test991$ThrowWriteFieldTracer & class art.Test991$JavaReadWrite [all …]
|
/art/runtime/arch/arm/ |
D | callee_save_frame_arm.h | 28 namespace art { 32 (1 << art::arm::LR); 34 (1 << art::arm::R5) | (1 << art::arm::R6) | (1 << art::arm::R7) | (1 << art::arm::R8) | 35 (1 << art::arm::R10) | (1 << art::arm::R11); 37 (1 << art::arm::R1) | (1 << art::arm::R2) | (1 << art::arm::R3); 39 (1 << art::arm::R4) | (1 << art::arm::R9); 41 (1 << art::arm::R0) | (1 << art::arm::R1) | (1 << art::arm::R2) | (1 << art::arm::R3) | 42 (1 << art::arm::R4) | (1 << art::arm::R9) | (1 << art::arm::R12); 47 (1 << art::arm::S0) | (1 << art::arm::S1) | (1 << art::arm::S2) | (1 << art::arm::S3) | 48 (1 << art::arm::S4) | (1 << art::arm::S5) | (1 << art::arm::S6) | (1 << art::arm::S7) | [all …]
|
/art/test/1928-exception-event-exception/ |
D | expected.txt | 1 Test "art.Test1928$DoThrowClass": Running with handler "art.Test1928$DoNothingHandler" 2 main: public static void art.Test1928.doThrow() @ line = 110 throws class art.Test1928$TestExceptio… 4 …private static native art.StackTrace$StackFrameData[] art.StackTrace.nativeGetStackTrace(java.lang… 5 …public static art.StackTrace$StackFrameData[] art.StackTrace.GetStackTrace(java.lang.Thread) @ lin… 6 private static void art.Test1928.PrintStack() @ line = 35 7 …public static void art.Test1928.ExceptionEvent(java.lang.Thread,java.lang.reflect.Executable,long,… 8 public static void art.Test1928.doThrow() @ line = 110 9 public void art.Test1928$DoThrowClass.run() @ line = 114 10 public static void art.Test1928.run() throws java.lang.Exception @ line = 196 11 Will be caught by: public static void art.Test1928.run() throws java.lang.Exception @ line = 199 [all …]
|
/art/runtime/arch/x86_64/ |
D | callee_save_frame_x86_64.h | 28 namespace art { 32 (1 << art::x86_64::kNumberOfCpuRegisters); // Fake return address callee save. 34 (1 << art::x86_64::RBX) | (1 << art::x86_64::RBP) | (1 << art::x86_64::R12) | 35 (1 << art::x86_64::R13) | (1 << art::x86_64::R14) | (1 << art::x86_64::R15); 37 (1 << art::x86_64::RSI) | (1 << art::x86_64::RDX) | (1 << art::x86_64::RCX) | 38 (1 << art::x86_64::R8) | (1 << art::x86_64::R9); 40 (1 << art::x86_64::RAX) | (1 << art::x86_64::RCX) | (1 << art::x86_64::RDX) | 41 (1 << art::x86_64::RSI) | (1 << art::x86_64::RDI) | (1 << art::x86_64::R8) | 42 (1 << art::x86_64::R9) | (1 << art::x86_64::R10) | (1 << art::x86_64::R11); 45 (1 << art::x86_64::XMM0) | (1 << art::x86_64::XMM1) | (1 << art::x86_64::XMM2) | [all …]
|
/art/test/1922-owned-monitors-info/ |
D | expected.txt | 2 Running: [class art.Test1922$CallLockOther, class art.Test1922$CallLockOther, class art.Test1922$Ca… 4 Running: [class art.Test1922$CallLockOther, class art.Test1922$CallLockOther, class art.Test1922$Ca… 6 Running: [class art.Test1922$CallLockOther, class art.Test1922$CallLockOther, class art.Test1922$Ca… 8 Running: [class art.Test1922$CallLockOther, class art.Test1922$CallLockOther, class art.Test1922$Ca… 10 Running: [class art.Test1922$CallLockOther, class art.Test1922$CallLockOther, class art.Test1922$Ca… 11 Owned monitors: [NamedLock("Lock 1"), class art.Test1922$Target] 12 Running: [class art.Test1922$CallLockOther, class art.Test1922$CallLockOther, class art.Test1922$Ca… 14 Running: [class art.Test1922$CallLockOther, class art.Test1922$CallLockExtra, class art.Test1922$Ca… 16 Running: [class art.Test1922$CallLockOther, class art.Test1922$CallLockExtra, class art.Test1922$Ca… 18 Running: [class art.Test1922$CallLockOther, class art.Test1922$CallLockExtra, class art.Test1922$Ca… [all …]
|
/art/test/989-method-trace-throw/ |
D | expected.txt | 1 Normal: Entering public static void art.Test989.doNothing() 2 Normal: Leaving public static void art.Test989.doNothing() returned null 3 Received no exception as expected for test[class art.Test989$NormalTracer, class art.Test989$doNoth… 4 Normal: Entering public static native void art.Test989.doNothingNative() 5 Normal: Leaving public static native void art.Test989.doNothingNative() returned null 6 Received no exception as expected for test[class art.Test989$NormalTracer, class art.Test989$doNoth… 7 Normal: Entering public static void art.Test989.throwA() 8 Normal: Leaving public static void art.Test989.throwA() returned <exception> 9 Received expected error for test[class art.Test989$NormalTracer, class art.Test989$throwAClass] - a… 10 Normal: Entering public static native void art.Test989.throwANative() [all …]
|
/art/libartbase/base/ |
D | membarrier_test.cc | 27 bool HasMembarrier(art::MembarrierCommand cmd) { in HasMembarrier() 29 int supported_cmds = art::membarrier(art::MembarrierCommand::kQuery); in HasMembarrier() 35 int supported = art::membarrier(art::MembarrierCommand::kQuery); in TEST() 44 if (!HasMembarrier(art::MembarrierCommand::kGlobal)) { in TEST() 48 ASSERT_EQ(0, art::membarrier(art::MembarrierCommand::kGlobal)); in TEST() 51 static const char* MembarrierCommandToName(art::MembarrierCommand cmd) { in MembarrierCommandToName() 54 CASE_VALUE(art::MembarrierCommand::kQuery); in MembarrierCommandToName() 55 CASE_VALUE(art::MembarrierCommand::kGlobal); in MembarrierCommandToName() 56 CASE_VALUE(art::MembarrierCommand::kGlobalExpedited); in MembarrierCommandToName() 57 CASE_VALUE(art::MembarrierCommand::kRegisterGlobalExpedited); in MembarrierCommandToName() [all …]
|
/art/test/1927-exception-event/ |
D | expected.txt | 1 class art.Test1927$TestException 3 main: public static void art.Test1927.test_J() @ line = 110 throws class art.Test1927$TestException… 5 …private static native art.StackTrace$StackFrameData[] art.StackTrace.nativeGetStackTrace(java.lang… 6 …public static art.StackTrace$StackFrameData[] art.StackTrace.GetStackTrace(java.lang.Thread) @ lin… 7 private static void art.Test1927.PrintStack() @ line = 28 8 …public static void art.Test1927.ExceptionEvent(java.lang.Thread,java.lang.reflect.Executable,long,… 9 public static void art.Test1927.test_J() @ line = 110 10 public static void art.Test1927.run() throws java.lang.Exception @ line = 239 11 Will be caught by: public static void art.Test1927.test_J() @ line = 111 12 main: public static void art.Test1927.test_J() @ line = 111 caught class art.Test1927$TestException… [all …]
|