]> Cypherpunks repositories - gostls13.git/commit
Avoid race condition. Following the left to right rule,
authorIan Lance Taylor <iant@golang.org>
Tue, 7 Jul 2009 17:15:01 +0000 (10:15 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 7 Jul 2009 17:15:01 +0000 (10:15 -0700)
commit5abf395be71e40621d17c6dc5a07aca9ffb5c734
treecacc44647d351acffc11539bde28ca0dc745f52c
parent27432d67ec4c8b4abe09954349e96745363af31e
Avoid race condition.  Following the left to right rule,
s.output.Data() was being retrieved before the synchronization
point, which meant that it could be retrieved before the
goroutine wrote it.  Using gccgo this caused random errors.

R=gri
DELTA=2  (1 added, 0 deleted, 1 changed)
OCL=31046
CL=31267
src/pkg/datafmt/datafmt.go