aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_bif_binary.c
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2010-08-13 15:59:33 +0200
committerPatrik Nyblom <[email protected]>2010-08-19 10:44:10 +0200
commitd36f3b0ab48aced7668974530549004b4f16075f (patch)
tree14da9e194bfb8c9359797fb73601211f40dc94c0 /erts/emulator/beam/erl_bif_binary.c
parent871fdb232d7facc58c202ef81634a12fbdcfefb4 (diff)
downloadotp-d36f3b0ab48aced7668974530549004b4f16075f.tar.gz
otp-d36f3b0ab48aced7668974530549004b4f16075f.tar.bz2
otp-d36f3b0ab48aced7668974530549004b4f16075f.zip
Remove binary overhead counter from ets objects
As the overhead counter got larger and never really was needed in ets objects, I removed them. A few stray comments of XXX:PaN type from halfword dev removed in the process.
Diffstat (limited to 'erts/emulator/beam/erl_bif_binary.c')
-rw-r--r--erts/emulator/beam/erl_bif_binary.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_bif_binary.c b/erts/emulator/beam/erl_bif_binary.c
index 1d8fd11b7b..cf9f7d304d 100644
--- a/erts/emulator/beam/erl_bif_binary.c
+++ b/erts/emulator/beam/erl_bif_binary.c
@@ -2551,7 +2551,8 @@ BIF_RETTYPE binary_referenced_byte_size_1(BIF_ALIST_1)
}
pb = (ProcBin *) binary_val(bin);
if (pb->thing_word == HEADER_PROC_BIN) {
- res = erts_make_integer((Uint) pb->val->orig_size, BIF_P); /* XXX:PaN Halfword? orig_size is a long */
+ /* XXX:PaN - Halfword - orig_size is a long, we should handle that */
+ res = erts_make_integer((Uint) pb->val->orig_size, BIF_P);
} else { /* heap binary */
res = erts_make_integer((Uint) ((ErlHeapBin *) pb)->size, BIF_P);
}