aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/external.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-01-24 20:43:08 +0100
committerRickard Green <[email protected]>2017-02-06 19:54:49 +0100
commit8a72a253e2eda59e510d953f0b6eb21b50e06d0e (patch)
tree2e9297dc7cb7b2839c9774307044d138bce46fa2 /erts/emulator/beam/external.c
parent28735b9c2c6390df593b05f300151addbd01e367 (diff)
downloadotp-8a72a253e2eda59e510d953f0b6eb21b50e06d0e.tar.gz
otp-8a72a253e2eda59e510d953f0b6eb21b50e06d0e.tar.bz2
otp-8a72a253e2eda59e510d953f0b6eb21b50e06d0e.zip
Add binary overhead for magic ref/binaries
Diffstat (limited to 'erts/emulator/beam/external.c')
-rw-r--r--erts/emulator/beam/external.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/external.c b/erts/emulator/beam/external.c
index 60df7b8a08..f9cba0aec0 100644
--- a/erts/emulator/beam/external.c
+++ b/erts/emulator/beam/external.c
@@ -3510,6 +3510,8 @@ dec_term_atom_common:
ASSERT(rtp);
hp = (Eterm *) rtp;
write_magic_ref_thing(hp, factory->off_heap, mb);
+ OH_OVERHEAD(factory->off_heap,
+ mb->orig_size / sizeof(Eterm));
hp += ERTS_MAGIC_REF_THING_SIZE;
}
}