diff options
author | Sverker Eriksson <[email protected]> | 2017-07-06 12:24:21 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2017-07-06 12:24:21 +0200 |
commit | af4f81a46d895c8a217c104c874a912073728374 (patch) | |
tree | db160c93f3c0dafe430c432fd9affe10fd742ce5 | |
parent | 4c7d3ed613b202a6abf6748417316da2a688f157 (diff) | |
parent | 5e0019ebb29a9fd88e0b04f0bd0b0d722e3f189e (diff) | |
download | otp-af4f81a46d895c8a217c104c874a912073728374.tar.gz otp-af4f81a46d895c8a217c104c874a912073728374.tar.bz2 otp-af4f81a46d895c8a217c104c874a912073728374.zip |
Merge branch 'maint'
-rw-r--r-- | erts/emulator/beam/erl_alloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_alloc.h b/erts/emulator/beam/erl_alloc.h index 7b5cbe2178..ee2d73afed 100644 --- a/erts/emulator/beam/erl_alloc.h +++ b/erts/emulator/beam/erl_alloc.h @@ -448,7 +448,7 @@ NAME##_free(TYPE *p) \ } #ifdef DEBUG -#define ERTS_PRE_ALLOC_SIZE(SZ) 2 +#define ERTS_PRE_ALLOC_SIZE(SZ) ((SZ) < 1000 ? (SZ)/10 + 10 : 100) #define ERTS_PRE_ALLOC_CLOBBER(P, T) memset((void *) (P), 0xfd, sizeof(T)) #else #define ERTS_PRE_ALLOC_SIZE(SZ) ((SZ) > 1 ? (SZ) : 1) |