• Giovanni Bajo's avatar
    runtime: fix time.Now on Sierra and older · 2d6f941e
    Giovanni Bajo authored
    CL 67332 created the fast no-syscall path for time.Now in High Sierra
    but managed to break Sierra and older by forcing them into the slow
    syscall path: the version check based on commpage version was wrong.
    
    This CL uses the Darwin version number instead.
    
    The assembly diff is noisy because many variables had to be
    renamed, but the only actual change is the version check.
    
    Fixes #23419.
    
    Change-Id: Ie31ef5fb88f66d1517a8693942a7fb6100c213b0
    Reviewed-on: https://go-review.googlesource.com/87655
    Run-TryBot: Giovanni Bajo <rasky@develer.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarAustin Clements <austin@google.com>
    2d6f941e
os_darwin.go 14.2 KB