]> Cypherpunks repositories - gostls13.git/commit
runtime: fix abort handling on arm64
authorAustin Clements <austin@google.com>
Fri, 9 Mar 2018 21:12:40 +0000 (16:12 -0500)
committerAustin Clements <austin@google.com>
Fri, 9 Mar 2018 22:17:04 +0000 (22:17 +0000)
commit0def0f2e993111308a114bb83604618f218b7c3d
treeb7a8044f9062d169e9c7ea1cc0315a0701546899
parente4de522c95d49d943b99740aa4a1361357dcf869
runtime: fix abort handling on arm64

The implementation of runtime.abort on arm64 currently branches to
address 0, which results in a signal from PC 0, rather than from
runtime.abort, so the runtime fails to recognize it as an abort.

Fix runtime.abort on arm64 to read from address 0 like what other
architectures do and recognize this in the signal handler.

Should fix the linux/arm64 build.

Change-Id: I960ab630daaeadc9190287604d4d8337b1ea3853
Reviewed-on: https://go-review.googlesource.com/99895
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/runtime/asm_arm64.s
src/runtime/os3_plan9.go
src/runtime/panic.go
src/runtime/signal_sighandler.go
src/runtime/signal_windows.go