Lines Matching full:proc
68 Processor *proc; member
72 , proc(ProcCreate()) { in GlobalProc()
84 if (thr->proc()) in ScopedGlobalProcessor()
86 // If we don't have a proc, use the global one. in ScopedGlobalProcessor()
98 // Ideally, we destroy thread state (and unwire proc) when a thread actually in ScopedGlobalProcessor()
99 // exits (i.e. when we join/wait it). Then we would not need the global proc in ScopedGlobalProcessor()
101 ProcWire(gp->proc, thr); in ScopedGlobalProcessor()
107 if (thr->proc() != gp->proc) in ~ScopedGlobalProcessor()
109 ProcUnwire(gp->proc, thr); in ~ScopedGlobalProcessor()
121 void AllocatorProcStart(Processor *proc) { in AllocatorProcStart() argument
122 allocator()->InitCache(&proc->alloc_cache); in AllocatorProcStart()
123 internal_allocator()->InitCache(&proc->internal_alloc_cache); in AllocatorProcStart()
126 void AllocatorProcFinish(Processor *proc) { in AllocatorProcFinish() argument
127 allocator()->DestroyCache(&proc->alloc_cache); in AllocatorProcFinish()
128 internal_allocator()->DestroyCache(&proc->internal_alloc_cache); in AllocatorProcFinish()
152 void *p = allocator()->Allocate(&thr->proc()->alloc_cache, sz, align); in user_alloc()
175 allocator()->Deallocate(&thr->proc()->alloc_cache, p); in user_free()
191 uptr sz = ctx->metamap.FreeBlock(thr->proc(), p); in OnUserFree()
248 return InternalAlloc(sz, &thr->proc()->internal_alloc_cache); in internal_alloc()
257 InternalFree(p, &thr->proc()->internal_alloc_cache); in internal_free()
299 allocator()->SwallowCache(&thr->proc()->alloc_cache); in __tsan_on_thread_idle()
300 internal_allocator()->SwallowCache(&thr->proc()->internal_alloc_cache); in __tsan_on_thread_idle()
301 ctx->metamap.OnProcIdle(thr->proc()); in __tsan_on_thread_idle()