]> Cypherpunks repositories - gostls13.git/commit
encoding/gob: cache engine for user type, not base type
authorRob Pike <r@golang.org>
Sat, 18 Feb 2012 03:38:37 +0000 (14:38 +1100)
committerRob Pike <r@golang.org>
Sat, 18 Feb 2012 03:38:37 +0000 (14:38 +1100)
commit420f713b7aa3b85995ded01d13cdeee520dbe38a
tree811c18e8442973264bbc89457c32e778dc726ea7
parent7737e19b15151f5a8578c77c5df99ce364b7d281
encoding/gob: cache engine for user type, not base type
When we build the encode engine for a recursive type, we
mustn't disregard the indirections or we can try to reuse an
engine at the wrong indirection level.

Fixes #3026.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5675087
src/pkg/encoding/gob/decode.go
src/pkg/encoding/gob/encoder_test.go