Home | History | Annotate | Download | only in msan

Lines Matching refs:stack

110 static void *MsanAllocate(StackTrace *stack, uptr size, uptr alignment,
135 stack->tag = StackTrace::TAG_ALLOC;
136 Origin o = Origin::CreateHeapOrigin(stack);
144 void MsanDeallocate(StackTrace *stack, void *p) {
155 stack->tag = StackTrace::TAG_DEALLOC;
156 Origin o = Origin::CreateHeapOrigin(stack);
171 void *MsanCalloc(StackTrace *stack, uptr nmemb, uptr size) {
174 return MsanReallocate(stack, nullptr, nmemb * size, sizeof(u64), true);
177 void *MsanReallocate(StackTrace *stack, void *old_p, uptr new_size,
180 return MsanAllocate(stack, new_size, alignment, zeroise);
182 MsanDeallocate(stack, old_p);
196 stack->tag = StackTrace::TAG_ALLOC;
197 PoisonMemory((char *)old_p + old_size, new_size - old_size, stack);
203 void *new_p = MsanAllocate(stack, new_size, alignment, zeroise);
206 CopyMemory(new_p, old_p, memcpy_size, stack);
207 MsanDeallocate(stack, old_p);