Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c96439b

Browse files
committed
Don't make --enable-cassert turn on RANDOMIZE_ALLOCATED_MEMORY automatically;
it's just too dang expensive. Per recent discussion, but I just got my nose rubbed in it again while doing some performance checking.
1 parent 960af47 commit c96439b

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/include/pg_config_manual.h

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* for developers. If you edit any of these, be sure to do a *full*
77
* rebuild (and an initdb if noted).
88
*
9-
* $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.34 2008/06/24 17:58:27 tgl Exp $
9+
* $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.35 2008/07/12 02:28:43 tgl Exp $
1010
*------------------------------------------------------------------------
1111
*/
1212

@@ -154,15 +154,6 @@
154154
*------------------------------------------------------------------------
155155
*/
156156

157-
/*
158-
* Define this to cause palloc()'d memory to be filled with random data, to
159-
* facilitate catching code that depends on the contents of uninitialized
160-
* memory. Right now, this gets defined automatically if --enable-cassert.
161-
*/
162-
#ifdef USE_ASSERT_CHECKING
163-
#define RANDOMIZE_ALLOCATED_MEMORY
164-
#endif
165-
166157
/*
167158
* Define this to cause pfree()'d memory to be cleared immediately, to
168159
* facilitate catching bugs that refer to already-freed values.
@@ -181,6 +172,13 @@
181172
#define MEMORY_CONTEXT_CHECKING
182173
#endif
183174

175+
/*
176+
* Define this to cause palloc()'d memory to be filled with random data, to
177+
* facilitate catching code that depends on the contents of uninitialized
178+
* memory. Caution: this is horrendously expensive.
179+
*/
180+
/* #define RANDOMIZE_ALLOCATED_MEMORY */
181+
184182
/*
185183
* Define this to force all parse and plan trees to be passed through
186184
* copyObject(), to facilitate catching errors and omissions in

0 commit comments

Comments
 (0)