]> Cypherpunks repositories - gostls13.git/commit
runtime: enable vDSO support for s390x architecture
authorAxel Busch <94176305+abuschIBM@users.noreply.github.com>
Tue, 10 May 2022 13:48:19 +0000 (13:48 +0000)
committerPaul Murphy <murp@ibm.com>
Wed, 11 May 2022 13:30:43 +0000 (13:30 +0000)
commit636c5f02082e4be5ef2d9a66c99c9e31b72246a3
tree86b159243414875f0526dae067d433b5bb360978
parent7b314d27ce5dbc31eed2076e28c0af4ea8c24473
runtime: enable vDSO support for s390x architecture

This change adds support for vDSO for s390x architecture. This avoids the use of system calls in nanotime and walltime and accelerates them by factor 4-5.

Benchmarks:
100,000,000 x time.Now():
syscall fallback 13923ms 139.23 ns/op
vDSO enabled 2640ms   26.40 ns/op

Change-Id: Ic679fe31048379e59ccf83b400140f13c9d49696
GitHub-Last-Rev: 8f6e918a45cf8c5aadc5c203949a8ce4e372086f
GitHub-Pull-Request: golang/go#49717
Reviewed-on: https://go-review.googlesource.com/c/go/+/365995
Run-TryBot: Paul Murphy <murp@ibm.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Paul Murphy <murp@ibm.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Jonathan Albrecht <jonathan.albrecht@ibm.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Bill O'Farrell <billotosyr@gmail.com>
src/runtime/os_linux_novdso.go
src/runtime/signal_unix.go
src/runtime/sys_linux_s390x.s
src/runtime/vdso_elf64.go
src/runtime/vdso_in_none.go
src/runtime/vdso_linux.go
src/runtime/vdso_linux_s390x.go [new file with mode: 0644]