summaryrefslogtreecommitdiff
path: root/script/check-MakeGitError-thread-lock.go
diff options
context:
space:
mode:
authorDmitri Shuralyov <[email protected]>2015-07-06 19:27:58 -0700
committerDmitri Shuralyov <[email protected]>2015-07-26 15:02:40 -0700
commite1e1b4b1e164b4aba04e43f8b93c9a552fdc6ab4 (patch)
tree3fbdb147c4a52ef0811ffe869fb9a0324469915e /script/check-MakeGitError-thread-lock.go
parent4eae20ec279d20948aa5a45e0963ae7c4bcb0712 (diff)
Prevent slot int variable from being GCed.
Before this change, there were no users of slot int variable in the Go world (just a pointer to it that ended up in C world only), so Go's garbage collector would free it and its value could not retrieved later (once a pointer to it comes back to Go world from C world). Keep a pointer to it in the Go world so that does not happen. Fixes #218.
Diffstat (limited to 'script/check-MakeGitError-thread-lock.go')
0 files changed, 0 insertions, 0 deletions