diff options
Diffstat (limited to 'src/pkg/runtime/malloc.go')
| -rw-r--r-- | src/pkg/runtime/malloc.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/malloc.go b/src/pkg/runtime/malloc.go index fb2c037ace..ebc45fa2f7 100644 --- a/src/pkg/runtime/malloc.go +++ b/src/pkg/runtime/malloc.go @@ -422,11 +422,11 @@ func gogc(force int32) { return } if gcpercent == gcpercentUnknown { - golock(&mheap_.lock) + lock(&mheap_.lock) if gcpercent == gcpercentUnknown { gcpercent = readgogc() } - gounlock(&mheap_.lock) + unlock(&mheap_.lock) } if gcpercent < 0 { return |
