git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 487e986) | patch
Specialize MemoryContextMemAllocated().
2020年3月18日 22:39:14 +0000 (15:39 -0700)
2020年3月18日 22:39:14 +0000 (15:39 -0700)
commit e00912e11a9ec2d29274ed8a6465e81385906dc2
Specialize MemoryContextMemAllocated().

An AllocSet doubles the size of allocated blocks (up to maxBlockSize),
which means that the current block can represent half of the total
allocated space for the memory context. But the free space in the
current block may never have been touched, so don't count the
untouched memory as allocated for the purposes of
MemoryContextMemAllocated().

Discussion: https://postgr.es/m/ec63d70b668818255486a83ffadc3aec492c1f57.camel@j-davis.com
src/backend/utils/mmgr/aset.c diff | blob | blame | history
src/backend/utils/mmgr/generation.c diff | blob | blame | history
src/backend/utils/mmgr/mcxt.c diff | blob | blame | history
src/backend/utils/mmgr/slab.c diff | blob | blame | history
src/include/nodes/memnodes.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /