aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/old
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/old')
-rw-r--r--libgo/go/old/netchan/common.go2
-rw-r--r--libgo/go/old/regexp/regexp.go1
2 files changed, 3 insertions, 0 deletions
diff --git a/libgo/go/old/netchan/common.go b/libgo/go/old/netchan/common.go
index 710b63a..d0daf53 100644
--- a/libgo/go/old/netchan/common.go
+++ b/libgo/go/old/netchan/common.go
@@ -165,9 +165,11 @@ func (cs *clientSet) sync(timeout time.Duration) error {
deadline := time.Now().Add(timeout)
// seq remembers the clients and their seqNum at point of entry.
seq := make(map[unackedCounter]int64)
+ cs.mu.Lock()
for client := range cs.clients {
seq[client] = client.seq()
}
+ cs.mu.Unlock()
for {
pending := false
cs.mu.Lock()
diff --git a/libgo/go/old/regexp/regexp.go b/libgo/go/old/regexp/regexp.go
index 86df4de..d3044d0 100644
--- a/libgo/go/old/regexp/regexp.go
+++ b/libgo/go/old/regexp/regexp.go
@@ -1,3 +1,4 @@
+// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.