From 15d5fa0291119f195d2d9b9827b650d0e98b85a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20M=C3=B6hrmann?= Date: Wed, 23 Aug 2017 13:48:05 +0200 Subject: [PATCH] runtime: fix makemap64 function signature During rebase of golang.org/cl/55152 the bucket argument which was removed in golang.org/cl/56290 from makemap was not removed from the argument list of makemap64. This did lead to "pointer in unallocated span" errors on 32bit platforms since the compiler did only generate calls to makemap64 without the bucket argument. Fixes #21568 Change-Id: Ia964a3c285837cd901297f4e16e40402148f8c1c Reviewed-on: https://go-review.googlesource.com/57990 Reviewed-by: Cherry Zhang Run-TryBot: Cherry Zhang TryBot-Result: Gobot Gobot --- src/runtime/hashmap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/hashmap.go b/src/runtime/hashmap.go index d4d02388db..77a09b676a 100644 --- a/src/runtime/hashmap.go +++ b/src/runtime/hashmap.go @@ -255,7 +255,7 @@ func (h *hmap) createOverflow() { } } -func makemap64(t *maptype, hint int64, h *hmap, bucket unsafe.Pointer) *hmap { +func makemap64(t *maptype, hint int64, h *hmap) *hmap { if int64(int(hint)) != hint { hint = 0 } -- 2.51.0