aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/hipe/hipe_native_bif.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-04-11 15:30:11 +0200
committerSverker Eriksson <[email protected]>2017-04-11 15:30:11 +0200
commit5e8f498b810aeae9cb4c9c3715fe62a33b84cdde (patch)
tree1f509dc5061a37d439dca19fc96a1402814ac8cb /erts/emulator/hipe/hipe_native_bif.c
parent647984f14188ba2cf73128c09e888d4bcf733a9f (diff)
downloadotp-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/hipe/hipe_native_bif.c')
-rw-r--r--erts/emulator/hipe/hipe_native_bif.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/erts/emulator/hipe/hipe_native_bif.c b/erts/emulator/hipe/hipe_native_bif.c
index e581f07f56..342407ef62 100644
--- a/erts/emulator/hipe/hipe_native_bif.c
+++ b/erts/emulator/hipe/hipe_native_bif.c
@@ -323,7 +323,6 @@ char *hipe_bs_allocate(int len)
Binary *bptr;
bptr = erts_bin_nrml_alloc(len);
- erts_refc_init(&bptr->refc, 1);
return bptr->orig_bytes;
}