summaryrefslogtreecommitdiff
path: root/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc.c')
-rw-r--r--malloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/malloc.c b/malloc.c
index 6f8f548f1e..0e1745844a 100644
--- a/malloc.c
+++ b/malloc.c
@@ -618,6 +618,9 @@ realloc(void *mp, size_t nbytes)
* FIRST_BIG_TWO_POT, but the new one is near the lower end.
*/
if (was_alloced &&
+#ifdef STRESS_REALLOC
+ 0 && /* always do it the hard way */
+#endif
nbytes <= onb && (nbytes > ( (onb >> 1) - M_OVERHEAD )
#ifdef TWO_POT_OPTIMIZE
|| (i == (FIRST_BIG_TWO_POT - 3)