Skip to content

Commit 1531192

Browse files
runtime: remove VDSO fallback test and benchmarks
These tests assume that it is OK to switch between time implementations, but the clock_gettime call uses CLOCK_MONOTONIC and the fallback call, gettimeofday, uses CLOCK_REALTIME. Disabling the clock_gettime call means that calls to nanotime will start returning very different values. This breaks the new timer code, which assumes that nanotime will return a consistently increasing value. This test is not very useful in any case as it doesn't check the results. Removing this file also removes BenchmarkTimeNow, which is a duplicate of BenchmarkNow in the time package. Updates #27707 Fixes #32109 Change-Id: I6a884af07f75822d724193c5eed94742f524f07d Reviewed-on: https://go-review.googlesource.com/c/go/+/174679 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent d97bd5d commit 1531192

File tree

1 file changed

+0
-63
lines changed

1 file changed

+0
-63
lines changed

src/runtime/vdso_linux_test.go

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)