Lines Matching full:instance
55 void init(Allocator *Instance) REQUIRES(Mutex) {
57 Instance->init();
59 FallbackTSD.init(Instance);
63 void initOnceMaybe(Allocator *Instance) EXCLUDES(Mutex) {
67 init(Instance); // Sets Initialized.
70 void unmapTestOnly(Allocator *Instance) EXCLUDES(Mutex) {
71 DCHECK(Instance);
74 Instance);
75 ThreadTSD.commitBack(Instance);
80 FallbackTSD.commitBack(Instance);
87 void drainCaches(Allocator *Instance) {
90 Instance->drainCache(&ThreadTSD);
92 Instance->drainCache(&FallbackTSD);
96 ALWAYS_INLINE void initThreadMaybe(Allocator *Instance, bool MinimalInit) {
99 initThread(Instance, MinimalInit);
149 NOINLINE void initThread(Allocator *Instance, bool MinimalInit) {
150 initOnceMaybe(Instance);
154 pthread_setspecific(PThreadKey, reinterpret_cast<void *>(Instance)), 0);
155 ThreadTSD.init(Instance);
157 Instance->callPostInitCallback();
179 Allocator *Instance = reinterpret_cast<Allocator *>(Ptr);
188 if (LIKELY(pthread_setspecific(Instance->getTSDRegistry()->PThreadKey,
192 TSDRegistryT::ThreadTSD.commitBack(Instance);