• Giovanni Bajo's avatar
    runtime: fix wall time computation in macOS High Sierra · d8ff3d59
    Giovanni Bajo authored
    Latest macOS High Sierra changed how the wall time information
    is exported into the commpage. Backward compatibility was partly
    preserved, that is previous Go versions are basically forced to
    go through a syscall which is much slower and is not able to
    get nanosecond precision.
    
    Implement the new commpage layout and wall time computation,
    using a version check to fallback to the previous code on
    older operating systems.
    
    Fixes #22037
    
    Change-Id: I8c2176eaca83a5d7be23443946a6b4c653ec7f68
    Reviewed-on: https://go-review.googlesource.com/67332
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    d8ff3d59
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...