]> Cypherpunks repositories - gostls13.git/commit
cmd,runtime: enable race detector on loong64
authorGuoqi Chen <chenguoqi@loongson.cn>
Sat, 19 Aug 2023 01:22:34 +0000 (09:22 +0800)
committerGopher Robot <gobot@golang.org>
Wed, 7 May 2025 18:52:31 +0000 (11:52 -0700)
commitbce8486ebec8b2f62f2305b2a17cc5aec8202507
tree5db3b6b34e0318f7d67823807efb03296dca5290
parent86101b083ad14bb0c6ca9c55d2869cba57760046
cmd,runtime: enable race detector on loong64

The race feature depends on llvm. And support for building the tsan library on
linux/loong64 has been added in this patch [1], which has been merged into the
branch main and has landed in llvm18.

The support for linux/loong64 in racebuild has been implemented in CL 655775,
now racebuild can successfully build race_linux_loong64.syso [2].

[1]: https://github.com/llvm/llvm-project/pull/72819
[2]: racebuild -platforms linux/loong64 -cherrypick 'refs/changes/16/543316/10' \
     -rev 83fe85115da9dc25fa270d2ea8140113c8d49670 \
     -goroot /home/golang/src/go

Co-authored-by: Xiaolin Zhao <zhaoxiaolin@loongson.cn>
Change-Id: If389318215476890295ed771297c6c088cfc84b3
Reviewed-on: https://go-review.googlesource.com/c/go/+/543316
Reviewed-by: Qiqi Huang <huangqiqi@loongson.cn>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Meidan Li <limeidan@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: sophie zhao <zhaoxiaolin@loongson.cn>
src/cmd/dist/test.go
src/internal/platform/supported.go
src/race.bash
src/runtime/asm_loong64.s
src/runtime/race/README
src/runtime/race/race.go
src/runtime/race/race_linux_loong64.syso [new file with mode: 0644]
src/runtime/race_loong64.s [new file with mode: 0644]