ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Coro/Makefile.PL
(Generate patch)

Comparing Coro/Coro/Makefile.PL (file contents):
Revision 1.35 by root, Sat Aug 20 01:08:32 2005 UTC vs.
Revision 1.36 by root, Mon Dec 12 20:28:30 2005 UTC

121 } 121 }
122} else { 122} else {
123 print "\nUsing microsoft compatible coroutines\n\n"; 123 print "\nUsing microsoft compatible coroutines\n\n";
124} 124}
125 125
126print <<EOF;
127
128Per-context stack size: Depending on your settings, Coro tries to share
129the C stack as much as possible, but sometimes it needs to allocate a
130new one. This setting controls the maximum size that gets allocated, and
131should not be too high, memory and address space still gets wasted even if
132it's not fully used.
133
134The value entered will be multiplied by sizeof(long), which is usually
1354 on 32-bit systems, and 8 on 64-bit systems. A setting of 16384 (the
136default) therefore corresponds to a 64k to 128k stack, which usually
137is ample space. Some perls (mostly threaded ones) may need much, much
138more: If Coro segfaults with weird backtraces (e.g. in a function
139prologue) or in t/10_bugs.t, you might want to increase this to 65536 or
140more (debian might require this).
141
142EOF
143
144my $stacksize = prompt ("C Stack Size", "16384");
145$DEFINE .= " -DSTACKSIZE=$stacksize";
146
147print "using a stacksize of $stacksize * sizeof(long)\n";
148
149print "\n";
150
126WriteMakefile( 151WriteMakefile(
127 NAME => "Coro::State", 152 NAME => "Coro::State",
128 VERSION_FROM => "State.pm", 153 VERSION_FROM => "State.pm",
129 DEFINE => $DEFINE, 154 DEFINE => $DEFINE,
130 DIR => [], 155 DIR => [],

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines