aboutsummaryrefslogtreecommitdiff
path: root/src/net/http
diff options
context:
space:
mode:
authorchainhelen <chainhelen@gmail.com>2020-08-21 16:44:52 +0000
committerDan Scales <danscales@google.com>2020-09-01 23:19:30 +0000
commitb246c0e12fd41caf45a0f81eaa4f8fe249fbbc01 (patch)
treef0b84925e0ebf1ba749ea8f1149572e4c8b3ee04 /src/net/http
parent786120b55db5c3567d8c353fc399e9339c7406dd (diff)
downloadgo-b246c0e12fd41caf45a0f81eaa4f8fe249fbbc01.tar.xz
runtime: fix panic if newstack at runtime.acquireLockRank
Process may crash becaues acquireLockRank and releaseLockRank may be called in nosplit context. With optimizations and inlining disabled, these functions won't get inlined or have their morestack calls eliminated. Nosplit is not strictly required for lockWithRank, unlockWithRank and lockWithRankMayAcquire, just keep consistency with lockrank_on.go here. Fixes #40843 Change-Id: I5824119f98a1da66d767cdb9a60dffe768f13c81 GitHub-Last-Rev: 38fd3ccf6ea03b670c7561c060ccdbccc42fff40 GitHub-Pull-Request: golang/go#40844 Reviewed-on: https://go-review.googlesource.com/c/go/+/248878 Reviewed-by: Dan Scales <danscales@google.com> Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/net/http')
0 files changed, 0 insertions, 0 deletions