*** pgsql/src/backend/utils/mmgr/aset.c 2009/07/21 19:53:12 1.80 --- pgsql/src/backend/utils/mmgr/aset.c 2010/01/01 19:57:07 1.81 *************** *** 11,17 **** * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/utils/mmgr/aset.c,v 1.79 2009/06/11 14:49:06 momjian Exp $ * * NOTE: * This is a new (Feb. 05, 1999) implementation of the allocation set --- 11,17 ---- * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/utils/mmgr/aset.c,v 1.80 2009/07/21 19:53:12 tgl Exp $ * * NOTE: * This is a new (Feb. 05, 1999) implementation of the allocation set *************** AllocSetAlloc(MemoryContext context, Siz *** 698,708 **** * freelist than the one we need to put this chunk on. The * exception is when availchunk is exactly a power of 2. */ ! if (availchunk != (1 << (a_fidx + ALLOC_MINBITS))) { a_fidx--; Assert(a_fidx >= 0); ! availchunk = (1 << (a_fidx + ALLOC_MINBITS)); } chunk = (AllocChunk) (block->freeptr); --- 698,708 ---- * freelist than the one we need to put this chunk on. The * exception is when availchunk is exactly a power of 2. */ ! if (availchunk != ((Size) 1 << (a_fidx + ALLOC_MINBITS))) { a_fidx--; Assert(a_fidx >= 0); ! availchunk = ((Size) 1 << (a_fidx + ALLOC_MINBITS)); } chunk = (AllocChunk) (block->freeptr);