@@ -438,14 +438,14 @@ AllocSetContextCreate(MemoryContext parent,
438
438
Size initBlockSize ,
439
439
Size maxBlockSize )
440
440
{
441
- AllocSet context ;
441
+ AllocSet set ;
442
442
443
443
/* Do the type-independent part of context creation */
444
- context = (AllocSet ) MemoryContextCreate (T_AllocSetContext ,
445
- sizeof (AllocSetContext ),
446
- & AllocSetMethods ,
447
- parent ,
448
- name );
444
+ set = (AllocSet ) MemoryContextCreate (T_AllocSetContext ,
445
+ sizeof (AllocSetContext ),
446
+ & AllocSetMethods ,
447
+ parent ,
448
+ name );
449
449
450
450
/*
451
451
* Make sure alloc parameters are reasonable, and save them.
@@ -459,9 +459,9 @@ AllocSetContextCreate(MemoryContext parent,
459
459
if (maxBlockSize < initBlockSize )
460
460
maxBlockSize = initBlockSize ;
461
461
Assert (AllocHugeSizeIsValid (maxBlockSize )); /* must be safe to double */
462
- context -> initBlockSize = initBlockSize ;
463
- context -> maxBlockSize = maxBlockSize ;
464
- context -> nextBlockSize = initBlockSize ;
462
+ set -> initBlockSize = initBlockSize ;
463
+ set -> maxBlockSize = maxBlockSize ;
464
+ set -> nextBlockSize = initBlockSize ;
465
465
466
466
/*
467
467
* Compute the allocation chunk size limit for this context. It can't be
@@ -477,10 +477,10 @@ AllocSetContextCreate(MemoryContext parent,
477
477
* and actually-allocated sizes of any chunk must be on the same side of
478
478
* the limit, else we get confused about whether the chunk is "big".
479
479
*/
480
- context -> allocChunkLimit = ALLOC_CHUNK_LIMIT ;
481
- while ((Size ) (context -> allocChunkLimit + ALLOC_CHUNKHDRSZ ) >
480
+ set -> allocChunkLimit = ALLOC_CHUNK_LIMIT ;
481
+ while ((Size ) (set -> allocChunkLimit + ALLOC_CHUNKHDRSZ ) >
482
482
(Size ) ((maxBlockSize - ALLOC_BLOCKHDRSZ ) / ALLOC_CHUNK_FRACTION ))
483
- context -> allocChunkLimit >>= 1 ;
483
+ set -> allocChunkLimit >>= 1 ;
484
484
485
485
/*
486
486
* Grab always-allocated space, if requested
@@ -500,20 +500,20 @@ AllocSetContextCreate(MemoryContext parent,
500
500
errdetail ("Failed while creating memory context \"%s\"." ,
501
501
name )));
502
502
}
503
- block -> aset = context ;
503
+ block -> aset = set ;
504
504
block -> freeptr = ((char * ) block ) + ALLOC_BLOCKHDRSZ ;
505
505
block -> endptr = ((char * ) block ) + blksize ;
506
- block -> next = context -> blocks ;
507
- context -> blocks = block ;
506
+ block -> next = set -> blocks ;
507
+ set -> blocks = block ;
508
508
/* Mark block as not to be released at reset time */
509
- context -> keeper = block ;
509
+ set -> keeper = block ;
510
510
511
511
/* Mark unallocated space NOACCESS; leave the block header alone. */
512
512
VALGRIND_MAKE_MEM_NOACCESS (block -> freeptr ,
513
513
blksize - ALLOC_BLOCKHDRSZ );
514
514
}
515
515
516
- return (MemoryContext ) context ;
516
+ return (MemoryContext ) set ;
517
517
}
518
518
519
519
/*
0 commit comments