Commit 65717b2d authored by pvoicu's avatar pvoicu Committed by Austin Clements

[release-branch.go1.9] runtime: fix usleep by correctly setting nanoseconds parameter for pselect6

Fixes #21518

Change-Id: Idd67e3f0410d0ce991b34dcc0c8f15e0d5c529c9
Reviewed-on: https://go-review.googlesource.com/56891
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: default avatarPetrica Voicu <pvoicu@paypal.com>
Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 048c9cfa
...@@ -100,7 +100,7 @@ TEXT runtime·usleep(SB),NOSPLIT,$8 ...@@ -100,7 +100,7 @@ TEXT runtime·usleep(SB),NOSPLIT,$8
MOVL AX, 0(SP) MOVL AX, 0(SP)
MOVL $1000, AX // usec to nsec MOVL $1000, AX // usec to nsec
MULL DX MULL DX
MOVL DX, 4(SP) MOVL AX, 4(SP)
// pselect6(0, 0, 0, 0, &ts, 0) // pselect6(0, 0, 0, 0, &ts, 0)
MOVL $308, AX MOVL $308, AX
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment