1
0
mirror of https://github.com/golang/go synced 2024-11-25 10:17:57 -07:00

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

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;