]> Cypherpunks repositories - gostls13.git/commit
regexp: avoid copying mutex in (*Regexp).Copy.
authorDavid Symonds <dsymonds@golang.org>
Thu, 17 Mar 2016 22:55:18 +0000 (09:55 +1100)
committerDavid Symonds <dsymonds@golang.org>
Fri, 18 Mar 2016 03:56:28 +0000 (03:56 +0000)
commit248c3a3c7b376e128c14fcb13eebf28733553d03
tree48def8de30abaad13ac606db6707ffe32f082cee
parent815c9a7f289d172c979261230260c0c5f0d1106e
regexp: avoid copying mutex in (*Regexp).Copy.

There's nothing guaranteeing that the *Regexp isn't in active use,
and so copying the sync.Mutex value is invalid.

Updates #14839.

Change-Id: Iddf52bf69df1b563377922399f64a571f76b95dd
Reviewed-on: https://go-review.googlesource.com/20841
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/regexp/regexp.go