-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: fix panic if newstack at runtime.acquireLockRank #40844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This PR (HEAD: 3cad25e) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/248878 to see it. Tip: You can toggle comments from me using the |
Message from Michael Pratt: Patch Set 1: Code-Review-1 (7 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/248878. |
Message from Michael Pratt: Patch Set 1: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/248878. |
Message from Gobot Gobot: Patch Set 1: TryBots beginning. Status page: https://farmer.golang.org/try?commit=ecebfc00 Please don’t reply on this GitHub thread. Visit golang.org/cl/248878. |
Message from Gobot Gobot: Patch Set 1: TryBot-Result+1 TryBots are happy. Please don’t reply on this GitHub thread. Visit golang.org/cl/248878. |
3cad25e
to
e37bf92
Compare
This PR (HEAD: e37bf92) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/248878 to see it. Tip: You can toggle comments from me using the |
e37bf92
to
19948db
Compare
This PR (HEAD: 19948db) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/248878 to see it. Tip: You can toggle comments from me using the |
Message from chainhelen: Patch Set 4: (7 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/248878. |
Message from Michael Pratt: Patch Set 4: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/248878. |
Message from Gobot Gobot: Patch Set 4: TryBots beginning. Status page: https://farmer.golang.org/try?commit=afcf1f79 Please don’t reply on this GitHub thread. Visit golang.org/cl/248878. |
Message from Gobot Gobot: Patch Set 4: TryBot-Result+1 TryBots are happy. Please don’t reply on this GitHub thread. Visit golang.org/cl/248878. |
Message from Austin Clements: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/248878. |
19948db
to
9f29912
Compare
This PR (HEAD: 9f29912) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/248878 to see it. Tip: You can toggle comments from me using the |
Message from chainhelen: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/248878. |
Message from Austin Clements: Patch Set 5: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/248878. |
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 golang#40843
9f29912
to
38fd3cc
Compare
This PR (HEAD: 38fd3cc) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/248878 to see it. Tip: You can toggle comments from me using the |
Message from chainhelen: Patch Set 6: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/248878. |
Message from Dan Scales: Patch Set 6: Code-Review+2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/248878. |
Message from Emmanuel Odeke: Patch Set 6: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/248878. |
Message from Gobot Gobot: Patch Set 6: TryBots beginning. Status page: https://farmer.golang.org/try?commit=10846ade Please don’t reply on this GitHub thread. Visit golang.org/cl/248878. |
Message from Gobot Gobot: Patch Set 6: TryBot-Result+1 TryBots are happy. Please don’t reply on this GitHub thread. Visit golang.org/cl/248878. |
Message from chainhelen: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/248878. |
Message from Dmitri Shuralyov: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/248878. |
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: 38fd3cc GitHub-Pull-Request: #40844 Reviewed-on: https://go-review.googlesource.com/c/go/+/248878 Reviewed-by: Dan Scales <[email protected]> Run-TryBot: Emmanuel Odeke <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
This PR is being closed because golang.org/cl/248878 has been merged. |
…uireLockRank 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. Updates #40843. Fixes #40845. Change-Id: I5824119f98a1da66d767cdb9a60dffe768f13c81 GitHub-Last-Rev: 38fd3cc GitHub-Pull-Request: #40844 Reviewed-on: https://go-review.googlesource.com/c/go/+/248878 Reviewed-by: Dan Scales <[email protected]> Run-TryBot: Emmanuel Odeke <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> (cherry picked from commit b246c0e) Reviewed-on: https://go-review.googlesource.com/c/go/+/252339 Run-TryBot: Dmitri Shuralyov <[email protected]>
…uireLockRank 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. Updates golang#40843. Fixes golang#40845. Change-Id: I5824119f98a1da66d767cdb9a60dffe768f13c81 GitHub-Last-Rev: 38fd3cc GitHub-Pull-Request: golang#40844 Reviewed-on: https://go-review.googlesource.com/c/go/+/248878 Reviewed-by: Dan Scales <[email protected]> Run-TryBot: Emmanuel Odeke <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> (cherry picked from commit b246c0e) Reviewed-on: https://go-review.googlesource.com/c/go/+/252339 Run-TryBot: Dmitri Shuralyov <[email protected]>
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