From 14b8c4171c6a75176133f15dab6b49f5140c3493 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Thu, 9 Jun 2011 10:29:25 +1000 Subject: runtime: increase maximum number of windows callbacks Fixes issue 1912. R=rsc CC=golang-dev http://codereview.appspot.com/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 2ce8fae15..81ad68033 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; -- cgit v1.2.1