Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/iso_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ INTERNAL_HIDDEN iso_alloc_zone_t *iso_new_zone(size_t size, bool internal) {

/* Requires the root is locked */
INTERNAL_HIDDEN iso_alloc_zone_t *_iso_new_zone(size_t size, bool internal, int32_t index) {
if(UNLIKELY(_root->zones_used >= MAX_ZONES) || UNLIKELY(index > 0 && index >= MAX_ZONES)) {
if(UNLIKELY(_root->zones_used >= MAX_ZONES) || UNLIKELY(index >= MAX_ZONES)) {
LOG_AND_ABORT("Cannot allocate additional zones. I have already allocated %d", _root->zones_used);
}

Expand Down Expand Up @@ -826,7 +826,7 @@ INTERNAL_HIDDEN iso_alloc_zone_t *_iso_new_zone(size_t size, bool internal, int3
zone_lookup_table[size] = new_zone->index;
} else {
/* If this was a zone replacement then its next_sz_index
* is in tact and we can leave it alone */
* is intact and we can leave it alone */
if(index < 0) {
/* Other zones exist that hold this size. We need to
* fixup the most recent ones next_sz_index member.
Expand Down