commit | 50a1031d8e585b28e0a0adb19ed4368715fc6519 | [log] [tgz] |
---|---|---|
author | Bryan C. Mills <bcmills@google.com> | Wed Feb 14 13:58:27 2018 -0500 |
committer | Bryan Mills <bcmills@google.com> | Wed Feb 14 20:49:43 2018 +0000 |
tree | 12e682cdc426bd6bdbfe3562277f7c5b05ba1506 | |
parent | 072991165226c11c888c881218850e8318c2b32e [diff] |
shiny/driver/internal/event: do not over-retain references to events The garbage collector considers slice elements past len to be reachable, since the slice may be resliced to those elements at any time. That means that elements past len(q.front) will remain reachable until the next time len(q.front) again reaches its largest value. Since we don't actually know when that will occur, nil out consumed entries to allow their events to be collected as soon as possible. Change-Id: I7bc914eebfd7dec42933b9fa5ad256d4db3701ab Reviewed-on: https://go-review.googlesource.com/94135 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This subrepository holds experimental and deprecated (in the old
directory) packages.
The idea for this subrepository originated as the pkg/exp
directory of the main repository, but its presence there made it unavailable to users of the binary downloads of the Go installation. The subrepository has therefore been created to make it possible to go get
these packages.
Warning: Packages here are experimental and unreliable. Some may one day be promoted to the main repository or other subrepository, or they may be modified arbitrarily or even disappear altogether.
In short, code in this subrepository is not subject to the Go 1 compatibility promise. (No subrepo is, but the promise is even more likely to be violated by go.exp than the others.)
Caveat emptor.