aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2015-03-01 06:46:19 -0700
committerBen Johnson <benbjohnson@yahoo.com>2015-03-01 06:46:19 -0700
commit4bed58d78d942e21ec252c5ce7f52e1478203e7c (patch)
tree514fb50a3f252c9d6d3c506cb8630eb78066a0ef
parentMerge pull request #317 from benbjohnson/32bit-max-alloc (diff)
parentAdded max alloc size to arm. (diff)
downloaddedo-4bed58d78d942e21ec252c5ce7f52e1478203e7c.tar.gz
dedo-4bed58d78d942e21ec252c5ce7f52e1478203e7c.tar.xz
Merge pull request #319 from skirmish/bolt-arm-fix
Added max alloc size to arm.
-rw-r--r--bolt_arm.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/bolt_arm.go b/bolt_arm.go
index cc21894..e659bfb 100644
--- a/bolt_arm.go
+++ b/bolt_arm.go
@@ -2,3 +2,6 @@ package bolt
// maxMapSize represents the largest mmap size supported by Bolt.
const maxMapSize = 0x7FFFFFFF // 2GB
+
+// maxAllocSize is the size used when creating array pointers.
+const maxAllocSize = 0xFFFFFFF