]> Cypherpunks repositories - gostls13.git/commit
[dev.garbage] cmd/gc, runtime: add locks around print statements
authorRuss Cox <rsc@golang.org>
Wed, 5 Nov 2014 19:42:54 +0000 (14:42 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 5 Nov 2014 19:42:54 +0000 (14:42 -0500)
commit75d3f62b3c9dc21a2c32a74f1d19b67b965e410b
tree18a151b5de6b7d930343f11dbf82ff512dae3022
parent91658f934d6dc4672fa1e511e37d76b4d5b6c134
[dev.garbage] cmd/gc, runtime: add locks around print statements

Now each C printf, Go print, or Go println is guaranteed
not to be interleaved with other calls of those functions.
This should help when debugging concurrent failures.

LGTM=rlh
R=rlh
CC=golang-codereviews
https://golang.org/cl/169120043
src/cmd/gc/builtin.c
src/cmd/gc/go.h
src/cmd/gc/runtime.go
src/cmd/gc/walk.c
src/runtime/print1.go
src/runtime/runtime.h
test/live.go
test/live2.go