• Daniel Martí's avatar
    cmd/compile: update TestIntendedInlining · cc5dc001
    Daniel Martí authored
    Value.CanInterface and Value.pointer are now inlinable, since we have a
    limited form of mid-stack inlining. Their calls to panic were preventing
    that in previous Go releases. The other three methods still go over
    budget, so update that comment.
    
    In recent commits, sync.Once.Do and multiple lock/unlock methods have
    also been made inlinable, so add those as well. They have standalone
    tests like test/inline_sync.go already, but it's best if the funcs are
    in this global test table too. They aren't inlinable on every platform
    yet, though.
    
    Finally, use math/bits.UintSize to check if GOARCH is 64-bit, now that
    we can.
    
    Change-Id: I65cc681b77015f7746dba3126637e236dcd494e0
    Reviewed-on: https://go-review.googlesource.com/c/go/+/166461
    Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
    cc5dc001
inl_test.go 6.56 KB