diff --git a/src/pkg/runtime/windows/thread.c b/src/pkg/runtime/windows/thread.c index 2ce8fae15a3..81ad6803331 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;