summaryrefslogtreecommitdiffhomepage
path: root/pkg/atomicbitops/atomic_bitops_common.go
diff options
context:
space:
mode:
authorNicolas Lacasse <nlacasse@google.com>2019-02-07 13:54:13 -0800
committerShentubot <shentubot@google.com>2019-02-07 13:55:23 -0800
commitfcae058a1476a793cd1623907ca5886ccd871edf (patch)
tree7ab67e823b45c9b7d40cb34eea3916ff20f01b60 /pkg/atomicbitops/atomic_bitops_common.go
parente0afa8789963c18c1afed7d222754ef4b7415a7d (diff)
Make context.Background return a global background context.
It currently allocates a new context on the heap each time it is called. Some of these are in relatively hot paths like signal delivery and releasing gofer inodes. It is also called very commonly in afterLoad. All of these should benefit from fewer heap allocations. PiperOrigin-RevId: 232938873 Change-Id: I53cec0ca299f56dcd4866b0b4fd2ec4938526849
Diffstat (limited to 'pkg/atomicbitops/atomic_bitops_common.go')
0 files changed, 0 insertions, 0 deletions