MBlock *b = ctx->metamap.GetBlock(cbctx.start);
if (!b)
return 0;
- auto loc = New<ReportLocation>();
+ auto *loc = New<ReportLocation>();
loc->type = ReportLocationHeap;
loc->heap_chunk_start = cbctx.start;
loc->heap_chunk_size = b->siz;
loc->stack = SymbolizeStackId(b->stk);
return loc;
} else {
- auto loc = New<ReportLocation>();
+ auto *loc = New<ReportLocation>();
loc->type = ReportLocationGlobal;
loc->global.name = internal_strdup(cbctx.name ? cbctx.name : "??");
loc->global.file = internal_strdup(cbctx.file ? cbctx.file : "??");
extern "C" {
static ThreadState *AllocGoroutine() {
- auto thr = (ThreadState *)Alloc(sizeof(ThreadState));
+ auto *thr = (ThreadState *)Alloc(sizeof(ThreadState));
internal_memset(thr, 0, sizeof(*thr));
return thr;
}
void GrowShadowStack(ThreadState *thr) {
const int sz = thr->shadow_stack_end - thr->shadow_stack;
const int newsz = 2 * sz;
- auto newstack = (uptr *)Alloc(newsz * sizeof(uptr));
+ auto *newstack = (uptr *)Alloc(newsz * sizeof(uptr));
internal_memcpy(newstack, thr->shadow_stack, sz * sizeof(uptr));
Free(thr->shadow_stack);
thr->shadow_stack = newstack;