aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_alloc.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2012-02-03 18:12:17 +0100
committerSverker Eriksson <[email protected]>2012-02-21 12:23:06 +0100
commit63265772e86ca2e0f14a236c8aa964697a7cda70 (patch)
treec9a9df9fa79c79c5007d303d74c3eebdb0c87e67 /erts/emulator/beam/erl_alloc.c
parente148e9fc3e11eb6e08e2dc94a468dc433864b11b (diff)
downloadotp-63265772e86ca2e0f14a236c8aa964697a7cda70.tar.gz
otp-63265772e86ca2e0f14a236c8aa964697a7cda70.tar.bz2
otp-63265772e86ca2e0f14a236c8aa964697a7cda70.zip
erts: Fix memory reports from export table
Report sum from all code index.
Diffstat (limited to 'erts/emulator/beam/erl_alloc.c')
-rw-r--r--erts/emulator/beam/erl_alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_alloc.c b/erts/emulator/beam/erl_alloc.c
index bf7c53bf1a..ac92822aca 100644
--- a/erts/emulator/beam/erl_alloc.c
+++ b/erts/emulator/beam/erl_alloc.c
@@ -2185,7 +2185,7 @@ erts_memory(int *print_to_p, void *print_to_arg, void *proc, Eterm earg)
if (want.code) {
size.code = module_table_sz();
size.code += export_table_sz();
- size.code += export_list_size(erts_active_code_ix()) * sizeof(Export);
+ size.code += export_entries_sz();
size.code += erts_fun_table_sz();
size.code += erts_ranges_sz();
size.code += erts_total_code_size;
@@ -2335,7 +2335,7 @@ erts_allocated_areas(int *print_to_p, void *print_to_arg, void *proc)
values[i].arity = 2;
values[i].name = "export_list";
- values[i].ui[0] = export_list_size(erts_active_code_ix ()) * sizeof(Export);
+ values[i].ui[0] = export_entries_sz();
i++;
values[i].arity = 2;