Update for PR

Readd sprite tracker to not reuse indices
check for capacity when returning pool entries
Update script for printing memory map
This commit is contained in:
Rickey Fehr
2025-10-17 16:55:09 -07:00
parent d499abe2c4
commit 16059ab632
5 changed files with 43 additions and 7 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ int pool_bm_get_free_idx(PoolBitmap *bm)
int bit = __builtin_ctz(inv);
bm->w[i] |= ((u32)1 << bit);
int idx = i * POOL_BITS_PER_WORD + bit;
return idx;
return (idx < bm->cap) ? idx : -1;
}
}