aboutsummaryrefslogtreecommitdiff
path: root/bolt_amd64.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2016-09-06 14:07:22 -0600
committerGitHub <noreply@github.com>2016-09-06 14:07:22 -0600
commitde827651490d8e41c73f66cc6fc121b85d2d6496 (patch)
tree1b0e0eae0426c88e6c0a83ec0247052b309529b3 /bolt_amd64.go
parentMerge pull request #590 from benbjohnson/vincent-petithory-compact-db (diff)
parentbucket: correct broken unaligned load/store in armv5 (diff)
downloaddedo-de827651490d8e41c73f66cc6fc121b85d2d6496.tar.gz
dedo-de827651490d8e41c73f66cc6fc121b85d2d6496.tar.xz
Merge pull request #578 from resin-os/align-fix
Correct broken unaligned load/store in armv5
Diffstat (limited to 'bolt_amd64.go')
-rw-r--r--bolt_amd64.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/bolt_amd64.go b/bolt_amd64.go
index cca6b7e..98fafdb 100644
--- a/bolt_amd64.go
+++ b/bolt_amd64.go
@@ -5,3 +5,6 @@ const maxMapSize = 0xFFFFFFFFFFFF // 256TB
// maxAllocSize is the size used when creating array pointers.
const maxAllocSize = 0x7FFFFFFF
+
+// Are unaligned load/stores broken on this arch?
+var brokenUnaligned = false