aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/io.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-06-10 20:59:05 +0200
committerSverker Eriksson <[email protected]>2015-06-15 15:24:16 +0200
commitf5138184479bd16c0ee0a5e583479378451401c8 (patch)
tree85d32701fb3dde71fa74bbbb5c6b0087d7f399be /erts/emulator/beam/io.c
parent7c1ed37b4aa173181c4d45a2108f5eef4c36c41e (diff)
downloadotp-f5138184479bd16c0ee0a5e583479378451401c8.tar.gz
otp-f5138184479bd16c0ee0a5e583479378451401c8.tar.bz2
otp-f5138184479bd16c0ee0a5e583479378451401c8.zip
erts: Add erts_factory_trim_and_close
Diffstat (limited to 'erts/emulator/beam/io.c')
-rw-r--r--erts/emulator/beam/io.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/erts/emulator/beam/io.c b/erts/emulator/beam/io.c
index fb030d61f9..23f208c2eb 100644
--- a/erts/emulator/beam/io.c
+++ b/erts/emulator/beam/io.c
@@ -1407,12 +1407,8 @@ queue_port_sched_op_reply(Process *rp,
hp += REF_THING_SIZE;
msg = TUPLE2(hp, ref, msg);
- hp += 3;
- /* SVERK: We used to call erts_resize_message_buffer here
- * to maybe realloc message.
- */
- erts_factory_close(factory);
+ erts_factory_trim_and_close(factory, &msg, 1);
erts_queue_message(rp, rp_locksp, factory->heap_frags, msg, NIL);
}