mirror of
https://github.com/postgres/postgres.git
synced 2025-07-24 14:22:24 +03:00
Update comment, generation mem contexts have a "keeper" block
The keeper block was introduced in commit 1b0d9aa4f7
, but it forgot
to update this comment.
This commit is contained in:
@ -271,8 +271,10 @@ GenerationContextCreate(MemoryContext parent,
|
|||||||
* GenerationReset
|
* GenerationReset
|
||||||
* Frees all memory which is allocated in the given set.
|
* Frees all memory which is allocated in the given set.
|
||||||
*
|
*
|
||||||
* The code simply frees all the blocks in the context - we don't keep any
|
* The initial "keeper" block (which shares a malloc chunk with the context
|
||||||
* keeper blocks or anything like that.
|
* header) is not given back to the operating system though. In this way, we
|
||||||
|
* don't thrash malloc() when a context is repeatedly reset after small
|
||||||
|
* allocations.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
GenerationReset(MemoryContext context)
|
GenerationReset(MemoryContext context)
|
||||||
|
Reference in New Issue
Block a user