diff options
Diffstat (limited to 'src/runtime/malloc.go')
| -rw-r--r-- | src/runtime/malloc.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go index 0605921652..e23d8224d1 100644 --- a/src/runtime/malloc.go +++ b/src/runtime/malloc.go @@ -1714,6 +1714,11 @@ func newobject(typ *_type) unsafe.Pointer { return mallocgc(typ.Size_, typ, true) } +//go:linkname maps_newobject internal/runtime/maps.newobject +func maps_newobject(typ *_type) unsafe.Pointer { + return newobject(typ) +} + // reflect_unsafe_New is meant for package reflect, // but widely used packages access it using linkname. // Notable members of the hall of shame include: |
