]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove unused global variable emptystring
authorIan Lance Taylor <iant@golang.org>
Mon, 14 Aug 2017 16:56:51 +0000 (09:56 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 15 Aug 2017 00:31:16 +0000 (00:31 +0000)
Last runtime use was removed in https://golang.org/cl/133700043,
September 2014.

Replace plan9 syscall uses with plan9-specific variable.

Change-Id: Ifb910c021c1419a7c782959f90b054ed600d9e19
Reviewed-on: https://go-review.googlesource.com/55450
Reviewed-by: Martin Möhrmann <moehrmann@google.com>
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/runtime/runtime2.go
src/syscall/asm_plan9_386.s
src/syscall/asm_plan9_amd64.s
src/syscall/asm_plan9_arm.s
src/syscall/syscall_plan9.go

index 6871d9c68cd67e7c9a65c926be1804a15cc196ff..adfdec6eace26bac6ff3ce610d506b64176d1430 100644 (file)
@@ -716,15 +716,14 @@ const (
 const _TracebackMaxFrames = 100
 
 var (
-       emptystring string
-       allglen     uintptr
-       allm        *m
-       allp        [_MaxGomaxprocs + 1]*p
-       gomaxprocs  int32
-       ncpu        int32
-       forcegc     forcegcstate
-       sched       schedt
-       newprocs    int32
+       allglen    uintptr
+       allm       *m
+       allp       [_MaxGomaxprocs + 1]*p
+       gomaxprocs int32
+       ncpu       int32
+       forcegc    forcegcstate
+       sched      schedt
+       newprocs   int32
 
        // Information about what cpu features are available.
        // Set on startup in asm_{386,amd64,amd64p32}.s.
index 047ae59887492b7bdb3c6a184aec691e0635f789..c6ec2a987c7a073fea1bfc5cf9405514d8cd737f 100644 (file)
@@ -38,7 +38,7 @@ TEXT  ·Syscall(SB),NOSPLIT,$0-32
        JMP     copyresult3
        
 ok3:
-       LEAL    runtime·emptystring(SB), SI    
+       LEAL    ·emptystring(SB), SI
        
 copyresult3:
        LEAL    err+24(FP), DI
@@ -76,7 +76,7 @@ TEXT  ·Syscall6(SB),NOSPLIT,$0-44
        JMP     copyresult4
        
 ok4:
-       LEAL    runtime·emptystring(SB), SI
+       LEAL    ·emptystring(SB), SI
        
 copyresult4:
        LEAL    err+36(FP), DI
@@ -143,7 +143,7 @@ TEXT ·seek(SB),NOSPLIT,$0-36
        JMP     copyresult6
        
 ok6:
-       LEAL    runtime·emptystring(SB), SI
+       LEAL    ·emptystring(SB), SI
        
 copyresult6:
        LEAL    err+28(FP), DI
index 84050235e0eb8dd4e78441eaf8ef7767514a5dde..da77ec4e1c1dfb14f677137e5161c3703c9294fb 100644 (file)
@@ -37,7 +37,7 @@ TEXT  ·Syscall(SB),NOSPLIT,$0-64
        JMP     copyresult3
        
 ok3:
-       LEAQ    runtime·emptystring(SB), SI    
+       LEAQ    ·emptystring(SB), SI
        
 copyresult3:
        LEAQ    err+48(FP), DI
@@ -75,7 +75,7 @@ TEXT  ·Syscall6(SB),NOSPLIT,$0-88
        JMP     copyresult4
        
 ok4:
-       LEAQ    runtime·emptystring(SB), SI
+       LEAQ    ·emptystring(SB), SI
        
 copyresult4:
        LEAQ    err+72(FP), DI
@@ -141,7 +141,7 @@ TEXT ·seek(SB),NOSPLIT,$0-56
        JMP     copyresult6
        
 ok6:
-       LEAQ    runtime·emptystring(SB), SI
+       LEAQ    ·emptystring(SB), SI
        
 copyresult6:
        LEAQ    err+40(FP), DI
index 2a338a0d402a57247c401cdce91b46b4138367d3..7ffd4dc761d05a635a3a9e404b7d21a3b9963f6d 100644 (file)
@@ -10,7 +10,7 @@
 // System call support for plan9 on arm
 
 TEXT   sysresult<>(SB),NOSPLIT,$12
-       MOVW    $runtime·emptystring+0(SB), R2
+       MOVW    $·emptystring+0(SB), R2
        CMP             $-1, R0
        B.NE    ok
        MOVW    R1, save-4(SP)
index b7a0d543d94657f716fa8a7272d47f1869e2adde..7d1576dc345672bfdb56d93da0572568e3b3e385 100644 (file)
@@ -31,6 +31,8 @@ func (e ErrorString) Timeout() bool {
        return e == EBUSY || e == ETIMEDOUT
 }
 
+var emptystring string
+
 // A Note is a string describing a process note.
 // It implements the os.Signal interface.
 type Note string