Setup a newly mapped span
| 1168 | |
| 1169 | //! Setup a newly mapped span |
| 1170 | static 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 | |
| 1179 | static void |
| 1180 | _rpmalloc_span_unmap(span_t* span); |
no test coverage detected