aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_binary.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-04-11 16:11:37 +0200
committerSverker Eriksson <[email protected]>2017-04-11 16:11:37 +0200
commit37bdfb3b5b56c2311db1780b052b7e2c0f139cef (patch)
treea47c34ab8c34e4d2470f44019fd38c512493f17b /erts/emulator/beam/erl_binary.h
parent5e8f498b810aeae9cb4c9c3715fe62a33b84cdde (diff)
downloadotp-37bdfb3b5b56c2311db1780b052b7e2c0f139cef.tar.gz
otp-37bdfb3b5b56c2311db1780b052b7e2c0f139cef.tar.bz2
otp-37bdfb3b5b56c2311db1780b052b7e2c0f139cef.zip
erts: Init refc=1 in erts_bin_drv_alloc*
Diffstat (limited to 'erts/emulator/beam/erl_binary.h')
-rw-r--r--erts/emulator/beam/erl_binary.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_binary.h b/erts/emulator/beam/erl_binary.h
index cb26ee3407..51072f4b0f 100644
--- a/erts/emulator/beam/erl_binary.h
+++ b/erts/emulator/beam/erl_binary.h
@@ -375,6 +375,7 @@ erts_bin_drv_alloc_fnf(Uint size)
if (res) {
res->orig_size = size;
res->flags = BIN_FLAG_DRV;
+ erts_refc_init(&res->refc, 1);
}
return res;
}
@@ -393,6 +394,7 @@ erts_bin_drv_alloc(Uint size)
ERTS_CHK_BIN_ALIGNMENT(res);
res->orig_size = size;
res->flags = BIN_FLAG_DRV;
+ erts_refc_init(&res->refc, 1);
return res;
}