diff options
author | Sverker Eriksson <[email protected]> | 2017-04-11 15:30:11 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2017-04-11 15:30:11 +0200 |
commit | 5e8f498b810aeae9cb4c9c3715fe62a33b84cdde (patch) | |
tree | 1f509dc5061a37d439dca19fc96a1402814ac8cb /erts/emulator/beam/erl_bif_binary.c | |
parent | 647984f14188ba2cf73128c09e888d4bcf733a9f (diff) | |
download | otp-5e8f498b810aeae9cb4c9c3715fe62a33b84cdde.tar.gz otp-5e8f498b810aeae9cb4c9c3715fe62a33b84cdde.tar.bz2 otp-5e8f498b810aeae9cb4c9c3715fe62a33b84cdde.zip |
erts: Init refc=1 in erts_bin_nrml_alloc
Only term_to_binary needed some extra attention
as it used to initialize refc as 0 instead of 1.
Diffstat (limited to 'erts/emulator/beam/erl_bif_binary.c')
-rw-r--r-- | erts/emulator/beam/erl_bif_binary.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_bif_binary.c b/erts/emulator/beam/erl_bif_binary.c index 62a752d854..f79b5b6843 100644 --- a/erts/emulator/beam/erl_bif_binary.c +++ b/erts/emulator/beam/erl_bif_binary.c @@ -2669,7 +2669,6 @@ static BIF_RETTYPE do_binary_copy(Process *p, Eterm bin, Eterm en) } cbs->result = erts_bin_nrml_alloc(target_size); /* Always offheap if trapping */ - erts_refc_init(&(cbs->result->refc), 1); t = (byte *) cbs->result->orig_bytes; /* No offset or anything */ pos = 0; i = 0; |