From b5fec2cf54ff9f7b562cb904a2a025266aec2763 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Tue, 17 Sep 2024 18:00:21 -0400 Subject: cmd/compile,runtime: add indirect key/elem to swissmap We use the same heuristics as existing maps. For #54766. Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest-swissmap Change-Id: I44bb51483cae2c1714717f1b501850fb9e55a39a Reviewed-on: https://go-review.googlesource.com/c/go/+/616461 Auto-Submit: Michael Pratt Reviewed-by: Keith Randall Reviewed-by: Keith Randall LUCI-TryBot-Result: Go LUCI --- src/internal/runtime/maps/runtime.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/internal/runtime/maps/runtime.go') diff --git a/src/internal/runtime/maps/runtime.go b/src/internal/runtime/maps/runtime.go index 0d569de214..3d06f54f4d 100644 --- a/src/internal/runtime/maps/runtime.go +++ b/src/internal/runtime/maps/runtime.go @@ -25,3 +25,6 @@ func typedmemclr(typ *abi.Type, ptr unsafe.Pointer) //go:linkname newarray func newarray(typ *abi.Type, n int) unsafe.Pointer + +//go:linkname newobject +func newobject(typ *abi.Type) unsafe.Pointer -- cgit v1.3-5-g9baa