]> Cypherpunks repositories - gostls13.git/commit
runtime: remove unnecessary writes to gp.sched.g on loong64
authorGuoqi Chen <chenguoqi@loongson.cn>
Tue, 14 Mar 2023 23:35:43 +0000 (07:35 +0800)
committerGopher Robot <gobot@golang.org>
Wed, 29 Mar 2023 02:23:21 +0000 (02:23 +0000)
commit579109789fbb03132ae43c501add94f295d1642e
treee4610b924a11a000eb544d749e0ae1d3114949b7
parentc52069361a3730f81c7be63251fa2064986cf867
runtime: remove unnecessary writes to gp.sched.g on loong64

Same as CL 292109, A g's sched.g is set in newproc1, After that, it never changes.
Yet lots of assembly code does "g.sched.g = g" unnecessarily. Remove it to avoid
confusion about whether it ever changes.

Change-Id: I3d3b18267a80bdd9ef5487c1d1d29de4c5a2d5cc
Reviewed-on: https://go-review.googlesource.com/c/go/+/476375
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Wayne Zuo <wdvxdr@golangcn.org>
Reviewed-by: WANG Xuerui <git@xen0n.name>
Run-TryBot: Wayne Zuo <wdvxdr@golangcn.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/runtime/asm_loong64.s