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

add bolt_arm64.go for arm64 #414

Merged
merged 1 commit into from
Sep 9, 2015
Merged
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
7 changes: 7 additions & 0 deletions bolt_arm64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is causing build errors:

src/github.com/boltdb/bolt/bolt_arm64.go|4 error| maxMapSize redeclared in this block previous declaration at src/github.com/boltdb/bolt/bolt_amd64.go:4                                                                                                                                                                                                                                                                         
src/github.com/boltdb/bolt/bolt_arm64.go|7 error| maxAllocSize redeclared in this block previous declaration at src/github.com/boltdb/bolt/bolt_amd64.go:7

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you running Go 1.4.x?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll move this discussion to #416.