diff options
author | Sverker Eriksson <[email protected]> | 2013-04-02 18:38:51 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2013-04-02 18:38:51 +0200 |
commit | a95050941b2f75856e3ecc6dfc3934d6358bd528 (patch) | |
tree | dfe7151e5bf1f741def3654ea4b36c2e17a3bdf3 /erts/emulator/beam/erl_alloc.c | |
parent | 965ad89a5e94ee6e72574dec5936a4e9d9504021 (diff) | |
download | otp-a95050941b2f75856e3ecc6dfc3934d6358bd528.tar.gz otp-a95050941b2f75856e3ecc6dfc3934d6358bd528.tar.bz2 otp-a95050941b2f75856e3ecc6dfc3934d6358bd528.zip |
erts: Fix benign size-bug for fix-allocators MONITOR_SH and NLINK_SH
Bug will (as it seems) only result in faulty statistics.
Diffstat (limited to 'erts/emulator/beam/erl_alloc.c')
-rw-r--r-- | erts/emulator/beam/erl_alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_alloc.c b/erts/emulator/beam/erl_alloc.c index d748f86d75..d53f23b0e3 100644 --- a/erts/emulator/beam/erl_alloc.c +++ b/erts/emulator/beam/erl_alloc.c @@ -515,9 +515,9 @@ erts_alloc_init(int *argc, char **argv, ErtsAllocInitOpts *eaiop) = sizeof(Process); #if !HALFWORD_HEAP fix_type_sizes[ERTS_ALC_FIX_TYPE_IX(ERTS_ALC_T_MONITOR_SH)] - = ERTS_MONITOR_SH_SIZE; + = ERTS_MONITOR_SH_SIZE * sizeof(Uint); fix_type_sizes[ERTS_ALC_FIX_TYPE_IX(ERTS_ALC_T_NLINK_SH)] - = ERTS_LINK_SH_SIZE; + = ERTS_LINK_SH_SIZE * sizeof(Uint); #endif fix_type_sizes[ERTS_ALC_FIX_TYPE_IX(ERTS_ALC_T_DRV_EV_D_STATE)] = sizeof(ErtsDrvEventDataState); |