time: Lack of monotonic time support on Solaris #33674
Labels
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
OS-Solaris
Milestone
What version of Go are you using (
go version
)?1.12.17
Does this issue reproduce with the latest release?
I have no means of testing due to lack of access to the platform, but looking at the code it seems it should still happen on master.
What operating system and processor architecture are you using (
go env
)?solaris amd64
What did you do?
Compared two values of time.Now() not that far from each other.
The latter time.Now() value was smaller than the value acquired first.
Essentially:
resulted in a negative difference
What did you expect to see?
Difference in time to be zero or positive
What did you see instead?
The time difference was negative 87ms.
It seems that the problem stems from:
https://github.com/golang/go/blob/master/src/runtime/sys_solaris_amd64.s#L42
which still uses CLOCK_REALTIME
This originates from: quic-go/quic-go#2059
The text was updated successfully, but these errors were encountered: