mirror of
https://github.com/golang/go
synced 2024-11-25 23:58:02 -07:00
runtime: fix netbsd/arm build
Currently fails with: fatal error: runtime: stack split during syscall goroutine 2 [stack split]: _vasop(0x3ac4a0, 0x505f8f00, 0x7a5a8, 0x7, 0x1ed3797f, ...) src/pkg/runtime/vlrt_arm.c:513 fp=0x505f8ecc runtime.semasleep(0xf8475800, 0xd) src/pkg/runtime/os_netbsd.c:97 +0x178 fp=0x505f8efc R=rsc CC=golang-dev https://golang.org/cl/12246043
This commit is contained in:
parent
ffb62d58a3
commit
21315c3428
@ -94,7 +94,7 @@ runtime·semasleep(int64 ns)
|
|||||||
runtime·atomicstore(&m->waitsemalock, 0);
|
runtime·atomicstore(&m->waitsemalock, 0);
|
||||||
runtime·lwp_park(nil, 0, &m->waitsemacount, nil);
|
runtime·lwp_park(nil, 0, &m->waitsemacount, nil);
|
||||||
} else {
|
} else {
|
||||||
ns += runtime·nanotime();
|
ns = ns + runtime·nanotime();
|
||||||
// NOTE: tv_nsec is int64 on amd64, so this assumes a little-endian system.
|
// NOTE: tv_nsec is int64 on amd64, so this assumes a little-endian system.
|
||||||
ts.tv_nsec = 0;
|
ts.tv_nsec = 0;
|
||||||
ts.tv_sec = runtime·timediv(ns, 1000000000, (int32*)&ts.tv_nsec);
|
ts.tv_sec = runtime·timediv(ns, 1000000000, (int32*)&ts.tv_nsec);
|
||||||
|
Loading…
Reference in New Issue
Block a user