8000 s/LIKELY/UNLIKELY/ · python/cpython@c9c42f4 · GitHub
[go: up one dir, main page]

Skip to content

Commit c9c42f4

Browse files
committed
s/LIKELY/UNLIKELY/
1 parent 838fe6f commit c9c42f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Objects/obmalloc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1426,10 +1426,12 @@ address_in_range(void *p, poolp pool)
14261426

14271427
/*==========================================================================*/
14281428

1429+
// Called when freelist is exhausted. Extend the freelist if there is
1430+
// space for a block. Otherwise, remove this pool from usedpools.
14291431
static void
14301432
pymalloc_pool_extend(poolp pool, uint size)
14311433
{
1432-
if (LIKELY(pool->nextoffset <= pool->maxnextoffset)) {
1434+
if (UNLIKELY(pool->nextoffset <= pool->maxnextoffset)) {
14331435
/* There is room for another block. */
14341436
pool->freeblock = (block*)pool + pool->nextoffset;
14351437
pool->nextoffset += INDEX2SIZE(size);

0 commit comments

Comments
 (0)
0