MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / validate_alloc_alignment

Function validate_alloc_alignment

system/lib/emmalloc.c:646–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644}
645
646static size_t validate_alloc_alignment(size_t alignment) {
647 // Cannot perform allocations that are less than our minimal alignment, because
648 // the Region control structures need to be aligned themselves.
649 return MAX(alignment, MALLOC_ALIGNMENT);
650}
651
652static size_t validate_alloc_size(size_t size) {
653 assert(size + REGION_HEADER_SIZE > size);

Callers 1

allocate_memoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected