Lines Matching refs:tid
70 static void* new_block(ThreadId tid, SizeT size, SizeT align, Bool is_zeroed) in new_block() argument
80 DRD_(malloclike_block)(tid, (Addr)p, size); in new_block()
89 void DRD_(malloclike_block)(const ThreadId tid, const Addr p, const SizeT size) in DRD_()
105 mc->where = VG_(record_ExeContext)(tid, 0); in DRD_()
109 static void handle_free(ThreadId tid, void* p) in handle_free() argument
114 success = DRD_(freelike_block)(tid, (Addr)p, True); in handle_free()
122 Bool DRD_(freelike_block)(const ThreadId tid, const Addr p, const Bool dealloc) in DRD_()
146 static void* drd_malloc(ThreadId tid, SizeT n) in drd_malloc() argument
148 return new_block(tid, n, VG_(clo_alignment), /*is_zeroed*/False); in drd_malloc()
152 static void* drd_memalign(ThreadId tid, SizeT align, SizeT n) in drd_memalign() argument
154 return new_block(tid, n, align, /*is_zeroed*/False); in drd_memalign()
158 static void* drd_calloc(ThreadId tid, SizeT nmemb, SizeT size1) in drd_calloc() argument
160 return new_block(tid, nmemb*size1, VG_(clo_alignment), in drd_calloc()
165 static void drd_free(ThreadId tid, void* p) in drd_free() argument
167 handle_free(tid, p); in drd_free()
178 static void* drd_realloc(ThreadId tid, void* p_old, SizeT new_size) in drd_realloc() argument
185 return drd_malloc(tid, new_size); in drd_realloc()
189 drd_free(tid, p_old); in drd_realloc()
209 mc->where = VG_(record_ExeContext)(tid, 0); in drd_realloc()
217 mc->where = VG_(record_ExeContext)(tid, 0); in drd_realloc()
239 mc->where = VG_(record_ExeContext)(tid, 0); in drd_realloc()
253 static void* drd___builtin_new(ThreadId tid, SizeT n) in drd___builtin_new() argument
255 return new_block(tid, n, VG_(clo_alignment), /*is_zeroed*/False); in drd___builtin_new()
259 static void drd___builtin_delete(ThreadId tid, void* p) in drd___builtin_delete() argument
261 handle_free(tid, p); in drd___builtin_delete()
265 static void* drd___builtin_vec_new(ThreadId tid, SizeT n) in drd___builtin_vec_new() argument
267 return new_block(tid, n, VG_(clo_alignment), /*is_zeroed*/False); in drd___builtin_vec_new()
271 static void drd___builtin_vec_delete(ThreadId tid, void* p) in drd___builtin_vec_delete() argument
273 handle_free(tid, p); in drd___builtin_vec_delete()
282 static SizeT drd_malloc_usable_size(ThreadId tid, void* p) in drd_malloc_usable_size() argument