From: Alex Brainman Date: Thu, 9 Jun 2011 00:29:25 +0000 (+1000) Subject: runtime: increase maximum number of windows callbacks X-Git-Tag: weekly.2011-06-09~17 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c3be760889be43a61edbc868921517151b4acde5;p=gostls13.git runtime: increase maximum number of windows callbacks Fixes #1912. R=rsc CC=golang-dev https://golang.org/cl/4591047 --- diff --git a/src/pkg/runtime/windows/thread.c b/src/pkg/runtime/windows/thread.c index 2ce8fae15a..81ad680333 100644 --- a/src/pkg/runtime/windows/thread.c +++ b/src/pkg/runtime/windows/thread.c @@ -373,7 +373,7 @@ runtime·compilecallback(Eface fn, bool cleanstack) return &c->asmbody; } } - if(cbs.n >= 20) + if(cbs.n >= 2000) runtime·throw("too many callback functions"); c = runtime·mal(sizeof *c + n); c->gobody = fn.data;