26// The scheduler's job is to distribute ready-to-run goroutines over worker threads.
27//
28▶// The main concepts are:
29// G - goroutine.
30// M - worker thread, or machine.
· · ·
84// utilization.
85//
86▶// The main implementation complication is that we need to be very careful
87// during spinning->non-spinning thread transition. This transition can race
88// with submission of new work, and either one part or another needs to unpark
· · ·
129var runtime_inittasks []*initTask
130
131▶// mainInitDone is a signal used by cgocallbackg that initialization
132// has been completed. If this is false, wait on mainInitDoneChan.
133var mainInitDone atomic.Bool
· · ·
132▶// has been completed. If this is false, wait on mainInitDoneChan.
133var mainInitDone atomic.Bool
134
· · ·
133▶var mainInitDone atomic.Bool
134
135// mainInitDoneChan is closed after initialization has been completed.
+ 390 more matches in this file