diff options
author | Rickard Green <[email protected]> | 2013-05-16 17:36:12 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2013-05-16 17:36:12 +0200 |
commit | 80129f47df9b227c45b1298e64f3e62096d81bf2 (patch) | |
tree | 46ed6d985e6cc9a164cfde3e312f29ca51fdf3a1 /erts/emulator/beam/erl_bif_info.c | |
parent | d7e9fafa45eb96e3c34e24f03476a42e474701f0 (diff) | |
parent | febb7963a74930dccccd3d23ef56a54d27fd2549 (diff) | |
download | otp-80129f47df9b227c45b1298e64f3e62096d81bf2.tar.gz otp-80129f47df9b227c45b1298e64f3e62096d81bf2.tar.bz2 otp-80129f47df9b227c45b1298e64f3e62096d81bf2.zip |
Merge branch 'rickard/inet_db/OTP-11074' into maint
* rickard/inet_db/OTP-11074:
Do not treat port_set_data/port_get_data as signals
Conflicts:
erts/preloaded/ebin/erlang.beam
erts/preloaded/ebin/erts_internal.beam
Diffstat (limited to 'erts/emulator/beam/erl_bif_info.c')
-rwxr-xr-x | erts/emulator/beam/erl_bif_info.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_bif_info.c b/erts/emulator/beam/erl_bif_info.c index f65396df55..581818f899 100755 --- a/erts/emulator/beam/erl_bif_info.c +++ b/erts/emulator/beam/erl_bif_info.c @@ -2807,12 +2807,10 @@ erts_bld_port_info(Eterm **hpp, ErlOffHeap *ohp, Uint *szp, Port *prt, Eterm ite included though). */ Uint size = 0; - ErlHeapFragment* bp; erts_doforall_links(ERTS_P_LINKS(prt), &erts_one_link_size, &size); - for (bp = prt->bp; bp; bp = bp->next) - size += sizeof(ErlHeapFragment) + (bp->alloc_size - 1)*sizeof(Eterm); + size += erts_port_data_size(prt); if (prt->linebuf) size += sizeof(LineBuf) + prt->linebuf->ovsiz; |