mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.regabi] cmd/compile: unindent compileFunctions
No real code changes. Just splitting into a separate CL so the next one is easier to review. Change-Id: I428dc986b76370d8d3afc12cf19585f6384389d7 Reviewed-on: https://go-review.googlesource.com/c/go/+/283314 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
cc90e7a51e
commit
432f9ffb11
1 changed files with 40 additions and 38 deletions
|
|
@ -93,7 +93,10 @@ func prepareFunc(fn *ir.Func) {
|
||||||
// It fans out nBackendWorkers to do the work
|
// It fans out nBackendWorkers to do the work
|
||||||
// and waits for them to complete.
|
// and waits for them to complete.
|
||||||
func compileFunctions() {
|
func compileFunctions() {
|
||||||
if len(compilequeue) != 0 {
|
if len(compilequeue) == 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
types.CalcSizeDisabled = true // not safe to calculate sizes concurrently
|
types.CalcSizeDisabled = true // not safe to calculate sizes concurrently
|
||||||
if race.Enabled {
|
if race.Enabled {
|
||||||
// Randomize compilation order to try to shake out races.
|
// Randomize compilation order to try to shake out races.
|
||||||
|
|
@ -131,5 +134,4 @@ func compileFunctions() {
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
base.Ctxt.InParallel = false
|
base.Ctxt.InParallel = false
|
||||||
types.CalcSizeDisabled = false
|
types.CalcSizeDisabled = false
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue