Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

Update max alloc size on 386 arch #317

Merged
merged 1 commit into from
Feb 27, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bolt_386.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions bolt_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ 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
1 change: 0 additions & 1 deletion page.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (

const pageHeaderSize = int(unsafe.Offsetof(((*page)(nil)).ptr))

const maxAllocSize = 0x7FFFFFFF
const minKeysPerPage = 2

const branchPageElementSize = int(unsafe.Sizeof(branchPageElement{}))
Expand Down