-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lmdb: Calling convention does not conform to proposed cgo tool restritions #10
Comments
I new have two branches for different aspects of this issue. https://github.com/bmatsuo/lmdb-go/tree/bmatsuo/mdb-val-cgo-pointer-restrictions
I think those address the only issues in package. (edit: the fix for Env.ReaderList has been merged) |
The cgo argument checker is issuing runtime panics about the use of MDB_val types.
Fix release numbers in the readme
Proposal: https://github.com/golang/proposal/blob/master/design/12416-cgo-pointers.md
C functions that take an
MDB_val*
are not meeting the restrictions proposed in go#12416. The pointer in the arguments'mv_data
field is usually a Go pointer. The infractions should be fixed when the design is finalized and by the time the implementation lands on "tip".The text was updated successfully, but these errors were encountered: