]> git.ipfire.org Git - thirdparty/gcc.git/commit
compiler: avoid write barrier for a[i] = a[i][:v]
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 7 Jan 2020 15:35:04 +0000 (15:35 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 7 Jan 2020 15:35:04 +0000 (15:35 +0000)
commit5561b41dd67630273479d7661638c5c36a5abb5b
tree779eb268edc81f0bbda25d813a88bdb6a8f95289
parent0e159efc76324f40c85581af4aca9cd4f0852cc8
compiler: avoid write barrier for a[i] = a[i][:v]

    This avoids generating a write barrier for code that appears in the
    Go1.14beta1 runtime package in (*pageAlloc).sysGrow:
        s.summary[l] = s.summary[l][:needIdxLimit]

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/213558

From-SVN: r279962
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc