]> Cypherpunks repositories - gostls13.git/commit
html/template: make execution thread-safe
authorRob Pike <r@golang.org>
Thu, 1 Dec 2011 04:11:57 +0000 (20:11 -0800)
committerRob Pike <r@golang.org>
Thu, 1 Dec 2011 04:11:57 +0000 (20:11 -0800)
commit9a86e244bf9041926e03610319474a149356fa2d
tree0fa13b8170911188fe4038ec03b3c19649167c3f
parentce27b00f48bf3b90445bb4bcd28f6115c129d75b
html/template: make execution thread-safe
The problem is that execution can modify the template, so it needs
interlocking to have the same thread-safe guarantee as text/template.
Fixes #2439.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5450056
src/pkg/html/template/escape.go
src/pkg/html/template/template.go