ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Changes
Revision: 1.226
Committed: Thu Apr 19 10:37:26 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
CVS Tags: rel-3_61
Changes since 1.225: +6 -1 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 Revision history for Perl extension Coro.
2
3 TODO: better (earlier) error messages on broken transfer's
4 TODO: destroy gets only called on cancel: fix(?)
5 TODO: should explore PerlIO::via::CoroCede and PerlIO::via::CoroAIO.
6 TODO: maybe implement a default message channel, very much like Erlang
7 (which is cool in a lot of important aspects (failures!),
8 but very lacking in others).
9
10 3.61 Thu Apr 19 12:36:18 CEST 2007
11 - Coro::Storable caused an endless loop when thawing invalid
12 pst's sometimes.
13 - use a Semaphore in Coro::Storable, as Storable doesn't
14 seem to be reentrant (although it is documented to
15 be threadsafe...).
16 - fix Coro::Signal to bring back the original unreliable
17 but stateful semantics.
18 - fixed a lot of typos in Coro.pm (patch submitted by David
19 Steinbrunner, which applied flawlessly).
20
21 3.6 Sat Apr 14 17:13:31 CEST 2007
22 - added some bugfixes to get eg/myhttpd working again.
23 - added Coro::Storable for often-cede'ing freeze/thaw.
24 - try to do a clean exit when a coroutine calls exit
25 (EXPERIMENTAL).
26 - got rid of indirect call through _coro_init.
27 - updated the partly antique examples in eg/ to
28 work again and be a bit less magic, too.
29 - fixed Coro::Signal semantics to work as documented again.
30
31 3.55 Sun Mar 25 01:20:47 CET 2007
32 - add SAVE_DEFFH to save the default filehandle and enable
33 it by default.
34 - finally move socket-operations from Coro::Socket to Coro::Handle
35 to be able to unblock foreign sockets.
36 - add Coro::State::save_also and guarded_save.
37 - add count accessor to Coro::Semaphore.
38 - add Coro::State::cctx_stacksize.
39 - just for the fun of it, do not rely on implicit context,
40 which can dramatically improve performance, but people
41 using windows-process-emulation perls do not care much about
42 performance.
43
44 3.51 Sun Mar 4 14:18:04 CET 2007
45 - fixed a problem when you weakened references to Coro::State's
46 (patch by Yuval Kogman).
47
48 3.501 Wed Feb 28 12:44:07 CET 2007
49 - rename some global symbols as macosx from hell redefines
50 them without asking.
51
52 3.5 Tue Feb 13 20:22:53 CET 2007
53 - do AnyEvent model detection earlier, avoiding problems
54 caused by first using AnyEvent and later Coro::Event.
55 - implement and document Coro::Event event objects.
56 - fix a potential problem in Coro::Event causing crashes.
57 - initialise PL_comppad when creating a new coroutine,
58 avoids crashes on early coro destruction.
59
60 3.41 Mon Jan 22 19:19:49 CET 2007
61 - readline on Coro::Handle did not support undefined $/,
62 nor did it deliver partial lines on EOF or error.
63 - implement malloc fallback for stack allocation because
64 stupid broken idiotic OSX has a stupid broken
65 idiotic fits-the-whole-os mmap "implementation" and
66 my dick feels longer if Coro is portable even to
67 obsolete platforms.
68
69 3.4 Fri Jan 19 21:52:54 CET 2007
70 - remove t/09_timer.t, as it isn't really testing much
71 but was rather flaky in practise.
72 - async_pool coro would keep arguments and callback alive until
73 it was reused.
74 - cancellation of a coroutine could cause spurious idle calls
75 in cede_notself.
76
77 3.3 Sat Jan 6 03:45:00 CET 2007
78 - implement $coro->on_destroy.
79 - Coro::Event blocking semantics have been changed,
80 documented and - hopefully - improved.
81 - fix nice adding, not subtracting, from priority.
82 - fix ->prio and api_is_ready (patch by Mark Hinds).
83 - fixed an assert ("... == prev__cctx->idle_te")
84 that could errronously trigger.
85 - fix various large and small memleaks.
86 - use a (hopefully) more stable cancel implementation
87 that immediately frees the coroutine data.
88 - cede/cede_notself return a status now.
89 - added Coro::guard function.
90 - added a global coroutine pool for jobs (on my machine,
91 I can create and execute 48k simple coros/s with async,
92 and 128k coros with async_pool).
93 - Coro::AIO now uses the coroutine priority as io priority.
94
95 3.2 Fri Dec 22 05:07:09 CET 2006
96 - improve portability to slightly older perls.
97 - use cleaner coroutine destruction.
98 - simplify configuration for users.
99 - optionally (unrecommended) prefer perl functions over
100 their coro replacements.
101
102 3.11 Tue Dec 5 13:11:24 CET 2006
103 - fixed some bogus assert's, but as perl.h disables assert even
104 without NDEBUG (thank you very much), not too many people should
105 notice (that did include myself). Andreas König noticed, though :)
106 - do not save/restore PL_sortcxix on >= 5.9.x, it doesn't seem to have
107 it. Also noticed by Andreas König :)
108 - save/restore tainted status.
109 - verified to pass the testsuite on my 5.9.5.
110
111 3.1 Mon Dec 4 23:03:40 CET 2006
112 - INCOMPATIBLE CHANGE: $/ is now per-coroutine (but slow).
113 - incompatible change: transfer flags are now per-state.
114 - give a better error message on deadlock.
115 - document Coro::nready.
116 - enhanced testsuite.
117
118 3.01 Sun Dec 3 23:47:42 CET 2006
119 - forgot to include Coro::Timer.
120
121 3.0 Sun Dec 3 22:57:25 CET 2006
122 - the "FINALLY COMPLETELY STABLE" release (coming soon:
123 the "FAMOUS LAST WORDS" release).
124 - implement a new stack sharing algorithm, which uses a stack
125 pool (size currently hardcoded).
126 - make stack sharing mandatory (it no longer uses a heuristic).
127 - eval/die no longer cause weird problems under heavy use.
128 - Coro::Event could cause livelocks if it was used but
129 no Coro::Event watchers were used.
130 - Coro::Event now uses asynccheck as prepare does not
131 check for changed watchers.
132 - Coro::Event allows multiple waiting coros and will wake up one
133 per event.
134 - Coro::Event should be cleaner and more efficient now.
135 - new utility function Coro::unblock_sub.
136 - document the sad fact that Event is no longer reentrant.
137 - putting a coroutine into the ready queue twice could under
138 some circumstances lead to stack corruption.
139 - minor incompatibility: subclassing Coro::State is supported
140 directly now without going through a _coro_state member.
141 - state/coro switching is much faster now.
142 - very minor optimisations and code/documentation cleanup.
143 - avoid problems due to compiler inlining.
144 - removed timers from Coro::Timer -> use AnyEvent instead.
145 - replaced Coro::idle coroutine by (cleaner) idle handler.
146 - updated to newest libcoro.
147 - implement enhanced support for valgrind.
148 - implement is_ready and return value for ready.
149 - removed Coro::Cont, it was a misnomer (it's generators),
150 and it was somewhat annoying to get it right. Will come back
151 if somebody asks for it :)
152 - many ->wait methods and Coro::Event could return
153 spuriously without the event having happened.
154
155 2.5 Tue Nov 7 12:22:33 CET 2006
156 - made Coro::Util, Coro::Select, Coro::Handle and Coro::Socket
157 use AnyEvent, moved them to Coro/.
158 - added Coro::LWP which contains all the uglyness required to
159 make LWP non-blocking.
160 - should work with perl 5.9.x now (Andreas König made me do it).
161 - fixed another bug in Coro::Select when the timeout was undef.
162 - reuse PL_start_env for all coros, saves some memory per coroutine.
163 - manage PL_top_env differently, hopefully to avoid panic: top_env.
164 - timeout argument was not properly used in Coro::Socket.
165 - allow limited forms of subclassing in Coro::Handle/Coro::Socket.
166 - emulate undocumented(!) functionality of IO::Socket required
167 by LWP(!!).
168 - updated eg/lwp to work with newer lwp's.
169 - remove "FATAL: uncaught exception" prefix. Coroutines that die
170 kill the whole process, just as exceptions in the main "coroutine"
171 did already.
172
173 2.1 Wed Nov 1 23:01:13 CET 2006
174 - fix a long-standing bug in Coro::Select where select with
175 zero timeout would instead change the current default filehandle.
176 - use a simpler and hopefully more robust way to clone padlists
177 (uses less memory and a perl function instead of our own).
178 - coro can now create a stack guard area on many architectures.
179 - Coro::AIO properly reexports additional functions from IO::AIO.
180 - updated libcoro with a workaround for OS X,
181 pach and testing by Michael Schwern.
182
183 2.0 Tue Oct 24 05:47:17 CEST 2006
184 - support additional aio requests in Coro::AIO.
185
186 1.9 (never properly released due to a glitch)
187
188 1.8 Thu Feb 2 00:59:06 CET 2006
189 - applied suggested patch by SAMV to avoid problems during stupid
190 mark & sweep gc run.
191 - applied patch by Scott Walters for 5.9.3 compatibility.
192
193 1.7 Tue Dec 27 01:41:58 CET 2005
194 - added Coro::AIO, a thin wrapper around IO::AIO.
195 - improved Makefile.PL explanations.
196
197 1.6 Mon Dec 12 21:30:05 CET 2005
198 - additionally save PM_curpm might fix as-of-yet
199 unseen problems with regex matches being attributed to the
200 wrong package.
201 - add t/10_bugs.t, which currently checks against imho broken
202 perls that use 0.26MB of stack space per Perl_magic_get
203 invocation (newer linuxes) as opposed to the 0.0002MB perl
204 normally uses.
205 - make stacksize configurable for the ultimate debian experience.
206
207 1.51 Mon Dec 12 18:48:36 CET 2005
208 - remove debugging warn() accidentally left in Coro::Select.
209
210 1.5 Tue Nov 29 13:32:44 CET 2005
211 - use Coro::Event inside Coro::Select to avoid spurious deadlocks.
212 - fix Coro::Select 'select'.
213 - strict'ify some modules.
214 - libcoro errornously restored the SIGUSR2 handler to SIGUSR1.
215 - use XSLoader in selected modules.
216 - remove some 5.6 compatibility cruft.
217
218 1.4 Tue Sep 6 00:11:05 CEST 2005
219 - libcoro did not take into account the trampoline on amd64,
220 when 'l'inux method was used.
221
222 1.31 Tue Aug 30 23:31:33 CEST 2005
223 - some portability fixes/workarounds.
224
225 1.3 Sat Aug 20 03:08:56 CEST 2005
226 - no code changes. module seems to work fine.
227 - improve Coro::State docs, remove reference to nonexisting
228 Coro::State::flush method.
229 - no longer autodetect windows, present it as an option instead.
230
231 1.2 Mon May 16 02:00:55 CEST 2005
232 - included libcoro.c earlier in State.xs, might improve portability.
233 - use a faster and possibly more stable Coro::Cont implementation.
234 - accept x86_64 in addition to amd64 for optimized linux-amd64 support.
235 - fix bugs Coro::SemaphoreSet that could cause locks never to be freed.
236 - fix bugs in CoroAPI.h and document it in Coro::MakeMaker.
237
238 1.11 Thu Mar 3 18:00:52 CET 2005
239 - change of contact address.
240
241 1.1 Tue Feb 22 20:51:16 CET 2005
242 - support [l]inux method on amd64.
243 - allow some context switches while compiling/eval'ing.
244
245 1.0 Tue Aug 10 03:47:27 CEST 2004
246 - Event 0.89 fixes the bug again.
247 - fix the remaining(??) memleak. I didn't free the cache-AV for
248 padlists, so one AV per created anon-sub leaked.
249
250 0.97 Fri May 14 15:23:32 CEST 2004
251 - remove stupid gcc extension that was an experiment only anyway.
252
253 0.96 Thu May 13 18:09:29 CEST 2004
254 - tell people if they have yet another broken Event variant.
255 - made Coro to work _better_ with threads (it seems that, as long
256 as you use Coros in one thread only everything will work fine.
257 Looking at the perl source the problem might be missing locking
258 between Coro and some perl internal routines. That's not easily
259 fixable).
260 - (hopefully) got rid of the static xnext inside transfer.
261
262 0.95 Sun Feb 15 03:20:28 CET 2004
263 - removed Coro::State::flush, implemented a new and much
264 faster caching mechanism by attaching magic to the CV.
265 - a memleak with (real) closures remains.
266 - dramatically reduced size of stacks to 65536 (linux/x86), after
267 observing that even myhttpd never had more than a kilobyte
268 of stack in use (stack is still only physically allocated in
269 pagesize increments for systems suporting mmap).
270 - fix for a "cygwin-64" architecture added, proposed by Stefan Traby.
271 - fix for threaded perl.
272
273 0.9 Sun Nov 23 04:32:39 CET 2003
274 - fix a few very hard to track down but (of course) stupid
275 memory leaks.
276 - stringify version number to avoid locale problems :(.
277 - perl 5.9.0 does not have SvPADBUSY, reported by Scott Walters,
278 hopefully ignoring it "just works".
279
280 0.8 Wed Nov 5 19:38:40 CET 2003
281 - port to perl5.005_03, but only 5.8.x+ is supported!
282 - honor LocalAddr even without LocalPort in Coro::Socket.
283
284 0.7 Tue May 27 03:12:38 CEST 2003
285 - the version jump indicates some level of testing, not gobs
286 of new features.
287 - uh... I found the prompt function in ExtUtils::MakeMaker.
288 Highly correct stuff, that is...
289 - fixed(?) a bug with die's in coroutines causing "panic: top_env".
290 the fix is not well understood by the author, so beware :(.
291
292 0.652 Thu May 8 02:54:46 CEST 2003
293 - Applied patch by Slaven Rezic to set default to "s" on FreeBSD,
294 cause version 4 doesn't have ucontext.
295 - Benjamin Reed reported that setjmp works fine on darwin,
296 so preselect it.
297
298 0.651 Sat Mar 29 15:00:23 CET 2003
299 - fix a bug in Coro::Handle where some bytes could get lost
300 on reading, reported by jason@nichego.net.
301
302 0.65 Sun Mar 23 00:08:26 CET 2003
303 - added a README.linux-glibc.
304 - new module Coro::Select.
305 - also save/restore PL_comppad, fixes segfaults with 5.8.1.
306 (I never claimed that I know what I am doing ;).
307 - set default to setjmp/longjmp on non-x86-linux.
308
309 0.6 Thu Nov 21 11:09:06 CET 2002
310 - made lazy context switching the default.
311 - fixed the bug where SemaphoreSet::guard
312 was the same as timed_guard and timed_guard was missing.
313 - fix a memleak in Coro::Timer.
314 - reclassified context sharing as not experimental.
315
316 0.534 Sun Apr 14 03:05:12 CEST 2002
317 - fixed backspace => tab in header parsing (myhttpd).
318 - added eg/readline, for elmex.
319 - Coro::Event now calls ->start on first call instead of
320 ->again, which created wrong timeouts for the first ->next.
321 - fixed a bug where Coro::Socket returned a closed socket instead
322 of nothing on ECONNREFUSED and similar error conditions.
323
324 0.533 Mon Feb 18 18:49:40 CET 2002
325 - adapt to finally working Event-0.85.
326 - fixed buggy event initialization (trapped under windows, but how
327 could it possibly have worked anywhere?)
328
329 0.532 Wed Jan 16 02:45:32 CET 2002
330 - removed the reference to pp_entersub, might work on
331 (some) win32 perls now (testsuite works under cygwin,
332 without Event, which freezes).
333
334 0.531 Mon Dec 10 22:18:44 CET 2001
335 - Fixed a bug in SemaphoreSet::timed_down.
336
337 0.53 Tue Nov 27 21:11:13 CET 2001
338 - some tests for Event.
339 - slightly different internal architecture to get refcnt into the object
340 and not the reference. might fix a few bugs, certainly did introduce
341 new ones.
342 - Coro::Timer (independent of Event).
343 - new timed_wait functions for Coro::Signal, Semaphore, SemaphoreSet.
344
345 0.52 Tue Nov 6 21:36:18 CET 2001
346 - ported to cygwin (trivial).
347 patch by Gerrit P. Haase <gp@familiehaase.de>.
348 - small setjmp code fix by Sullivan.DanielJ@epamail.epa.gov.
349
350 0.51 Thu Nov 1 20:39:01 CET 2001
351 - terminate/cancel now work properly (otherwise termination
352 could cause a "next coroutine is not and contains not..."
353 error.
354 - added Coro::Socket::shutdown.
355 - Coro::Event::loop no is the same as Event::loop.
356 - implemented terminate with args + join.
357
358 0.5 Fri Sep 28 16:15:35 CEST 2001
359 - fixed "print" on a Coro::Handle. The print method worked.
360 - small tweaks (seem to reduce memory consumption a lot)
361 in various modules.
362 - splendid use of "no warnings" scattered throughout.
363 - added Coro::Handle::rbuf, fixed Coro::Handle::fh.
364
365 0.49 Sun Sep 16 02:42:45 CEST 2001
366 - changed some method calls to function calls for speed
367 inside Coro::Handle.
368 - make Coro::Handle use an array instead of a hash for
369 speed reasons.
370 - IRIX mystery solved: it's SGI's NT, after all: "standard, huh?".
371 sjlj and ucontext should now work.
372 - IRIX-specific port for libcoro.
373 - swapped order of accept results to match IO::Socket.
374 - changed getsock/peername to sock/peername to match IO::Socket.
375 - fixed a bug that caused segfault when returning to main task
376 under some circumstances.
377 - other bugfixes.
378
379 0.45 Sun Sep 2 02:54:01 CEST 2001
380 - new method Coro::Handle::timeout.
381 - corrected speling of set...name to get...name in Coro::Socket.
382 - Coro::Socket::accept now returns a Coro::Socket, not a Coro::Handle.
383 - Coro::Handle now supports fileno and FILENO.
384 - added eg/myhttpd, a web server.
385 - Coro::Socket now accepts numeric ports as well as "port(number)"
386 syntax.
387 - moved some scheduling primitives into xs code. more to come.
388 - new simple priority system.
389 - implemented Coro::Event using XS, almost four times faster!
390 - small memory corruption problem fixed (boy that was difficult).
391
392 0.13 Wed Aug 8 16:53:07 CEST 2001
393 - new method Coro::Handle::readline.
394 - added eg/lwp and Coro::Handle::autoflush, to make LWP work.
395 (see eg/lwp on how to make LWP non-blocking).
396 - renamed Coro::Socket::new_inet to new.
397 - added Coro::Util, some utility functions.
398 - die/eval now works better (still get annoying (but true ;)
399 "Callback called exit" messages).
400 - Coro::Handle now supports timeout, and Coro::Socket Timeout.
401 - much better Coro::Socket support.
402
403 0.12 Fri Jul 27 04:19:01 CEST 2001
404 - do not use mmap if neither MAP_ANON nor MAP_ANONYMOUS is defined.
405 - very experimental stack sharing algorithm. not 100% safe but
406 should work well in practise ;)
407 - added Coro::RWLock.
408 - Coro::Specific now works.
409
410 0.11 Tue Jul 24 22:49:21 CEST 2001
411 - added specialized hack for newer and older linux versions (fast).
412 - renamed Coro::Event::IO to Coro::Handle.
413 - new module Coro::Socket.
414
415 0.1 Tue Jul 24 01:47:53 CEST 2001
416 - release candidate 3. A rather new internal structure :(
417 - the great renaming: Damian Conway gave me a suitable replacement
418 for yield.
419 - added Coro/libcoro, a portable coroutine implementation for C
420 (not even perl-dependent!!!), which can be used by Coro::State.
421 - renamed SAVE_DEFSV (on xs-level only) to avoid symbol clash in
422 perl-5.6.
423 - new function Coro::Event::idle.
424 - the idle process is now overriden
425 by default in Coro::Event.
426 - Coro::Channel now enforces the size.
427 - canceling events now works in all cases.
428 - Coro state now include $_ and $@.
429 - yet another bug workaround that I do not really understand :(
430 - new module Coro::Event::IO (very undocumented) to do
431 non-blocking i/o.
432 - performance tuning.
433
434 0.08 Thu Jul 19 06:13:25 CEST 2001
435 - release candidate 2 (new functionality).
436 - add Coro::State::flush function.
437 - transfer now supports a flags value (mostly for speed ATM).
438 - might compile and work in the presence of threads now.
439 - continuations have a saner syntax.
440 - no more memleaks.
441
442 0.07 Tue Jul 17 17:40:18 CEST 2001
443 - release candidate 1 ;)
444 - slightly nicer code.
445 - fixed a scheduling bug in Coro::Event.
446
447 0.06 Tue Jul 17 04:23:24 CEST 2001
448 - ok, I found the showstopper - the same sub must not be
449 re-entered in two different coroutines, otherwise => crash. I
450 see no easy solution to this problem, except by walking the call
451 chaing and saving/restoring the cv's, which is what I do now.
452 - memory leaks still latent, especially at thread termination.
453 - Coro::Event now works (haha).
454
455 0.05 Sun Jul 15 17:32:20 CEST 2001
456 - fixed a few issues in Coro::Event.
457 - I forgot to include Coro::Event in 0.04 :(:(:(
458
459 0.04 Sun Jul 15 05:24:59 CEST 2001
460 - @_ is now properly localized.
461 - Coro::State is now easier subclassable.
462 - Coro::Cont now coroutine-aware.
463 - Coro::Specific is a low-overhead module to create
464 coroutine-specific vars.
465 - Coro::Event provides a simple interface to Event.
466
467 0.03 Fri Jul 13 14:51:52 CEST 2001
468 - transfer() now implemented in XS (beware).
469 - new module Coro::Cont for really faked continuations.
470 - big internal architecture changes: Coro::State is now
471 really low-level and can thus be used to implement other
472 interesting things, While "Coro::" implements a process-like
473 model. Still crude and subject to change.
474 - $_ and $@ are no longer being localized.
475
476 0.02 Tue Jul 10 01:38:17 CEST 2001
477 - implemented "async" attribute.
478 - $_ and $@ are now localized.
479 - added Coro::Channel.
480 - more testcases, still no docs.
481
482 0.01 Tue Jul 3 02:18:41 CEST 2001
483 - original version; copied from Convert::Scalar.
484