Lines Matching refs:closure
277 GetStackTraceDirectClosure closure(frame_buffer, in GetStackTrace() local
281 if (!thread->RequestSynchronousCheckpoint(&closure)) { in GetStackTrace()
284 *count_ptr = static_cast<jint>(closure.index); in GetStackTrace()
285 if (closure.index == 0) { in GetStackTrace()
292 GetStackTraceVectorClosure closure(0, 0); in GetStackTrace() local
294 if (!thread->RequestSynchronousCheckpoint(&closure)) { in GetStackTrace()
298 return TranslateFrameVector(closure.frames, in GetStackTrace()
300 closure.start_result, in GetStackTrace()
350 GetAllStackTracesVectorClosure<Data> closure(max_frame_count, data); in RunCheckpointAndWait() local
351 size_t barrier_count = art::Runtime::Current()->GetThreadList()->RunCheckpoint(&closure, nullptr); in RunCheckpointAndWait()
357 closure.barrier.Increment(self, barrier_count); in RunCheckpointAndWait()
730 GetFrameCountClosure closure; in GetFrameCount() local
732 if (!thread->RequestSynchronousCheckpoint(&closure)) { in GetFrameCount()
736 *count_ptr = closure.count; in GetFrameCount()
804 GetLocationClosure closure(static_cast<size_t>(depth)); in GetFrameLocation() local
806 if (!thread->RequestSynchronousCheckpoint(&closure)) { in GetFrameLocation()
810 if (closure.method == nullptr) { in GetFrameLocation()
814 *method_ptr = art::jni::EncodeArtMethod(closure.method); in GetFrameLocation()
815 if (closure.method->IsNative() || closure.method->IsProxyMethod()) { in GetFrameLocation()
818 if (closure.dex_pc == art::dex::kDexNoIndex) { in GetFrameLocation()
821 *location_ptr = static_cast<jlocation>(closure.dex_pc); in GetFrameLocation()
914 MonitorInfoClosure<Fn> closure(handle_results); in GetOwnedMonitorInfoCommon() local
929 if (!target->RequestSynchronousCheckpoint(&closure, art::ThreadState::kRunnable)) { in GetOwnedMonitorInfoCommon()
941 closure.Run(self); in GetOwnedMonitorInfoCommon()
943 return closure.GetError(); in GetOwnedMonitorInfoCommon()