]> Cypherpunks repositories - gostls13.git/commit
runtime: make more page sweeper operations atomic
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 18 Sep 2019 15:33:17 +0000 (15:33 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 8 Nov 2019 17:00:57 +0000 (17:00 +0000)
commitdac936a4ab8490d90afb9786a69854818f634dc5
tree8dcca475a5a7c52dbd695746b198ca7c11ba1d95
parent47232f0d929bd7ca44aeea23ad3f1806dfa55c5e
runtime: make more page sweeper operations atomic

This change makes it so that allocation and free related page sweeper
metadata operations (e.g. pageInUse and pagesInUse) are atomic rather
than protected by the heap lock. This will help in reducing the length
of the critical path with the heap lock held in future changes.

Updates #35112.

Change-Id: Ie82bff024204dd17c4c671af63350a7a41add354
Reviewed-on: https://go-review.googlesource.com/c/go/+/196640
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/mgc.go
src/runtime/mheap.go