8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 838fe6f commit c9c42f4Copy full SHA for c9c42f4
Objects/obmalloc.c
@@ -1426,10 +1426,12 @@ address_in_range(void *p, poolp pool)
1426
1427
/*==========================================================================*/
1428
1429
+// Called when freelist is exhausted. Extend the freelist if there is
1430
+// space for a block. Otherwise, remove this pool from usedpools.
1431
static void
1432
pymalloc_pool_extend(poolp pool, uint size)
1433
{
- if (LIKELY(pool->nextoffset <= pool->maxnextoffset)) {
1434
+ if (UNLIKELY(pool->nextoffset <= pool->maxnextoffset)) {
1435
/* There is room for another block. */
1436
pool->freeblock = (block*)pool + pool->nextoffset;
1437
pool->nextoffset += INDEX2SIZE(size);
0 commit comments