runtime: increase maximum number of windows callbacks

Fixes #1912.

R=rsc
CC=golang-dev
https://golang.org/cl/4591047
This commit is contained in:
Alex Brainman 2011-06-09 10:29:25 +10:00
parent ffd01f2a47
commit c3be760889
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ runtime·compilecallback(Eface fn, bool cleanstack)
return &c->asmbody; return &c->asmbody;
} }
} }
if(cbs.n >= 20) if(cbs.n >= 2000)
runtime·throw("too many callback functions"); runtime·throw("too many callback functions");
c = runtime·mal(sizeof *c + n); c = runtime·mal(sizeof *c + n);
c->gobody = fn.data; c->gobody = fn.data;