MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / _rpmalloc_span_initialize

Function _rpmalloc_span_initialize

source/extern/rpmalloc.c:1170–1177  ·  view source on GitHub ↗

Setup a newly mapped span

Source from the content-addressed store, hash-verified

1168
1169//! Setup a newly mapped span
1170static void
1171_rpmalloc_span_initialize(span_t* span, size_t total_span_count, size_t span_count, size_t align_offset) {
1172 span->total_spans = (uint32_t)total_span_count;
1173 span->span_count = (uint32_t)span_count;
1174 span->align_offset = (uint32_t)align_offset;
1175 span->flags = SPAN_FLAG_MASTER;
1176 atomic_store32(&span->remaining_spans, (int32_t)total_span_count);
1177}
1178
1179static void
1180_rpmalloc_span_unmap(span_t* span);

Callers 2

Calls 1

atomic_store32Function · 0.85

Tested by

no test coverage detected