From c3be760889be43a61edbc868921517151b4acde5 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Thu, 9 Jun 2011 10:29:25 +1000 Subject: [PATCH] runtime: increase maximum number of windows callbacks Fixes #1912. R=rsc CC=golang-dev https://golang.org/cl/4591047 --- src/pkg/runtime/windows/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;