Skip to content

Commit

Permalink
s/LIKELY/UNLIKELY/
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Jul 12, 2019
1 parent 838fe6f commit c9c42f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Objects/obmalloc.c
Expand Up @@ -1426,10 +1426,12 @@ address_in_range(void *p, poolp pool)

/*==========================================================================*/

// Called when freelist is exhausted. Extend the freelist if there is
// space for a block. Otherwise, remove this pool from usedpools.
static void
pymalloc_pool_extend(poolp pool, uint size)
{
if (LIKELY(pool->nextoffset <= pool->maxnextoffset)) {
if (UNLIKELY(pool->nextoffset <= pool->maxnextoffset)) {
/* There is room for another block. */
pool->freeblock = (block*)pool + pool->nextoffset;
pool->nextoffset += INDEX2SIZE(size);
Expand Down

0 comments on commit c9c42f4

Please sign in to comment.