aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2018-03-16 09:07:10 +0100
committerGitHub <[email protected]>2018-03-16 09:07:10 +0100
commit845dd68493a91decc32d50cc785e6afaf9dfb6c3 (patch)
treeca6c39477c10ff545b476a01d3fa2ae076e27bef /lib/stdlib
parent9f39cf8dc59df1d1225c8264f2cdda6a432f83c1 (diff)
parentf78c3ee64cd1328a03e4680d893ebfe8e47ac8b4 (diff)
downloadotp-845dd68493a91decc32d50cc785e6afaf9dfb6c3.tar.gz
otp-845dd68493a91decc32d50cc785e6afaf9dfb6c3.tar.bz2
otp-845dd68493a91decc32d50cc785e6afaf9dfb6c3.zip
mikpe/process_info-1-no-messages/PR-1745/OTP-14986
make erlang:process_info/1 not retrieve messages
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/src/c.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/src/c.erl b/lib/stdlib/src/c.erl
index 3597e61c26..13f78841aa 100644
--- a/lib/stdlib/src/c.erl
+++ b/lib/stdlib/src/c.erl
@@ -564,7 +564,7 @@ display_info(Pid) ->
Other
end,
Reds = fetch(reductions, Info),
- LM = length(fetch(messages, Info)),
+ LM = fetch(message_queue_len, Info),
HS = fetch(heap_size, Info),
SS = fetch(stack_size, Info),
iformat(w(Pid), mfa_string(Call),
@@ -886,7 +886,7 @@ portinfo(Id) ->
procline(Name, Info, Pid) ->
Call = initial_call(Info),
Reds = fetch(reductions, Info),
- LM = length(fetch(messages, Info)),
+ LM = fetch(message_queue_len, Info),
procformat(io_lib:format("~tw",[Name]),
io_lib:format("~w",[Pid]),
io_lib:format("~ts",[mfa_string(Call)]),