]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix makemap64 function signature
authorMartin Möhrmann <moehrmann@google.com>
Wed, 23 Aug 2017 11:48:05 +0000 (13:48 +0200)
committerMartin Möhrmann <moehrmann@google.com>
Wed, 23 Aug 2017 12:27:22 +0000 (12:27 +0000)
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 <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/runtime/hashmap.go

index d4d02388dbcf8d12389ccf19b507d7e8663a6608..77a09b676ae843869da5422c7b986e0911a18808 100644 (file)
@@ -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
        }