aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/gob/decoder.go
diff options
context:
space:
mode:
authorMostyn Bramley-Moore <mostyn@antipode.se>2018-12-28 20:02:13 +0000
committerIan Lance Taylor <iant@golang.org>2018-12-28 22:14:11 +0000
commitd4599629674251e9134ea8e0aa4039d9de3dd678 (patch)
tree5d63bc8b54bd54189876b7cb03a220560e644818 /src/encoding/gob/decoder.go
parent69c2c56453cdea1ad32d50fc82193f06b1b33f93 (diff)
downloadgo-d4599629674251e9134ea8e0aa4039d9de3dd678.tar.xz
encoding/gob: mention that Encoder and Decoder are safe for concurrent use
Fixes #29416 Change-Id: I24364bfee77aceace53f85f1046ef4d73f8feebb Change-Id: I24364bfee77aceace53f85f1046ef4d73f8feebb GitHub-Last-Rev: ad9f31145763dc16f53dd9f3154667b162759f69 GitHub-Pull-Request: golang/go#29417 Reviewed-on: https://go-review.googlesource.com/c/155742 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/encoding/gob/decoder.go')
-rw-r--r--src/encoding/gob/decoder.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/encoding/gob/decoder.go b/src/encoding/gob/decoder.go
index f4f740ef42..b52aabe54b 100644
--- a/src/encoding/gob/decoder.go
+++ b/src/encoding/gob/decoder.go
@@ -18,7 +18,8 @@ import (
const tooBig = (1 << 30) << (^uint(0) >> 62)
// A Decoder manages the receipt of type and data information read from the
-// remote side of a connection.
+// remote side of a connection. It is safe for concurrent use by multiple
+// goroutines.
//
// The Decoder does only basic sanity checking on decoded input sizes,
// and its limits are not configurable. Take caution when decoding gob data