diff options
Diffstat (limited to 'vendor/modernc.org/libc/etc.go')
| -rw-r--r-- | vendor/modernc.org/libc/etc.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/modernc.org/libc/etc.go b/vendor/modernc.org/libc/etc.go index 2d76cc499..db01023dd 100644 --- a/vendor/modernc.org/libc/etc.go +++ b/vendor/modernc.org/libc/etc.go @@ -237,6 +237,7 @@ func (t *TLS) Close() { // t.Free(11) // t.Free(22) func (t *TLS) Alloc(n int) (r uintptr) { + t.sp++ if memgrind { if atomic.SwapInt32(&t.reentryGuard, 1) != 0 { panic(todo("concurrent use of TLS instance %p", t)) @@ -321,6 +322,7 @@ const stackFrameKeepalive = 2 // Free deallocates n bytes of thread-local storage. See TLS.Alloc for details // on correct usage. func (t *TLS) Free(n int) { + t.sp-- if memgrind { if atomic.SwapInt32(&t.reentryGuard, 1) != 0 { panic(todo("concurrent use of TLS instance %p", t)) |
