diff options
author | Björn-Egil Dahlberg <[email protected]> | 2012-11-02 17:38:46 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2012-11-13 19:51:11 +0100 |
commit | 770ee09dfbe5c9024432ac8696be6b91d2ec9a9f (patch) | |
tree | 22c95fab7b675d9b5edabf3cbf7fb4a4e6094a99 /erts/emulator/beam | |
parent | a758faacea2e77039113995596ad87f67a48eec3 (diff) | |
download | otp-770ee09dfbe5c9024432ac8696be6b91d2ec9a9f.tar.gz otp-770ee09dfbe5c9024432ac8696be6b91d2ec9a9f.tar.bz2 otp-770ee09dfbe5c9024432ac8696be6b91d2ec9a9f.zip |
erts: New mseg allocator cache
* utilize the power of two
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/erl_alloc_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_alloc_util.c b/erts/emulator/beam/erl_alloc_util.c index 97ba306a79..1cceacce5c 100644 --- a/erts/emulator/beam/erl_alloc_util.c +++ b/erts/emulator/beam/erl_alloc_util.c @@ -510,7 +510,7 @@ alcu_mseg_alloc(Allctr_t *allctr, Uint *size_p) { void *res; - res = erts_mseg_alloc_opt(allctr->alloc_no, size_p, &allctr->mseg_opt); + res = erts_mseg_alloc_opt(allctr->alloc_no, size_p, (Uint)0, &allctr->mseg_opt); INC_CC(allctr->calls.mseg_alloc); return res; } @@ -521,7 +521,7 @@ alcu_mseg_realloc(Allctr_t *allctr, void *seg, Uint old_size, Uint *new_size_p) void *res; res = erts_mseg_realloc_opt(allctr->alloc_no, seg, old_size, new_size_p, - &allctr->mseg_opt); + (Uint)0, &allctr->mseg_opt); INC_CC(allctr->calls.mseg_realloc); return res; } |