aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2019-08-29 15:11:55 -0400
committerCherry Zhang <cherryyz@google.com>2019-08-30 20:41:54 +0000
commitcd03fd05b55b3b22d31a56a9df388c72a96e62c2 (patch)
treea61275f41818c2687cdfb5866b4f4a23a1854a31 /src/runtime
parentb177d8802c00271ad0547b929ad2038aee70199d (diff)
downloadgo-cd03fd05b55b3b22d31a56a9df388c72a96e62c2.tar.xz
runtime: remove unnecessary variable decls in asm.s
runtime/asm.s contains two variable declarations that don't seem needed. The variables are defined in Go and not referenced in assembly. They were added in 2014 during the C to Go transition. Maybe they were useful at that time, but not now. Remove them. Change-Id: Id00d724813d18db47126c2f2b8cacfc9d77ffd4b Reviewed-on: https://go-review.googlesource.com/c/go/+/192378 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/asm.s3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/runtime/asm.s b/src/runtime/asm.s
index 6b209b2d1f..c886d4e722 100644
--- a/src/runtime/asm.s
+++ b/src/runtime/asm.s
@@ -12,9 +12,6 @@ DATA runtime·no_pointers_stackmap+0x00(SB)/4, $2
DATA runtime·no_pointers_stackmap+0x04(SB)/4, $0
GLOBL runtime·no_pointers_stackmap(SB),RODATA, $8
-GLOBL runtime·mheap_(SB), NOPTR, $0
-GLOBL runtime·memstats(SB), NOPTR, $0
-
// NaCl requires that these skips be verifiable machine code.
#ifdef GOARCH_amd64
#define SKIP4 BYTE $0x90; BYTE $0x90; BYTE $0x90; BYTE $0x90