go/src/context
Carlo Alberto Ferraris 6e5c26084f context: reduce init-time allocations
Small cleanup to remove a couple of needless global variables.
Instead of relying on two instances of emptyCtx having different
addresses, we use different types.

For #26775

Change-Id: I0bc4813e94226f7b3f52bf4b1b3c3a3bbbebcc9e
Reviewed-on: https://go-review.googlesource.com/c/go/+/455455
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Sameer Ajmani <sameer@golang.org>
2023-02-10 16:32:03 +00:00
..
benchmark_test.go context: implement Context.Value using iteration rather than recursion 2021-10-02 00:44:24 +00:00
context.go context: reduce init-time allocations 2023-02-10 16:32:03 +00:00
context_test.go context: add APIs for setting a cancelation cause when deadline or timer expires 2023-01-20 21:41:01 +00:00
example_test.go context: eliminate arbitrary timeouts in examples 2023-01-25 21:12:45 +00:00
net_test.go
x_test.go context: add lock in Cause to avoid race 2022-11-28 19:33:02 +00:00