Commit Graph

4 Commits (master)

Author SHA1 Message Date
Lorenzo Stoakes 97aba5586d bucket: correct broken unaligned load/store in armv5
armv5 devices and older (i.e. <= arm9 generation) require addresses that are
stored to and loaded from to to be 4-byte aligned.

If this is not the case the lower 2 bits of the address are cleared and the load
is performed in an unexpected order, including up to 3 bytes of data located
prior to the address.

Inlined buckets are stored after their key in a page and since there is no
guarantee that the key will be of a length that is a multiple of 4, it is
possible for unaligned load/stores to occur when they are cast back to bucket
and page pointer types.

The fix adds a new field to track whether the current architecture exhibits this
issue, sets it on module load for ARM architectures, and then on bucket open, if
this field is set and the address is unaligned, a byte-by-byte copy of the
inlined bucket is performed.

Ref: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka15414.html
2016-07-28 14:25:49 +01:00
Adam Polanski 0e91fffcbe Added max alloc size to arm. 2015-02-28 11:12:16 -05:00
Tamás Gulácsi 51dd6b9ae3 Raise maxMapSize from 256MB to 2GB on 386, arm.
Fixes #260 and #277.
2015-01-12 15:01:25 +01:00
Ben Johnson 0845303c2a Add ARM support. 2014-11-27 16:52:27 -07:00