summaryrefslogtreecommitdiff
path: root/script/check-MakeGitError-thread-lock.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2016-02-18 17:07:33 +0100
committerCarlos Martín Nieto <[email protected]>2016-02-18 17:33:44 +0100
commitf1240e6565dfb70cfd22f4025c1453ca92ce0743 (patch)
tree51ac8cf157018ad8dd5737e8dcf1b0fdfb21ca05 /script/check-MakeGitError-thread-lock.go
parentf05417aaba1a6a01d9533c38b4901bfc58002f49 (diff)
handles: use real pointers to keep track of handles
With the change to 1.6 rules, we couldn't use the Go pointers, so we went with casting the list indices into pointers. The runtime does not like this, however. It will sometimes detect that we have a pointer with a very small value and consider it an invalid pointer, bringing down the application with it. Work around that by asking libc for the smallest amount of memory it'll give us so we have an actual allocated pointer to use. We then use this pointer value as the key in our map to find the Go object we're tracking.
Diffstat (limited to 'script/check-MakeGitError-thread-lock.go')
0 files changed, 0 insertions, 0 deletions