Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc96439b

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 mynose rubbed in it again while doing some performance checking.
1 parent960af47 commitc96439b

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-
#ifdefUSE_ASSERT_CHECKING
163-
#defineRANDOMIZE_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
#defineMEMORY_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)

[8]ページ先頭

©2009-2025 Movatter.jp