diff options
author | Satoshi Kinoshita <[email protected]> | 2010-04-08 12:17:12 +0900 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-04-08 10:10:52 +0200 |
commit | ac8f094ba44e70d8cce080b639787b33aa895772 (patch) | |
tree | 82918c6ee377d77c2882c58ed7c585d05535de28 /erts/emulator/beam/break.c | |
parent | 6fd69d6ca5cea3aae4afce7544ba6b729221885c (diff) | |
download | otp-ac8f094ba44e70d8cce080b639787b33aa895772.tar.gz otp-ac8f094ba44e70d8cce080b639787b33aa895772.tar.bz2 otp-ac8f094ba44e70d8cce080b639787b33aa895772.zip |
system_info(procs): Fix the value for "OldHeap unused"
The value for "OldHeap unused" in the output of
erlang:system_info(procs) and in crash dumps, was incorrectly
calculated as the size of the entire old heap.
Diffstat (limited to 'erts/emulator/beam/break.c')
-rw-r--r-- | erts/emulator/beam/break.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/break.c b/erts/emulator/beam/break.c index d93c031db2..dbe864f941 100644 --- a/erts/emulator/beam/break.c +++ b/erts/emulator/beam/break.c @@ -327,7 +327,7 @@ print_process_info(int to, void *to_arg, Process *p) (unsigned)(OLD_HEND(p) - OLD_HEAP(p)) ); erts_print(to, to_arg, "Heap unused: %bpu\n", (p->hend - p->htop)); erts_print(to, to_arg, "OldHeap unused: %bpu\n", - (OLD_HEAP(p) == NULL) ? 0 : (OLD_HEND(p) - OLD_HEAP(p)) ); + (OLD_HEAP(p) == NULL) ? 0 : (OLD_HEND(p) - OLD_HTOP(p)) ); if (garbing) { print_garb_info(to, to_arg, p); |