This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug go/61303] gccgo: segfault, regression since 4.8.2
- From: "ian at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 26 Nov 2015 00:25:05 +0000
- Subject: [Bug go/61303] gccgo: segfault, regression since 4.8.2
- Auto-submitted: auto-generated
- References: <bug-61303-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61303
--- Comment #11 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> ---
Author: ian
Date: Thu Nov 26 00:24:33 2015
New Revision: 230923
URL: https://gcc.gnu.org/viewcvs?rev=230923&root=gcc&view=rev
Log:
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
Modified:
branches/gcc-5-branch/libgo/runtime/netpoll_select.c