aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQiang Huang <h.huangqiang@huawei.com>2015-10-09 10:29:22 +0800
committerQiang Huang <h.huangqiang@huawei.com>2015-10-09 10:29:22 +0800
commit503413c0153839f5f316579d99c4bf1f09fa023f (patch)
tree5032b7e965683e7090ccf7114ce6a0ee8a4917fc
parentMerge pull request #428 from lukechampine/patch-1 (diff)
downloaddedo-503413c0153839f5f316579d99c4bf1f09fa023f.tar.gz
dedo-503413c0153839f5f316579d99c4bf1f09fa023f.tar.xz
Add support for arm64
Added build tag for arm64, so we won't get any errors on other platforms with go 1.4.x. Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
-rw-r--r--bolt_arm64.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/bolt_arm64.go b/bolt_arm64.go
new file mode 100644
index 0000000..6d23093
--- /dev/null
+++ b/bolt_arm64.go
@@ -0,0 +1,9 @@
+// +build arm64
+
+package bolt
+
+// maxMapSize represents the largest mmap size supported by Bolt.
+const maxMapSize = 0xFFFFFFFFFFFF // 256TB
+
+// maxAllocSize is the size used when creating array pointers.
+const maxAllocSize = 0x7FFFFFFF