Skip to content

Conversation

@graffic
Copy link

@graffic graffic commented Apr 24, 2016

This pull requests fixes (if I'm not wrong) the issue #3 where compiling goejdb in raspberry pi (and in my case in an scaleway arm server) was giving some problems.

The compile problem was this:

goejdb/ejcoll.go:124: type [2147483647]C.struct___0 larger than address space
goejdb/ejcoll.go:124: type [2147483647]C.struct___0 too large

It seems that the const maxslice was too big. But how much? It seems it's a hot issue as seen here golang/go#13656 So I took the approach to see what other projects where doing, in this case bolt and in their bolt_* files they use a 2GB address space.

So that's the first change, reduced the address space to 2GB. After that still this needs to be divided by the size of the item in the array or again the compiler will rise the error.

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant