Home | History | Annotate | Download | only in runtime

Lines Matching full:toggle

81 	// Signal handler has filled log[toggle][:nlog].
82 // Goroutine is writing log[1-toggle][:handoff].
85 toggle int32
89 // Writer maintains its own toggle to avoid races
90 // looking at signal handler's toggle.
157 cpuprof.toggle = 0
254 log := &p.log[p.toggle]
259 log = &p.log[p.toggle]
284 p.toggle = 1 - p.toggle
285 log := &p.log[p.toggle]
375 // Note that we're using toggle now, not wtoggle,
379 return uintptrBytes(p.log[p.toggle][:n])