mirror of
https://github.com/golang/go
synced 2024-11-17 12:44:49 -07:00
runtime: change tfork behaviour to unbreak openbsd/mips64
Currently, tfork on openbsd/mips64 returns the thread ID on success and a negative error number on error. In CL#447175, newosproc was changed to assume that a non-zero value is an error - return zero on success to match this expectation. Change-Id: I955efad49b149146165eba3d05fe40ba75caa098 Reviewed-on: https://go-review.googlesource.com/c/go/+/451257 Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Joedian Reid <joedian@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Joel Sing <joel@sing.id.au>
This commit is contained in:
parent
f4f8397fed
commit
e84ce0802d
@ -277,7 +277,7 @@ TEXT runtime·tfork(SB),NOSPLIT,$0
|
||||
|
||||
// In parent, return.
|
||||
BEQ R2, 3(PC)
|
||||
MOVW R2, ret+40(FP)
|
||||
MOVW $0, ret+40(FP)
|
||||
RET
|
||||
|
||||
// Initialise m, g.
|
||||
|
Loading…
Reference in New Issue
Block a user