]> Cypherpunks repositories - gostls13.git/commit
go/types: eliminate typeHashing global variable
authorRobert Findley <rfindley@google.com>
Tue, 31 Aug 2021 22:15:53 +0000 (18:15 -0400)
committerRobert Findley <rfindley@google.com>
Wed, 1 Sep 2021 00:36:05 +0000 (00:36 +0000)
commit5cd1b847dc6e2d70e503fb44e27d0ece261ebfff
tree072b948b3d1dbd5645f7470241cbdd8dfb87a47c
parent0df6df17e12d4cf8c2ed7c68ce8841a18f739f63
go/types: eliminate typeHashing global variable

This is a port of CL 345929 to go/types. It is also a step toward making
instantiation concurrency-safe.

Also fix some whitespace in instantiate.go.

Updates #47910

Change-Id: Icdeb227cb83eee15da6db90daab294c8c55db601
Reviewed-on: https://go-review.googlesource.com/c/go/+/346557
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/go/types/instantiate.go
src/go/types/subst.go
src/go/types/typestring.go