diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2016-09-23 09:39:18 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-09-23 09:41:45 +0300 |
commit | 6837b48ce6e0593cb84683cbb65f94648a6341b7 (patch) | |
tree | 78791ddb2862cc11c57ad828c31a68e73aa03fda /fnlz_mlc.c | |
parent | 4edfb65614a99712a1113683084f08cc5c17a304 (diff) | |
download | bdwgc-6837b48ce6e0593cb84683cbb65f94648a6341b7.tar.gz |
Fix page calculation in checksums
While consistent use of rounding mode for computing GC_faulted entries
is ok, the proper way of getting page number of an address is just to
clear the lowest bits of the latter.
* checksums.c (GC_record_fault, GC_was_faulted): Do not round-up when
computing page.
* checksums.c (GC_record_fault): Add assertion that GC_page_size is
initialized.
Diffstat (limited to 'fnlz_mlc.c')
0 files changed, 0 insertions, 0 deletions