OSDN Git Service

Code review for palloc0 patch --- avoid dangerous and unnecessary
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 16 Dec 2002 16:22:46 +0000 (16:22 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 16 Dec 2002 16:22:46 +0000 (16:22 +0000)
commit88177f77b17ef478da1dbca9acb5e3a61b346613
tree6aca48712e12bbdd7a7bab849dcaac3f25684e32
parente64c7feb2fd80c89d2220cbe9e026a031f34509c
Code review for palloc0 patch --- avoid dangerous and unnecessary
practice of evaluating MemSet's arguments multiple times, except for
the special case of newNode(), where we can assume the argument is
a constant sizeof() operator.
Also, add GetMemoryChunkContext() to mcxt.c's API, in preparation for
fixing recent GEQO breakage.
src/backend/nodes/nodes.c
src/backend/utils/mmgr/mcxt.c
src/include/c.h
src/include/nodes/nodes.h
src/include/utils/memutils.h
src/include/utils/palloc.h