__asm__ (GOSYM_PREFIX "runtime.MemProfileRate");
static MSpan* largealloc(uint32, uintptr*);
-static void profilealloc(void *v, uintptr size);
+static void runtime_profilealloc(void *v, uintptr size);
static void settype(MSpan *s, void *v, uintptr typ);
// Allocate an object of at least size bytes.
if(size < (uintptr)rate && size < (uintptr)(uint32)c->next_sample)
c->next_sample -= size;
else
- profilealloc(v, size);
+ runtime_profilealloc(v, size);
}
m->locks--;
}
static void
-profilealloc(void *v, uintptr size)
+runtime_profilealloc(void *v, uintptr size)
{
uintptr rate;
int32 next;