This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Wed, Aug 31, 2016 at 1:24 AM, Andreas Schwab <schwab@suse.de> wrote: > On ia64, MINSIGSTKSZ is 128K. > > Andreas. > > * libgo/runtime/runtime.c (runtime_mpreinit): Increase stack size to > 128K. > --- > libgo/runtime/runtime.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libgo/runtime/runtime.c b/libgo/runtime/runtime.c > index c7d33bc..e8eb957 100644 > --- a/libgo/runtime/runtime.c > +++ b/libgo/runtime/runtime.c > @@ -272,7 +272,7 @@ runtime_tickspersecond(void) > void > runtime_mpreinit(M *mp) > { > - mp->gsignal = runtime_malg(32*1024, (byte**)&mp->gsignalstack, &mp->gsignalstacksize); // OS X wants >=8K, Linux >=2K > + mp->gsignal = runtime_malg(128*1024, (byte**)&mp->gsignalstack, &mp->gsignalstacksize); // OS X wants >=8K, Linux >=2K, ia64 >=128K > mp->gsignal->m = mp; > } Thanks. There doesn't seem to be a need to increase the stack size on all architectures, so I applied this patch. Bootstrapped and ran Go tests on x86_64-pc-linux-gnu, which I admit means little. Committed to mainline. Let me know if it doesn't fix the problem on ia64 (does Go really work on ia64?). Ian
Attachment:
patch.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |