Lines Matching refs:art

54 void AllocationManager::PauseForAllocation(art::Thread* self, T msg) {  in PauseForAllocation()
61 art::Thread* pausing_thread = allocations_paused_thread_.load(std::memory_order_seq_cst); in PauseForAllocation()
68 art::ScopedThreadSuspension sts(self, art::ThreadState::kSuspended); in PauseForAllocation()
69 art::MutexLock mu(self, alloc_listener_mutex_); in PauseForAllocation()
86 void JvmtiAllocationListener::ObjectAllocated(art::Thread* self, in ObjectAllocated()
87 art::ObjPtr<art::mirror::Object>* obj, in ObjectAllocated()
99 void JvmtiAllocationListener::PreObjectAllocated(art::Thread* self, in PreObjectAllocated()
100 art::MutableHandle<art::mirror::Class> type, in PreObjectAllocated()
102 manager_->PauseForAllocation(self, [&]() REQUIRES_SHARED(art::Locks::mutator_lock_) { in PreObjectAllocated()
109 std::max(art::RoundUp(static_cast<size_t>(type->GetObjectSize()), art::kObjectAlignment), in PreObjectAllocated()
117 art::LockLevel::kPostUserCodeSuspensionTopLevelLock), in AllocationManager()
122 void AllocationManager::DisableAllocationCallback(art::Thread* self) { in DisableAllocationCallback()
127 void AllocationManager::EnableAllocationCallback(art::Thread* self) { in EnableAllocationCallback()
143 void AllocationManager::DecrListenerInstall(art::Thread* self) { in DecrListenerInstall()
144 art::ScopedThreadSuspension sts(self, art::ThreadState::kSuspended); in DecrListenerInstall()
145 art::MutexLock mu(self, alloc_listener_mutex_); in DecrListenerInstall()
149 art::Runtime::Current()->GetHeap()->RemoveAllocationListener(); in DecrListenerInstall()
153 void AllocationManager::IncrListenerInstall(art::Thread* self) { in IncrListenerInstall()
154 art::ScopedThreadSuspension sts(self, art::ThreadState::kSuspended); in IncrListenerInstall()
155 art::MutexLock mu(self, alloc_listener_mutex_); in IncrListenerInstall()
159 art::Runtime::Current()->GetHeap()->SetAllocationListener(alloc_listener_.get()); in IncrListenerInstall()
163 void AllocationManager::PauseAllocations(art::Thread* self) { in PauseAllocations()
164 art::Thread* null_thr = nullptr; in PauseAllocations()
199 art::ScopedThreadSuspension sts(self, art::ThreadState::kSuspended); in PauseAllocations()
200 art::Barrier barrier(0); in PauseAllocations()
201 art::FunctionClosure fc([&](art::Thread* thr ATTRIBUTE_UNUSED) { in PauseAllocations()
202 barrier.Pass(art::Thread::Current()); in PauseAllocations()
204 size_t requested = art::Runtime::Current()->GetThreadList()->RunCheckpoint(&fc); in PauseAllocations()
208 void AllocationManager::ResumeAllocations(art::Thread* self) { in ResumeAllocations()
212 art::ScopedThreadSuspension sts(self, art::ThreadState::kSuspended); in ResumeAllocations()
213 art::MutexLock mu(self, alloc_listener_mutex_); in ResumeAllocations()