]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: add pollDesc partial edges
authorMichael Pratt <mpratt@google.com>
Tue, 9 Mar 2021 15:41:16 +0000 (10:41 -0500)
committerMichael Pratt <mpratt@google.com>
Tue, 9 Mar 2021 18:26:24 +0000 (18:26 +0000)
commite8e425cb231863c1ed1bcf00dd5a517ceeaf6b9c
treea29b1acdaca91f45c8b19ec7661c0edcd72b5e47
parentb60a3a8cfbc6096babe72ebcee0733bba496cf9a
runtime: add pollDesc partial edges

gscan is taken during stack growth, which may occur while pollDesc is
held.

mallocgc may also be called while pollDesc is held. mallocgc may take
mheap or mheapSpecial. The former exists, but is out of order; the
latter is missing.

Fixes #44881

Change-Id: Ie25935d9d433e813c11a528ee47255b317a09f41
Reviewed-on: https://go-review.googlesource.com/c/go/+/300009
Trust: Michael Pratt <mpratt@google.com>
Trust: Dan Scales <danscales@google.com>
Reviewed-by: Dan Scales <danscales@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
src/runtime/lockrank.go