]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] runtime: fix newproc arg size on ARM
authorCherry Mui <cherryyz@google.com>
Fri, 21 May 2021 21:00:08 +0000 (17:00 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 21 May 2021 21:49:42 +0000 (21:49 +0000)
commit21db1d193cc3d830e1a7d53a04271631ce1198cd
tree2baa324654263c1fac626f08ed90986f61f62c93
parentb1a398cf0f04ac911be204d3c0ee001a94621683
[dev.typeparams] runtime: fix newproc arg size on ARM

At runtime startup it calls newproc from assembly code to start
the main goroutine. runtime.main has no arguments, so the arg
size should be 0, instead of 8.

While here, use clearer code sequence to open the frame.

Change-Id: I2bbb26a83521ea867897530b86a85b22a3c8be9d
Reviewed-on: https://go-review.googlesource.com/c/go/+/321957
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/runtime/asm_arm.s