]> Cypherpunks repositories - gostls13.git/commit
runtime: fast clock_gettime on FreeBSD, always call getHPETTimecounter on systemstack
authorYuval Pavel Zholkover <paulzhol@gmail.com>
Fri, 4 May 2018 12:01:44 +0000 (15:01 +0300)
committerIan Lance Taylor <iant@golang.org>
Fri, 4 May 2018 17:34:20 +0000 (17:34 +0000)
commita9fc37525891e47b4277cde040a06db585e1780d
treed322223d2b03f6a4d14a2e4e5e6c625196eb883f
parent88d677be96b95cec8cb78abd00a94a613df94b3c
runtime: fast clock_gettime on FreeBSD, always call getHPETTimecounter on systemstack

CL 108095 goes to some length inorder to keep the stack usage of getHPETTimecounter code paths bellow a limit
being checked by the linker analysis. That limit is spurious, when running on the system or signal stack.

In a similar scenario, cgocallback_gofunc performs an indirect call through AX to hide the call from the linker analysis.
Here instead, mark getHPETTimecounter //go:systemstack and call it appropriately.

Change-Id: I80bec5e4974eee3c564d94f6e1142f322df88b2f
Reviewed-on: https://go-review.googlesource.com/111495
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/vdso_freebsd_x86.go