aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_emu.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2016-03-17 11:15:54 +0100
committerLukas Larsson <[email protected]>2016-04-15 15:08:18 +0200
commita1cde0f881ee4865d38e2e6e88cc71dcd362fdd2 (patch)
tree9846a15eab594e09f7514a9550539ecfae9a93d2 /erts/emulator/beam/beam_emu.c
parentca74d2a97ee32a7127a30f7f347c3a8814acd444 (diff)
downloadotp-a1cde0f881ee4865d38e2e6e88cc71dcd362fdd2.tar.gz
otp-a1cde0f881ee4865d38e2e6e88cc71dcd362fdd2.tar.bz2
otp-a1cde0f881ee4865d38e2e6e88cc71dcd362fdd2.zip
erts: Deallocate heap fragments from trace nif calls
Any heap fragment created during a nif call to a tracer nif should be free'd immediately in order for the GC not to treat it as live data.
Diffstat (limited to 'erts/emulator/beam/beam_emu.c')
-rw-r--r--erts/emulator/beam/beam_emu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_emu.c b/erts/emulator/beam/beam_emu.c
index 7cb259cb8a..254bfe4ba0 100644
--- a/erts/emulator/beam/beam_emu.c
+++ b/erts/emulator/beam/beam_emu.c
@@ -3346,7 +3346,7 @@ do { \
OpCase(normal_exit): {
SWAPOUT;
c_p->freason = EXC_NORMAL;
- c_p->arity = 0; /* In case this process will ever be garbed again. */
+ c_p->arity = 0; /* In case this process will never be garbed again. */
ERTS_SMP_UNREQ_PROC_MAIN_LOCK(c_p);
erts_do_exit_process(c_p, am_normal);
ERTS_SMP_REQ_PROC_MAIN_LOCK(c_p);