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

Comparing Coro/Changes (file contents):
Revision 1.84 by pcg, Sat Nov 15 03:53:10 2003 UTC vs.
Revision 1.285 by root, Sat Oct 27 15:08:40 2007 UTC

1Revision history for Perl extension Coro. 1Revision history for Perl extension Coro.
2 2
30.9 3TODO: should explore PerlIO::via::CoroCede and PerlIO::via::CoroAIO.
4TODO: maybe implement a default message channel, very much like Erlang
5 (which is cool in a lot of important aspects (failures!),
6 but very lacking in others (higher level ipc)).
7
8 - enable/disable tracing from a new coroutine, not a pooled one.
9 - fix a memleak in Coro::Event.
10 - removed killall call from fork_eval.
11 - made sure store_fd is already loaded so that fork_eval
12 does not have to parse autoload in each subprocess.
13 - if the event model is EV, use EV::DNS to resolve
14 stuff in Coro::Util.
15
164.13 Wed Oct 24 07:26:45 CEST 2007
17 - add Coro::Storable::blocking_thaw.
18 - use a vastly more complicated technique to localise
19 $SIG{__WARN/DIE__} that also works on perls <= 5.8.8.
20 - use a coroutine for the idle callback Coro::Event,
21 instead of running Event in the current coroutine context.
22 This also catches recursive invocations.
23 - actually report fork errors in gethostbyname and inet_aton.
24
254.11 Thu Oct 11 02:40:24 CEST 2007
26 - port to threaded perls.
27
284.1 Thu Oct 11 02:38:16 CEST 2007
29 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now
30 be local to each coro (see Coro::State).
31 - incompatible change: for very deep reasons, cede and cede_notself
32 cannot return anything, so nothing will be returned.
33 - possibly bring back 5.10 compatibility (untested).
34 - work around stupid (and wrong) warning on 5.10 :(.
35 - overlay the saved state over the context stack. This saves
36 a few hundred bytes per coroutine on average and also
37 speeds up context switching a bit.
38 - further tune default stack sizes.
39 - (more) correctly calculate stack usage in coro_rss.
40 - Coro::Storable::blocking_* did not properly lock
41 resulting in races between coroutines.
42 - added Coro::Storable::guard.
43 - stopping to trace a coroutine could destroy the cctx of
44 an unrelated coroutine.
45 - explain the relationship between Perl and C coroutines in
46 more detail in Coro::State.
47 - Coro::Util::inet_aton did not short-circuit dotted quad forms,
48 causing a fork per resolve. This also affected Coro::Socket.
49 - switch to a separate stack in $coro->call/eval to avoid
50 invalidating pointers.
51
524.03 Sat Oct 6 21:24:00 CEST 2007
53 - added Coro::throw method.
54 - minor code cleanups.
55
564.02 Sat Oct 6 02:36:47 CEST 2007
57 - fix a very minor per-coroutine memleak (a single codereference).
58 - fixed a bug where the currently in-use c context would be freed
59 prematurely (can happen only when programs change the stacksize
60 or use tracing).
61 - tracing can no longer keep a coro alive after it terminated.
62 - do static branch prediction in the common path for gcc. gives
63 about 2-5% speed improvement here.
64
654.01 Fri Oct 5 22:10:49 CEST 2007
66 - instead of recreating *a* standard output handle we simply
67 use STDOUT, which is faster and hopefully more robust.
68
694.0 Fri Oct 5 12:56:00 CEST 2007
70 - incompatibly changed Coro::Storable::freeze.
71 - major new feature: added Coro::Debug, for interactive coroutine
72 debugging, tracing and much more.
73 - major bug fix: unbelievable, but true: $_, $/ and many other
74 "saved" variables actually weren't being saved. This has been fixed,
75 of course, while increasing performance while losing all the save
76 flags.
77 - save flags are gone, and all the api functions dealing with them.
78 - added Coro::Semaphore::adjust.
79 - added Coro::Util::fork_eval.
80 - added Coro::Storable::{nfreeze,blocking_{freeze,nfreeze}}.
81 - added Coro::killall.
82 - reduce initial stack sizes to allow for "micro-coroutines".
83 - better async_pool resource management, moved parts of async_pool
84 handling to XS (major speed improvement).
85 - actually croak before modifying important data structures.
86 - refuse to transfer while compiling.
87 - possibly support eval EXPR better now.
88 - enable assembly per default on linux+bsd x86+amd64.
89 - all internal members were renamed _something for easier subclassing.
90 - many minor tweaks.
91
923.63 Wed May 16 14:10:06 CEST 2007
93 - implement handcoded assembly for x86/amd64 SVR ABI.
94
953.62 Fri Apr 27 21:36:06 CEST 2007
96 - upgrade libcoro (which might set unwind info correctly).
97 - change default on linux to setjmp/longjmp.
98
993.61 Thu Apr 19 12:36:18 CEST 2007
100 - Coro::Storable caused an endless loop when thawing invalid
101 pst's sometimes.
102 - use a Semaphore in Coro::Storable, as Storable doesn't
103 seem to be reentrant (although it is documented to
104 be threadsafe...).
105 - fix Coro::Signal to bring back the original unreliable
106 but stateful semantics.
107 - fixed a lot of typos in Coro.pm (patch submitted by David
108 Steinbrunner, which applied flawlessly).
109
1103.6 Sat Apr 14 17:13:31 CEST 2007
111 - added some bugfixes to get eg/myhttpd working again.
112 - added Coro::Storable for often-cede'ing freeze/thaw.
113 - try to do a clean exit when a coroutine calls exit
114 (EXPERIMENTAL).
115 - got rid of indirect call through _coro_init.
116 - updated the partly antique examples in eg/ to
117 work again and be a bit less magic, too.
118 - fixed Coro::Signal semantics to work as documented again.
119
1203.55 Sun Mar 25 01:20:47 CET 2007
121 - add SAVE_DEFFH to save the default filehandle and enable
122 it by default.
123 - finally move socket-operations from Coro::Socket to Coro::Handle
124 to be able to unblock foreign sockets.
125 - add Coro::State::save_also and guarded_save.
126 - add count accessor to Coro::Semaphore.
127 - add Coro::State::cctx_stacksize.
128 - just for the fun of it, do not rely on implicit context,
129 which can dramatically improve performance, but people
130 using windows-process-emulation perls do not care much about
131 performance.
132
1333.51 Sun Mar 4 14:18:04 CET 2007
134 - fixed a problem when you weakened references to Coro::State's
135 (patch by Yuval Kogman).
136
1373.501 Wed Feb 28 12:44:07 CET 2007
138 - rename some global symbols as macosx from hell redefines
139 them without asking.
140
1413.5 Tue Feb 13 20:22:53 CET 2007
142 - do AnyEvent model detection earlier, avoiding problems
143 caused by first using AnyEvent and later Coro::Event.
144 - implement and document Coro::Event event objects.
145 - fix a potential problem in Coro::Event causing crashes.
146 - initialise PL_comppad when creating a new coroutine,
147 avoids crashes on early coro destruction.
148
1493.41 Mon Jan 22 19:19:49 CET 2007
150 - readline on Coro::Handle did not support undefined $/,
151 nor did it deliver partial lines on EOF or error.
152 - implement malloc fallback for stack allocation because
153 stupid broken idiotic OSX has a stupid broken
154 idiotic fits-the-whole-os mmap "implementation" and
155 my dick feels longer if Coro is portable even to
156 obsolete platforms.
157
1583.4 Fri Jan 19 21:52:54 CET 2007
159 - remove t/09_timer.t, as it isn't really testing much
160 but was rather flaky in practise.
161 - async_pool coro would keep arguments and callback alive until
162 it was reused.
163 - cancellation of a coroutine could cause spurious idle calls
164 in cede_notself.
165
1663.3 Sat Jan 6 03:45:00 CET 2007
167 - implement $coro->on_destroy.
168 - Coro::Event blocking semantics have been changed,
169 documented and - hopefully - improved.
170 - fix nice adding, not subtracting, from priority.
171 - fix ->prio and api_is_ready (patch by Mark Hinds).
172 - fixed an assert ("... == prev__cctx->idle_te")
173 that could errronously trigger.
174 - fix various large and small memleaks.
175 - use a (hopefully) more stable cancel implementation
176 that immediately frees the coroutine data.
177 - cede/cede_notself return a status now.
178 - added Coro::guard function.
179 - added a global coroutine pool for jobs (on my machine,
180 I can create and execute 48k simple coros/s with async,
181 and 128k coros with async_pool).
182 - Coro::AIO now uses the coroutine priority as io priority.
183
1843.2 Fri Dec 22 05:07:09 CET 2006
185 - improve portability to slightly older perls.
186 - use cleaner coroutine destruction.
187 - simplify configuration for users.
188 - optionally (unrecommended) prefer perl functions over
189 their coro replacements.
190
1913.11 Tue Dec 5 13:11:24 CET 2006
192 - fixed some bogus assert's, but as perl.h disables assert even
193 without NDEBUG (thank you very much), not too many people should
194 notice (that did include myself). Andreas König noticed, though :)
195 - do not save/restore PL_sortcxix on >= 5.9.x, it doesn't seem to have
196 it. Also noticed by Andreas König :)
197 - save/restore tainted status.
198 - verified to pass the testsuite on my 5.9.5.
199
2003.1 Mon Dec 4 23:03:40 CET 2006
201 - INCOMPATIBLE CHANGE: $/ is now per-coroutine (but slow).
202 - incompatible change: transfer flags are now per-state.
203 - give a better error message on deadlock.
204 - document Coro::nready.
205 - enhanced testsuite.
206
2073.01 Sun Dec 3 23:47:42 CET 2006
208 - forgot to include Coro::Timer.
209
2103.0 Sun Dec 3 22:57:25 CET 2006
211 - the "FINALLY COMPLETELY STABLE" release (coming soon:
212 the "FAMOUS LAST WORDS" release).
213 - implement a new stack sharing algorithm, which uses a stack
214 pool (size currently hardcoded).
215 - make stack sharing mandatory (it no longer uses a heuristic).
216 - eval/die no longer cause weird problems under heavy use.
217 - Coro::Event could cause livelocks if it was used but
218 no Coro::Event watchers were used.
219 - Coro::Event now uses asynccheck as prepare does not
220 check for changed watchers.
221 - Coro::Event allows multiple waiting coros and will wake up one
222 per event.
223 - Coro::Event should be cleaner and more efficient now.
224 - new utility function Coro::unblock_sub.
225 - document the sad fact that Event is no longer reentrant.
226 - putting a coroutine into the ready queue twice could under
227 some circumstances lead to stack corruption.
228 - minor incompatibility: subclassing Coro::State is supported
229 directly now without going through a _coro_state member.
230 - state/coro switching is much faster now.
231 - very minor optimisations and code/documentation cleanup.
232 - avoid problems due to compiler inlining.
233 - removed timers from Coro::Timer -> use AnyEvent instead.
234 - replaced Coro::idle coroutine by (cleaner) idle handler.
235 - updated to newest libcoro.
236 - implement enhanced support for valgrind.
237 - implement is_ready and return value for ready.
238 - removed Coro::Cont, it was a misnomer (it's generators),
239 and it was somewhat annoying to get it right. Will come back
240 if somebody asks for it :)
241 - many ->wait methods and Coro::Event could return
242 spuriously without the event having happened.
243
2442.5 Tue Nov 7 12:22:33 CET 2006
245 - made Coro::Util, Coro::Select, Coro::Handle and Coro::Socket
246 use AnyEvent, moved them to Coro/.
247 - added Coro::LWP which contains all the uglyness required to
248 make LWP non-blocking.
249 - should work with perl 5.9.x now (Andreas König made me do it).
250 - fixed another bug in Coro::Select when the timeout was undef.
251 - reuse PL_start_env for all coros, saves some memory per coroutine.
252 - manage PL_top_env differently, hopefully to avoid panic: top_env.
253 - timeout argument was not properly used in Coro::Socket.
254 - allow limited forms of subclassing in Coro::Handle/Coro::Socket.
255 - emulate undocumented(!) functionality of IO::Socket required
256 by LWP(!!).
257 - updated eg/lwp to work with newer lwp's.
258 - remove "FATAL: uncaught exception" prefix. Coroutines that die
259 kill the whole process, just as exceptions in the main "coroutine"
260 did already.
261
2622.1 Wed Nov 1 23:01:13 CET 2006
263 - fix a long-standing bug in Coro::Select where select with
264 zero timeout would instead change the current default filehandle.
265 - use a simpler and hopefully more robust way to clone padlists
266 (uses less memory and a perl function instead of our own).
267 - coro can now create a stack guard area on many architectures.
268 - Coro::AIO properly reexports additional functions from IO::AIO.
269 - updated libcoro with a workaround for OS X,
270 pach and testing by Michael Schwern.
271
2722.0 Tue Oct 24 05:47:17 CEST 2006
273 - support additional aio requests in Coro::AIO.
274
2751.9 (never properly released due to a glitch)
276
2771.8 Thu Feb 2 00:59:06 CET 2006
278 - applied suggested patch by SAMV to avoid problems during stupid
279 mark & sweep gc run.
280 - applied patch by Scott Walters for 5.9.3 compatibility.
281
2821.7 Tue Dec 27 01:41:58 CET 2005
283 - added Coro::AIO, a thin wrapper around IO::AIO.
284 - improved Makefile.PL explanations.
285
2861.6 Mon Dec 12 21:30:05 CET 2005
287 - additionally save PM_curpm might fix as-of-yet
288 unseen problems with regex matches being attributed to the
289 wrong package.
290 - add t/10_bugs.t, which currently checks against imho broken
291 perls that use 0.26MB of stack space per Perl_magic_get
292 invocation (newer linuxes) as opposed to the 0.0002MB perl
293 normally uses.
294 - make stacksize configurable for the ultimate debian experience.
295
2961.51 Mon Dec 12 18:48:36 CET 2005
297 - remove debugging warn() accidentally left in Coro::Select.
298
2991.5 Tue Nov 29 13:32:44 CET 2005
300 - use Coro::Event inside Coro::Select to avoid spurious deadlocks.
301 - fix Coro::Select 'select'.
302 - strict'ify some modules.
303 - libcoro errornously restored the SIGUSR2 handler to SIGUSR1.
304 - use XSLoader in selected modules.
305 - remove some 5.6 compatibility cruft.
306
3071.4 Tue Sep 6 00:11:05 CEST 2005
308 - libcoro did not take into account the trampoline on amd64,
309 when 'l'inux method was used.
310
3111.31 Tue Aug 30 23:31:33 CEST 2005
312 - some portability fixes/workarounds.
313
3141.3 Sat Aug 20 03:08:56 CEST 2005
315 - no code changes. module seems to work fine.
316 - improve Coro::State docs, remove reference to nonexisting
317 Coro::State::flush method.
318 - no longer autodetect windows, present it as an option instead.
319
3201.2 Mon May 16 02:00:55 CEST 2005
321 - included libcoro.c earlier in State.xs, might improve portability.
322 - use a faster and possibly more stable Coro::Cont implementation.
323 - accept x86_64 in addition to amd64 for optimized linux-amd64 support.
324 - fix bugs Coro::SemaphoreSet that could cause locks never to be freed.
325 - fix bugs in CoroAPI.h and document it in Coro::MakeMaker.
326
3271.11 Thu Mar 3 18:00:52 CET 2005
328 - change of contact address.
329
3301.1 Tue Feb 22 20:51:16 CET 2005
331 - support [l]inux method on amd64.
332 - allow some context switches while compiling/eval'ing.
333
3341.0 Tue Aug 10 03:47:27 CEST 2004
335 - Event 0.89 fixes the bug again.
336 - fix the remaining(??) memleak. I didn't free the cache-AV for
337 padlists, so one AV per created anon-sub leaked.
338
3390.97 Fri May 14 15:23:32 CEST 2004
340 - remove stupid gcc extension that was an experiment only anyway.
341
3420.96 Thu May 13 18:09:29 CEST 2004
343 - tell people if they have yet another broken Event variant.
344 - made Coro to work _better_ with threads (it seems that, as long
345 as you use Coros in one thread only everything will work fine.
346 Looking at the perl source the problem might be missing locking
347 between Coro and some perl internal routines. That's not easily
348 fixable).
349 - (hopefully) got rid of the static xnext inside transfer.
350
3510.95 Sun Feb 15 03:20:28 CET 2004
352 - removed Coro::State::flush, implemented a new and much
353 faster caching mechanism by attaching magic to the CV.
354 - a memleak with (real) closures remains.
355 - dramatically reduced size of stacks to 65536 (linux/x86), after
356 observing that even myhttpd never had more than a kilobyte
357 of stack in use (stack is still only physically allocated in
358 pagesize increments for systems suporting mmap).
359 - fix for a "cygwin-64" architecture added, proposed by Stefan Traby.
360 - fix for threaded perl.
361
3620.9 Sun Nov 23 04:32:39 CET 2003
4 - fix a few very hard to track down but (of course) stupid 363 - fix a few very hard to track down but (of course) stupid
5 memory leaks. 364 memory leaks.
6 - stringify version number to avoid locale problems :(. 365 - stringify version number to avoid locale problems :(.
366 - perl 5.9.0 does not have SvPADBUSY, reported by Scott Walters,
367 hopefully ignoring it "just works".
7 368
80.8 Wed Nov 5 19:38:40 CET 2003 3690.8 Wed Nov 5 19:38:40 CET 2003
9 - port to perl5.005_03, but only 5.8.x+ is supported! 370 - port to perl5.005_03, but only 5.8.x+ is supported!
10 - honor LocalAddr even without LocalPort in Coro::Socket. 371 - honor LocalAddr even without LocalPort in Coro::Socket.
11 372

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines