Change 19834 by [EMAIL PROTECTED] on 2003/06/20 08:42:58
Allow for things like -DFILL_CHECK_DEFAULT=0 (from Ilya).
Affected files ...
... //depot/perl/malloc.c#100 edit
Differences ...
==== //depot/perl/malloc.c#100 (text) ====
Index: perl/malloc.c
--- perl/malloc.c#99~19833~ Fri Jun 20 01:16:02 2003
+++ perl/malloc.c Fri Jun 20 01:42:58 2003
@@ -1035,6 +1035,16 @@
#ifndef NO_MALLOC_DYNAMIC_CFG
# define PERL_MALLOC_OPT_CHARS "FMfAPGdac"
+# ifndef FILL_DEAD_DEFAULT
+# define FILL_DEAD_DEFAULT 1
+# endif
+# ifndef FILL_ALIVE_DEFAULT
+# define FILL_ALIVE_DEFAULT 1
+# endif
+# ifndef FILL_CHECK_DEFAULT
+# define FILL_CHECK_DEFAULT 1
+# endif
+
static IV MallocCfg[MallocCfg_last] = {
FIRST_SBRK,
MIN_SBRK,
@@ -1042,9 +1052,9 @@
SBRK_ALLOW_FAILURES,
SBRK_FAILURE_PRICE,
SBRK_ALLOW_FAILURES * SBRK_FAILURE_PRICE, /* sbrk_goodness */
- 1, /* FILL_DEAD */
- 1, /* FILL_ALIVE */
- 1, /* FILL_CHECK */
+ FILL_DEAD_DEFAULT, /* FILL_DEAD */
+ FILL_ALIVE_DEFAULT, /* FILL_ALIVE */
+ FILL_CHECK_DEFAULT, /* FILL_CHECK */
0, /* MallocCfg_skip_cfg_env */
0, /* MallocCfg_cfg_env_read */
0, /* MallocCfg_emergency_buffer_size */
End of Patch.