diff options
author | Sverker Eriksson <[email protected]> | 2014-09-04 20:10:54 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2014-09-04 20:17:59 +0200 |
commit | 2b53f2b1514b0d405ab92c767277483c761ad928 (patch) | |
tree | 614f9ccb33969eb17bd7bf59967854d276b90257 /erts/emulator/hipe | |
parent | 35ff91189c8dd4ceed3d8f29536f500787ba4782 (diff) | |
download | otp-2b53f2b1514b0d405ab92c767277483c761ad928.tar.gz otp-2b53f2b1514b0d405ab92c767277483c761ad928.tar.bz2 otp-2b53f2b1514b0d405ab92c767277483c761ad928.zip |
erts: Refactor binary allocation interface to also initialize Binary
except the reference counter 'refc', as different callers
have different strategies regarding the lifetime of the binary.
Diffstat (limited to 'erts/emulator/hipe')
-rw-r--r-- | erts/emulator/hipe/hipe_native_bif.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/erts/emulator/hipe/hipe_native_bif.c b/erts/emulator/hipe/hipe_native_bif.c index 7d343dd91e..7e8632b50d 100644 --- a/erts/emulator/hipe/hipe_native_bif.c +++ b/erts/emulator/hipe/hipe_native_bif.c @@ -330,8 +330,6 @@ char *hipe_bs_allocate(int len) Binary *bptr; bptr = erts_bin_nrml_alloc(len); - bptr->flags = 0; - bptr->orig_size = len; erts_smp_atomic_init_nob(&bptr->refc, 1); return bptr->orig_bytes; } @@ -341,7 +339,6 @@ Binary *hipe_bs_reallocate(Binary* oldbptr, int newsize) Binary *bptr; bptr = erts_bin_realloc(oldbptr, newsize); - bptr->orig_size = newsize; return bptr; } |