re PR go/61303 (gccgo: segfault, regression since 4.8.2)
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 26 Nov 2015 00:24:21 +0000 (00:24 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 26 Nov 2015 00:24:21 +0000 (00:24 +0000)
commitae026741df1a3f1dfe86ffde544010027a4c08b1
treec853bd52fd73b08be9644ba4fccfd3de7381eaca
parent1a5d8ff69ceb839da0920199b0d5b8915e48cd43
re PR go/61303 (gccgo: segfault, regression since 4.8.2)

PR go/61303
    runtime: don't overallocate in select code

    If we've already allocated an fd_set, don't allocate another one.

    Also, don't bother to read from rdwake if it wasn't returned in select.

    Fixes https://gcc.gnu.org/PR61303.

    Reviewed-on: https://go-review.googlesource.com/17243

From-SVN: r230922
gcc/go/gofrontend/MERGE
libgo/runtime/netpoll_select.c