1
0
mirror of https://github.com/golang/go synced 2024-10-01 09:28:37 -06:00
go/internal/lsp/testdata/bad
Rebecca Stambler b2a7f28a18 internal/lsp: do not close over the handle in the memoize function
Closing over the checkPackageHandle creates a cycle that forces the
checkPackageHandle not to be garbage collected until the value is
created. If a value is never created, the handle will not be collected.

Change-Id: I0f94557da917330ebe307a0e843b16ca7382e210
Reviewed-on: https://go-review.googlesource.com/c/tools/+/204079
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-10-30 00:30:36 +00:00
..
bad0.go internal/lsp: refactor error handling code in type-checking 2019-10-21 18:57:46 +00:00
bad1.go internal/lsp: refactor error handling code in type-checking 2019-10-21 18:57:46 +00:00
badimport.go internal/lsp: do not close over the handle in the memoize function 2019-10-30 00:30:36 +00:00