Make useful infrastructure from aset.c generally available.
Andres Freund <andres@anarazel.de>
Make useful infrastructure from aset.c generally available. An upcoming patch introduces a new type of memory context. To avoid duplicating debugging infrastructure within aset.c, move useful pieces to memdebug.[ch]. While touching aset.c, fix printf format code in AllocFree* debug macros. Author: Tomas Vondra Reviewed-By: Andres Freund Discussion: https://postgr.es/m/b3b2245c-b37a-e1e5-ebc4-857c914bc747@2ndquadrant.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/mmgr/aset.c | modified | +2 −113 |
| src/backend/utils/mmgr/Makefile | modified | +1 −1 |
| src/backend/utils/mmgr/memdebug.c | added | +93 −0 |
| src/include/utils/memdebug.h | modified | +48 −0 |
Discussion
- PATCH: two slab-like memory allocators 102 messages · 2016-08-02 → 2017-09-24