]> Cypherpunks repositories - gostls13.git/commit
arena: add experimental arena package
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 12 Aug 2022 23:25:56 +0000 (23:25 +0000)
committerMichael Knyszek <mknyszek@google.com>
Wed, 12 Oct 2022 20:23:36 +0000 (20:23 +0000)
commite0d01b8467b5cb9e68758932f50c3187374011ba
tree77734bcb0619d55db4e9c6627cb2368652f466de
parent7866538d250e1693bacb6e5a29c74b01588155d5
arena: add experimental arena package

This change adds the arenas package and a function to reflect for
allocating from an arena via reflection, but all the new API is placed
behind a GOEXPERIMENT.

For #51317.

Change-Id: I026d46294e26ab386d74625108c19a0024fbcedc
Reviewed-on: https://go-review.googlesource.com/c/go/+/423361
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/arena/arena.go [new file with mode: 0644]
src/arena/arena_test.go [new file with mode: 0644]
src/go/build/deps_test.go
src/internal/goexperiment/exp_arenas_off.go [new file with mode: 0644]
src/internal/goexperiment/exp_arenas_on.go [new file with mode: 0644]
src/internal/goexperiment/flags.go
src/reflect/arena.go [new file with mode: 0644]
src/runtime/arena.go
src/runtime/arena_test.go
src/runtime/export_test.go
src/runtime/mfinal.go