Skip to content
HeapAllocatorXlCount

HeapAllocatorXlCount

Description

Live XL region count. One entry per allocation that exceeded the 2 KiB classed-bin cap and was served as a standalone page-aligned mmap.

Usage example (Cross-references)

Usage examples (Cross-references)
            p[0]     = 0xAB;
            p[n - 1] = 0xCD;
            ok       = (p[0] == 0xAB) && (p[n - 1] == 0xCD) && (HeapAllocatorXlCount(&heap) == 1);
            AllocatorFree(alloc, p);
            ok = ok && (HeapAllocatorXlCount(&heap) == 0);
            ok       = (p[0] == 0xAB) && (p[n - 1] == 0xCD) && (HeapAllocatorXlCount(&heap) == 1);
            AllocatorFree(alloc, p);
            ok = ok && (HeapAllocatorXlCount(&heap) == 0);
        }
        HeapAllocatorDeinit(&heap);
Last updated on