diff options
author | Rickard Green <[email protected]> | 2017-01-24 20:43:08 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2017-02-06 19:54:49 +0100 |
commit | 8a72a253e2eda59e510d953f0b6eb21b50e06d0e (patch) | |
tree | 2e9297dc7cb7b2839c9774307044d138bce46fa2 /erts/emulator/beam/erl_bif_unique.h | |
parent | 28735b9c2c6390df593b05f300151addbd01e367 (diff) | |
download | otp-8a72a253e2eda59e510d953f0b6eb21b50e06d0e.tar.gz otp-8a72a253e2eda59e510d953f0b6eb21b50e06d0e.tar.bz2 otp-8a72a253e2eda59e510d953f0b6eb21b50e06d0e.zip |
Add binary overhead for magic ref/binaries
Diffstat (limited to 'erts/emulator/beam/erl_bif_unique.h')
-rw-r--r-- | erts/emulator/beam/erl_bif_unique.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_bif_unique.h b/erts/emulator/beam/erl_bif_unique.h index 6cd6cc3e09..27c2a15a5e 100644 --- a/erts/emulator/beam/erl_bif_unique.h +++ b/erts/emulator/beam/erl_bif_unique.h @@ -182,6 +182,7 @@ erts_mk_magic_ref(Eterm **hpp, ErlOffHeap *ohp, Binary *bp) write_magic_ref_thing(hp, ohp, (ErtsMagicBinary *) bp); *hpp += ERTS_MAGIC_REF_THING_SIZE; erts_refc_inc(&bp->refc, 1); + OH_OVERHEAD(ohp, bp->orig_size / sizeof(Eterm)); return make_internal_ref(hp); } @@ -329,6 +330,7 @@ erts_iref_storage_make_ref(ErtsIRefStorage *iref, } else { write_magic_ref_thing(hp, ohp, iref->u.mb); + OH_OVERHEAD(ohp, iref->u.mb->orig_size / sizeof(Eterm)); *hpp += ERTS_MAGIC_REF_THING_SIZE; /* * If we clean storage, the term inherits the |