int offset;
int size = SGEN_PINNED_CHUNK_SIZE;
- chunk = sgen_alloc_os_memory_aligned (size, size, TRUE);
+ chunk = sgen_alloc_os_memory_aligned (size, size, TRUE, "pinned chunk");
chunk->block.role = MEMORY_ROLE_PINNED;
sgen_update_heap_boundaries ((mword)chunk, ((mword)chunk + size));
LargePinnedMemHeader *mh;
size += sizeof (LargePinnedMemHeader);
- mh = sgen_alloc_os_memory (size, TRUE);
+ mh = sgen_alloc_os_memory (size, TRUE, "large pinned object");
mh->magic = LARGE_PINNED_MEM_HEADER_MAGIC;
mh->size = size;
/* FIXME: do a CAS here */