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

Comparing Coro/Changes (file contents):
Revision 1.462 by root, Mon Nov 24 06:07:16 2008 UTC vs.
Revision 1.692 by root, Fri Jun 25 01:13:20 2021 UTC

1Revision history for Perl extension Coro. 1Revision history for Perl extension Coro.
2 2
3TODO: should explore PerlIO::coroaio (perl leaks like hell). 3TODO: should explore PerlIO::coroaio (perl leaks like hell).
4TODO: maybe implement a default message channel, very much like Erlang's 4TODO: channel->maxsize(newsize)?
5 actor model (which is cool in a lot of important aspects (failures!), 5TODO: __GCC_HAVE_DWARF2_CFI_ASM
6 but very lacking in others (higher level ipc)). 6TODO: swap_sv, maybe add scope_swap_sv?
7TODO: croak when async_pool tries to run canceled thread?
8TODO: how to debug safe_cancel failure (vebrose mode? show how to make backtrace?)
9TODO: scalar context for Coro::AIO wrappers?
7 10
8 TODO: Coro/Intro 11TODO: State.xs could short-circuit some macros such as CORO_EXECUTE_SLF
12TODO: use frame->destroy to improve Coro::EV
13
14TODO: concurrent ->recv on same condvar
15sub Coro::AnyEvent::CondVar::_send {
16 if ($_[0]{_ae_coro}) {
17 $_->ready
18 for values %{ delete $_[0]{_ae_coro} }
19 }
20};
21
22sub Coro::AnyEvent::CondVar::_wait {
23 until ($_[0]{_ae_sent}) {
24 $AnyEvent::CondVar::Base::WAITING = 0; # avoid recursive check by AnyEvent
25 local $_[0]{_ae_coro}{$Coro::current+0} = $Coro::current;
26 Coro::schedule;
27 }
28};
29
30 - potential fix for an interetsing type of recursive coro
31 destruction (testcase by Christopher J. Madsen).
32
336.57 Wed Jul 29 15:08:44 CEST 2020
34 - override AnyEvent condvar methods "properly", as AnyEvent
35 has support for pluggable condvars since 2011. This also
36 avoids problems with recursive waits by avoiding to mix
37 impl methods with coro code.
38 - allow rouse_wait to be called in a different thread.
39 - slightly clarify rouse_cb/rouse_wait documentation.
40 - slightly improve rouse callback performance and memory usage.
41 - try to report correct calller when throwing exception in
42 on $condvar->recv, not a useless line in Coro::AnyEvent.
43
446.56 Thu Feb 20 19:40:07 CET 2020
45 - Coro::EV::time*once functions used ev_once, which is not cancelable.
46 This could cause problems due to I/O watchers not being stopped up
47 on exceptions/cancellation.
48
496.55 Fri Jul 19 17:28:09 CEST 2019
50 - Coro::RWLock woke up only one reader instead of all after a wrlock
51 (analyzed and patch by Maxim Skorobogatov).
52 - slightly improved documentation of Coro::RWLock and RWLock testcase.
53 - quickly (re)-ported to minix 3.3 before minix crashed again.
54
556.54 Sun Dec 16 11:06:07 CET 2018
56 - reinstate Coro::Select::select prototype - it breaks more than it fixes.
57
586.53 Sun Dec 16 10:33:15 CET 2018
59 - the autogenerated prototypes of Coro::AIO now add ";" at the end
60 to avoid generating named unary operators and messing up parsing
61 (mostly affects aio_mlockall 4 | 8 which was parsed as
62 (aio_mlockall 4) | 8).
63 - do not use a prototype for select in Coro::Select, as CORE::select also
64 doesn't have one.
65
666.52 Tue Aug 14 18:49:43 CEST 2018
67 - libcoro update: allow sharing of coro threads using the pthreads
68 backend among different pthreads, as is required by Coro::Multicore.
69 - always allow ->call and ->eval when the coro is the current coroutine. this
70 makes it possible, among other things, to call these on $Coro::main.
71 - minor code cleanups.
72
736.514 Thu Aug 31 18:25:31 CEST 2017
74 - safe_cancel no longer croaks when called on already-destroyed
75 thread, but instead "just works".
76
776.513 Sat Jul 15 01:18:51 CEST 2017
78 - experimental 5.22 comaptibility changes (PadlistNAMES).
79 - removed attributes example and made sure the other examples
80 still work.
81 - fix some statevar types for newer perls, should be of no consequence.
82
836.512 Fri Jul 14 05:03:17 CEST 2017
84 - seems to pass test suite down till 5.8.9, so make this the
85 minimum requirement in Makefile.PL.
86 - experimental 5.24 compatibility changes (SUB_ARGARRAY).
87 - experimental 5.26 compatibility changes (PL_comppad -> PADOFFSET).
88 - disable FORTIFY_SOURCE to avoid broken (but well-intentioned)
89 fortified longjmp variants in some libcs.
90 - re-try JIT allocation without PROT_EXEC, to hopefully improve
91 portability (still doesn't seem to work around broken selinux
92 mmap everywhere).
93 - speling fixes (Xavier Guimard).
94
956.511 Sun Jun 26 23:44:50 CEST 2016
96 - make it compile with threaded perls again.
97 - simplify and speed up __DIE__ and __WARN__ handling.
98
996.51 Sat Jun 25 20:57:20 CEST 2016
100 - 6.5 release didn't compile on most older perls due to
101 a logic error enabling experimental 5.24 code for all versions.
102 - since various broken or deficient patches float around
103 to work around the vtbl API breakage in perl, let's provide
104 our own workaround, which seems to be much less invasive
105 and more compatible than the approaches seen so far. YMMV.
106 - work around assertion failure in perl_destruct on 5.24
107 (analyzed by Dave Mitchell).
108
1096.5 Wed Jun 22 22:23:50 CEST 2016
110 - swap_sv swapping order was not symmetrical, causing
111 wrong swaps when swap_sv was used multiple times on the
112 same sv in the same thread.
113 - swap_sv calls can now be undone by calling it again
114 with the same variables.
115 - swap_sv calls will now be undone in async_pool threads.
116 - split Coro::Semaphore::up/adjust into separate xs functions
117 for better error reporting, at slight codesize increase.
118 - (libcoro) arm assembly support, please test and report.
119 - adjust to PL_savestack changes in perl 5.24 (adapted from
120 the debian patch, which unfortunately gets it wrong).
121
1226.49 Sat Oct 17 01:40:12 CEST 2015
123 - throwing an exception to a thread waiting in
124 Coro::Handle using Coro::EV did not stop the watchers,
125 causing the next call to fail (testcase by Martin Pritchard).
126 - bump minimum perl version to 5.10.
127
1286.48 Sun Oct 4 19:03:51 CEST 2015
129 - fix memory leak when Coro::Handle uses Coro::EV internally
130 (testcase by Sten Sten).
131 - update code to libev 4 API (internally, Coro still used the
132 version 3 API calls).
133 - remove unused hv_sig.
134
1356.47 Sat Jul 11 03:58:20 CEST 2015
136 - swap_svs - NVs can be in the SV head beginning with 5.20.
137
1386.46 Tue Jun 30 14:36:30 CEST 2015
139 - restore portability to perls with windows fork emulation
140 (patch by Petr Písař).
141
1426.45 Tue Jun 30 01:40:08 CEST 2015
143 - restore portability to perl 5.16 and below.
144
1456.44 Tue Jun 30 00:41:54 CEST 2015
146 - avoid segfaulting (or worse) when tracing a canceled thread.
147 - the Event module silently broke it's public hook API, causing
148 failures on perls compiled with -Duselongdouble. Requiring
149 the latest version of Event because I don't know which release
150 changed this (it's not mentioned in the ChangeLog).
151 - allow xs level enterleave hooks via CoroAPI.
152
1536.43 Thu Jun 4 15:38:14 CEST 2015
154 - use stability canary.
155 - port to stableperl-5.22.0-1.001.
156 - update libecb.
157
1586.42 Wed Feb 11 20:29:52 CET 2015
159 - Coro::SemaphoreSet->try did not actually work (analyzed by
160 SATO Kentaro).
161 - upgrade libecb to be C11 compliant.
162
1636.41 Sat Sep 6 22:08:46 CEST 2014
164 - restore portability to perl 5.8.x.
165 - give new Coro's a valid GvHV(PL_hintgv) - this is slow and takes
166 up some memory, but fixes "use feature" and similar modules
167 when used inside a Coro.
168 - allow zero as argument to Coro::Channel to mean the same thing
169 as no argument. this works with older versions as well,
170 but wasn't legal until now.
171 - slightly better c header file detection.
172
1736.39 Mon Jun 2 00:00:08 CEST 2014
174 - work around more incompatible changes in 5.20.
175
1766.38 Sun Jun 1 21:54:23 CEST 2014
177 - check that perl slots actually have enough space to hold
178 interpreter variables.
179 - untested port to perl 5.19 (64 bit tmps indices) (reported
180 by Andreas König).
181 - croak when cancel is called without a thread context.
182
1836.37 Tue Mar 4 13:27:33 CET 2014
184 - *sigh*, removed leftover debugging code from debugging a
185 perl bug, of all things.
186
1876.36 Tue Mar 4 07:11:59 CET 2014
188 - semaphores would not clear the destroy hook when interrupted
189 by ->throw, causing segfaults or worse.
190 - ->throw on a thread waiting for a semaphore did not acquire
191 the semaphore, but also didn't wake up other waiters,
192 possibly causing a deadlock.
193 - "FATAL: $Coro::IDLE blocked itself" will now use Carp::confess
194 to report a full stacktrace, which should help find out
195 where the actual call is.
196 - "atomically" destroy data in slf_destroy, because it is
197 the right thing to do, just in case.
198 - disable ecb.h libm dependency, to compile on ancient systems
199 or under adverse conditions.
200
2016.33 Mon Nov 18 11:26:27 CET 2013
202 - do not crash when freeing padlists with holes (in 5.18).
203 - tentative SVt_BIND 5.19 port/fix.
204
2056.32 Tue Nov 5 15:35:35 CET 2013
206 - use a new algorithm to derive padlists for perl 5.18. The old
207 one could lead to 0-pointer accesses inside perl (reported
208 by Darin McBride).
209
2106.31 Thu May 9 07:39:48 CEST 2013
211 - Coro::AIO requests would crash if the thread was ready'd
212 while the request was ongoing.
213
2146.29 Wed May 8 02:55:18 CEST 2013
215 - when an on_destroy handler destructs the coro currently being
216 destructed a perl scalar could be accessed after being freed,
217 likely causing a crash.
218
2196.28 Wed Mar 6 06:58:02 CET 2013
220 - clean remnants of existing __DIE__ and __WARN__ handlers so
221 they lose their magic and will not cause segfaults later
222 (testcase by Andrey Sagulin).
223 - improved Coro::State documentation a bit.
224 - Coro::Debug::command now flushes the output.
225 - add hack detection code for x32 abi, because the braindead slugs
226 who designed that made it look exactly like x86_64 without
227 providing proper compile time symbols to test for it. as a result,
228 this detection cannot work reliably.
229 - valgrind stack registering was broken.
230 - do not rely on Time::HiRes anymore in Coro::Debug.
231
2326.23 Fri Dec 7 23:36:37 CET 2012
233 - use experimental fiber implementation on native windows
234 perls.
235 - use sizeof (void *) as multiplication factor for stack sizes,
236 to accomodate the totally braindamaged microsoft 64 bit "os".
237 - changed verifier host from win2k-ap510-32 to win7-sp516-32/64.
238 activeperl 5.16 crashes when PerlIO_define_layer is called due
239 to some bug in the perl dll, strawberry perl at least passes
240 the testsuite.
241 - implement Coro::Handle->peeraddr/host/port, for slightly
242 improved compatibility with LWP.
243 - implement 5.17 compatibility by almost blindly applying a
244 good-looking patch by Father Chrysostomos.
245 - move stack management functions into libcoro 3.
246 - libcoro version 3 "released".
247 - support magic values as timed_io_once args.
248 - recommend AnyEvent 7+ or EV 4+, also require EV
249 version 4 or newer for Coro::EV.
250
2516.10 Tue Oct 9 01:14:27 CEST 2012
252 - updated ecb.h, it had a typo that caused it to not compile on many
253 big endian systems (reported by many people).
254 - disable memory fences in ecb.h to improve portability.
255
2566.09 Sat Oct 6 23:25:02 CEST 2012
257 - Coro::EV I/O watchers were not interruptible by exceptions
258 (Coro::State::throw) (testcase by sten).
259 - ->throw now puts threads into the ready queue, as this seems to
260 be expected by existing code, and code that doesn't cope with spurious
261 wakeups needs fixing anyway.
262 - use fd -1 in mmap.
263 - cast I32 to int in error message printf.
264 - warn about broken so-called "hardened" kernels.
265
2666.08 Fri Apr 13 12:05:47 CEST 2012
267 - be more aggressive about exiting like perl does - formerly,
268 exiting from the non-main thread would not execute END blocks.
269
2706.07 Fri Nov 11 21:21:48 CET 2011
271 - work around a bug in PerlIO (setting $SIG{__WARN__} to a PVCV).
272 - update ecb.h.
273
2746.06 Mon Aug 8 23:59:48 CEST 2011
275 - cygwin unfortunately patches the stack at runtime, so we use the pthreads
276 backend, which is an order of magnitude slower. unfortunately, cygwins
277 pthread implementation isn't very complete either, so allocate the stack
278 twice just to be sure.
279 (note: cygwin also enables mymalloc, which is NOT THREADSAFE ON WINDOWS,
280 in its ithreaded perl - best recompile cygwin and use the 'w'indows
281 backend for much better performance. also disable ithreads for
282 even better performance...).
283
2846.05 Thu Aug 4 21:36:36 CEST 2011
285 - blush, condvar values would not be propagated from send to recv anymore
286 (reported by Chip Salzenberg).
287 - use exponential increase for the readline buffer length in
288 Coro::Handle. also reduce initial allocation to 1020 from 4096 bytes.
289
2906.04 Wed Aug 3 17:15:45 CEST 2011
291 - use even more efficient and more compatible condvars for
292 compatibility to AnyEvent 6.x :)
293 - more inconsequential ecb.h updates.
294
2956.03 Wed Aug 3 11:41:30 CEST 2011
296 - change how Coro patches AnyEvent condvars for compatibility to
297 AnyEvent 6.x.
298 - update ecb.h, to no longer include <pthread.h> in case WinNT.h
299 hasn't been included.
300
3016.02 Wed Jul 13 04:35:19 CEST 2011
302 - "improve portability to Gentoo" - gentoo manages to put perl variables
303 in memory areas that are farther than 2gb apart, which the jit couldn't
304 handle and barfed. now it's just a bit slower on gentoo and similar
305 systems.
306
3076.01 Sun Jul 3 12:31:14 CEST 2011
308 - workarounds are good, but the test for whether pthreads are used
309 was not good. this one should be better.
310 - check differently whether gcc generates cfi instructions itself.
311
3126.0 Wed Jun 29 19:43:35 CEST 2011
313 - INCOMPATIBLE CHANGE: unreferenced coro objects will now be
314 destroyed and cleaned up automatically (e.g. async { schedule }).
315 - implement a JIT compiler for part of the thread switch code,
316 which gives a 50% speed improvement on threaded perls, and
317 about 4% on non-threaded perls (so threaded perls now finally
318 reach about half the speed of non-threaded perls).
319 - slightly modernise Coro::Intro, add section about rouse functions.
320 - avoid DEFSV and ERRSV, giving another 10% improvement
321 in thread switching.
322 - Coro::State->is_destroyed is now called is_zombie.
323 - implement a Coro->safe_cancel method that might fail, but
324 cancels in a "safer" way if it succeeds.
325 - add preliminary support for DEBUGGING perls.
326 - get rid of two hash-accesses when initialising a new Coro - this
327 speeds up coro creation by almost a factor of two.
328 - croak when a coro that is being cancelled tries to block
329 (e.g. while executing a guard block), instead of crashing or
330 deadlocking.
331 - use a more robust and also faster method to identify Coro::State
332 objects - speeds up everything a bit.
333 - implement Coro->cancel in XS for a 20% speed improvement, and to
334 be able to implement mutual cancellation.
335 - speed up context switches by a percent or two by more efficiently
336 allocating context stack entries.
337 - implement Coro->join and Coro->on_destroy in XS for a speedup and
338 a reduction in memory use.
339 - cancelling a coro while it itself is cancelling another coro is
340 now supported and working, instead of triggering an assertion.
341 - be a bit more crash-resistant when calling (buggy) on_destroy
342 callbacks (best effort).
343 - move on_destroy into the slf_frame, to allow extension slf
344 functions to have destructors.
345 - get rid if coro refcounting - simply crash in other interpreter
346 threads by nulling the pointers on clone.
347 - simplify warn/die hook handling when loading Coro - the convoluted
348 logic seems to be no longer neccessary.
349 - use libecb instead of our own home-grown gcc hacks.
350 - document alternatives to Coro::LWP. Please use them :)
351 - work around another mindless idiotic NEEDLESS bug in openbsd/mirbsds
352 sigaltstack. Really. wine suffers from it, erlang suffers from it,
353 and it's known since at least 2006.
354
3555.372 Wed Feb 23 06:14:30 CET 2011
356 - apparently mingw doesn't provide a working gettimeofday, try to
357 work around that by relying on Time::HiRes (indirectly brought to
358 my attention by Max Maischein).
359 - fix some portability issues when Time::HiRes was used.
360
3615.371 Mon Feb 21 14:36:08 CET 2011
362 - backport to windows process emulation code again.
363
3645.37 Sat Feb 19 07:49:44 CET 2011
365 - add a big "Coro thread life cycle" section to "man Coro".
366 - try a tentative workaround against the breakage that 5.13 has
367 introduced without depreciation period. sigh.
368 - no longer use Time::HiRes if gettimeofday is available, which
369 saves quite a lot of memory.
370
3715.36 Sun Feb 13 05:33:41 CET 2011
372 - automatically load Coro::Channel, Coro::RWLock, Coro::Semaphore,
373 Coro::SemaphoreSet, Coro::Signal and Coro::Specific on first "new"
374 method call.
375 - undocument Coro::Timer::sleep and obsolete whole module.
376 - optimise Coro::Timer::timeout memory and cpu usage.
377 - slightly updated Coro::Intro for recent changes.
378 - do not initialise PL_dirty anymore.
379
3805.25 Thu Nov 11 01:08:39 CET 2010
381 - try a different approach on netbsd - netbsd 5 finally has marginally
382 working pthreads, but still broken ucontext/sigaltstack.
383 - openbsd 4.8 finally got their act together, Coro works out of the box
384 with asm, setjmp and pthreads (no change, just informational).
385
3865.24 Sat Oct 23 11:27:12 CEST 2010
387 - port to the EV 4.0 API.
388 - work around bugs in mingw32, making strawberry perl work
389 out of the box.
390 - correctly modify Coro::AIO function prototypes
391 so that they reflect the "no optional parameters" rule.
392 - "ported" libcoro to C++.
393
3945.23 Mon May 17 18:50:42 CEST 2010
395 - be more resistant to ordering changes when initialising
396 Coro::AnyEvent, Coro::EV and Coro::Event (reported by Matthias
397 Waldorf).
398 - document that perl 5.12 deliberately removed support for cloning.
399
4005.22 Wed Apr 14 03:55:35 CEST 2010
401 - correctly return udnef on errors in Coro::Handle::read/write
402 (testcase by Marc Mims).
403 - convert Coro::Util into a "perl compatibility wrapper" - the functions
404 are less useful now, but are drop-in replacements for existing
405 functions, listing better alternatives in the documentation. This also
406 fixes a bug in Coro::LWP which naively substituted Socket::inet_aton
407 with Coro::Util::inet_aton.
408 - do not override $Coro::idle unconditionally in Coro.pm, as other
409 modules could have provided their own idle coro already
410 (for exmaple, Coro::AnyEvent).
411 - fix Coro::Util::gethost* functions.
412 - Coro::Timer corretcly exports it's symbols (reported by Hideki Yamamura).
413
4145.21 Wed Dec 16 07:19:51 CET 2009
415 - automatically load Coro::AnyEvent when AnyEvent and Coro are used
416 together.
417 - add some examples on how to combine other event loops with Coro in
418 Coro::AnyEvent, and how to run it (and not to block). Seems to be
419 the most common source of confusion.
420 - try to catch people naively blocking in an event callback.
421 - work around the perl filehandle bug issue in conjunction with
422 older common::sense (as indirectly pointed out by ZSystem).
423 - clarify the "not from signal handlers" section.
424
4255.2 Sun Oct 4 14:54:24 CEST 2009
426 - Coro::Storable destroyed the prototypes of the functions it wrapped.
427 - export rouse_cb and rouse_wait by default now.
428 - fix various prototype mismatches in Coro::AnyEvent and Coro::Handle.
429 - new method $state->swap_sv.
430 - added section on "windows process emulation" to the manpage,
431 after a not-so-fruitful (nor-friendly) "discussion" with chip
432 salzenberg (discussion implies arguments, but his only arguments
433 were ad-hominems, one wonders why he started it in the first
434 place). I hope this explains it well enough for him to understand,
435 and maybe well enough for others to understand.
436 - use common::sense everywhere now.
437 - idle callbacks are no longer supported, use idle coros instead.
438 - print a thread listing when a deadlock is detected.
439
4405.17 Sat Aug 22 23:09:31 CEST 2009
441 - work around a bug in the perl debugger causing crashes
442 when running under the debugger by marking _pool_handler as nodebug.
443 - speed up Coro::async considerably.
444 - try some hacks to get netbsd to work "more often" - their broken
445 setjmp/longjmp, ucontext *and* phtreads are really hard on Coro.
446 - convert Coro to AE 5.0 API.
447
4485.162 Tue Jul 28 04:04:03 CEST 2009
449 - perl 5.8.2 is now minimum requirement.
450 - skip t/19_handle.t on broken windows perls.
451
4525.161 Wed Jul 22 04:47:38 CEST 2009
453 - Coro::AnyEvent::poll could have a different prototype when EV was
454 used as backend (analyzed by Tatsuhiko Miyagawa).
455 - Coro::AnyEvent errornously initialised the event loop when loaded,
456 not on demand.
457 - try to workaround rare */t/01_unblock.t failures.
458
4595.16 Tue Jul 21 01:44:37 CEST 2009
460 - Coro::AnyEvent failed to hook into the event loop
461 when no threads had been readied between detecting
462 the event loop and actually running it.
463 - considerably speed up Coro::Select by taking avdantage
464 of AnyEvent > 4.8 and some other optimisations.
465 - implement paragraph readline mode in Coro::Handle
466 (based on patches by Zsbán Ambrus).
467 - replace WSAEINPROGRESS by WSAEWOULDBLOCK (reported
468 and analyzed by Yasuhiro MATSUMOTO).
469 - clarified libcoro license and copyright.
470 - someone stole my EXTRA_META!!!
471 - implement Coro::Select::patch_pp_sselect and it's brother,
472 for hardcode select overriding.
473
4745.151 Mon Jul 6 05:41:57 CEST 2009
475 - backport to windows process emulation code again (patch by
476 Yasuhiro MATSUMOTO).
477 - slightly update Coro::MakeMaker.
478
4795.15 Tue Jun 30 10:28:06 CEST 2009
480 - deprecate Coro::Socket, document how to get ipv6 support via
481 AnyEvent::Socket instead.
482 - implement signal->wait ($cb) interface, similar to semaphores.
483 - work around SvOK not supporting getmagic, so we have to getmagic
484 to test for undef :/ (reported by Matthias Waldorf).
485 - load Coro::AnyEvent in all modules using AnyEvent.
486 - work around perl corrupting our internal data structures,
487 reported by Tokuhiro Matsuno.
488 - enable per-coroutine real and cpu time gathering
489 (Coro::State::enable_times).
490
4915.14 Wed Jun 24 01:37:48 CEST 2009
492 - provide explicit functions to "cede" to the event loop in Coro::AnyEvent,
493 as this seems to have been a difficult concept (poll, sleep, idle,
494 idle_upto).
495 - add Coro::AnyEvent::readable/writable functions.
496 - clarify Coro::EV/Event/AnyEvent manpages.
497 - free per-thread global scalars in the thread calling ->cancel, to
498 avoid crashes when $_, $@ etc., are magical but some of those
499 had already been freed.
500 - "unexperimentalise" the callback interface for Coro::Semaphore.
501 - speed up ready queue management/context switching by using a linked
502 list instead of an array (~5-10%).
503 - implement "watch" command in Coro::Debug shells.
504 - for fun, implement time-slicing as an example in the manpage.
505 - if AnyEvent detects EV or Event, but we don't have Coro::EV or
506 Coro::Event, use the normal AnyEvent handling instead of dieing
507 (the same is true for Coro::Handle).
508 - properly document Coro::EV::timed_io_once.
509 - avoid unneccessary ->cancel calls in Coro::Handle.
510 - maybe make it work on mingw32 with win32 backend
511 (based on patch by Yasuhiro Matsumoto).
512
5135.132 Fri May 29 09:00:39 CEST 2009
514 - do not keep a reference to the argument itself in
515 Coro::Semaphore::guard, as it could change later.
516 - support SO_RCVBUF/SO_SNDBUF nonstandard Coro::Socket options,
517 should support a prepare callback.
518
5195.131 Mon Mar 16 23:20:37 CET 2009
520 - implement and document Coro->suspend, Coro->resume.
521 - fix Coro::Select implementation to not (often) close
522 the passed file descriptors (testcase provided by pippijn).
523
5245.13 Mon Dec 15 21:51:42 CET 2008
525 - EXPERIMENTAL: implement dynamic winds (on_enter/on_leave).
526 - don't set diehook to C<undef> but instead to NULL, to avoid
527 spurious warnings.
528 - fix a lot of bugs in Coro::SemaphoreSet.
529 - Coro::SemaphoreSet will less often create a semaphore needlessly.
530 - add Coro::SemaphoreSet::count and wait methods.
531 - take advantage of the new Guard module.
532 - deprecate Coro::guard.
533 - try to fix the dreaded 01_unblock tests once more. I hate it when
534 testsuites need more fixing than the code they are supposed to test.
535 - croak in more cases when a required callback isn't resolvable.
536 - fix some minor issues in Coro::State->call/eval.
537 - use current coroutine context instead of a temporary one
538 when temporarily switching to another coroutine.
539 - do not call C-level on_destroy handlers during global destruction,
540 to avoid needless segfaults.
541
5425.12 Sun Dec 7 13:30:38 CET 2008
543 - add default config for MirOS, which seems to be a bug-to-bug
544 compatible fork of openbsd ("world domination by releasing
545 openbsd cvs before the openbsd folks do it" or so :).
546 - free_padlist did destroy the names pad, not good, but didn't
547 seem to bother perl - this could fix issues such as eval ""
548 inside a function called from multiple coroutines.
549 - use a different method to detect destruction time.
550 - be more careful when freeing padlists just before global
551 destruction.
552 - fixed and expanded the call/cc example.
553 - renamed _terminate to _coro_run.
554 - new method Coro::Channel->shutdown.
555 - try pthreads on openbsd <4.4 (broken sigaltstack, will
556 pthreads fare better?).
557 - be less picky about destroying "a" running coroutine.
558
5595.11 Tue Nov 25 21:49:05 CET 2008
560 - DEBUGGING in 5.10.0 is a mess: it constantly flags perfectly
561 working code with failed assertions, introducing more bugs than
562 it fixes, requiring elaborate workarounds :(
563
5645.1 Mon Nov 24 08:54:59 CET 2008
9 - wrote a small introduction - Coro::Intro. 565 - wrote a small introductory tutorial - Coro::Intro.
10 - convert Coro::Timer, Coro::Select and Coro::Util to rouse API. 566 - convert Coro::Timer, Coro::Select and Coro::Util to rouse API.
11 - Coro::Select did errornously dup the file descriptors 567 - Coro::Select did errornously dup the file descriptors
12 and didn't work with all AnyEvent backends. 568 and didn't work with all AnyEvent backends.
569 - Coro::Select wasn't imported correctly form Coro::LWP, causing blocking
570 LWP data transfers.
13 - disassociate c contexts from coro objects - this is agruably more 571 - disassociate c contexts from coro objects - this is agruably more
14 correct, but mostly allows sharing of cctxs between coro and state 572 correct, but mostly allows sharing of cctxs between coro and state
15 objects, for added memory savings and speed increases. 573 objects, for added memory savings and speed increases.
16 - bumped $Coro::POOL_RSS up to 32kb by default. 574 - bumped $Coro::POOL_RSS up to 32kb by default.
17 - no longer set the optype to OP_CUSTOM, as B::* understandably 575 - no longer set the optype to OP_CUSTOM, as B::* understandably
118 - ->throw is now supported on Coro::State objects. 676 - ->throw is now supported on Coro::State objects.
119 - clean up cctx creation code a bit. 677 - clean up cctx creation code a bit.
120 - entersub is actually a UNOP, not a LOGOP (not a bugfix). 678 - entersub is actually a UNOP, not a LOGOP (not a bugfix).
121 679
1224.9 Sat Nov 8 17:45:27 CET 2008 6804.9 Sat Nov 8 17:45:27 CET 2008
123 - (libcoro) did not preserve rbp with CORO_ASM (we are getting there). 681 - (libcoro) did not preserve rbp with CORO_ASM (we are getting there).
124 - (libcoro) no longer leak threads in the experimental pthread backend, 682 - (libcoro) no longer leak threads in the experimental pthread backend,
125 also speed it up considerably. 683 also speed it up considerably.
126 - (libcoro) do not rely on makecontext passing void *'s unscathed. 684 - (libcoro) do not rely on makecontext passing void *'s unscathed.
127 - fix compiletime dependencies on libcoro in the Makefile. 685 - fix compiletime dependencies on libcoro in the Makefile.
128 - cctx_count wasn't always updated properly. 686 - cctx_count wasn't always updated properly.
190 - remove debugging code related to MgPV_nolen_const, also try to 748 - remove debugging code related to MgPV_nolen_const, also try to
191 make it compile with perl 5.8.6 (yes, apple apparently loves 749 make it compile with perl 5.8.6 (yes, apple apparently loves
192 outdated software). Reported by John S. 750 outdated software). Reported by John S.
193 751
1944.744 Tue Jul 8 22:06:35 CEST 2008 7524.744 Tue Jul 8 22:06:35 CEST 2008
195 - correctly provide default DIE/WARN handlers as documented. 753 - correctly provide default DIE/WARN handlers as documented.
196 - also overwrite PL_vtbl_sigelem.svt_clear, even though current 754 - also overwrite PL_vtbl_sigelem.svt_clear, even though current
197 implementations inside perl work fine for us. 755 implementations inside perl work fine for us.
198 756
1994.743 Mon Jun 16 00:21:57 CEST 2008 7574.743 Mon Jun 16 00:21:57 CEST 2008
200 - when using Coro::EV without running EV::loop it could 758 - when using Coro::EV without running EV::loop it could
222 - sprinkle "no warnings" freely over everything, also suppress 780 - sprinkle "no warnings" freely over everything, also suppress
223 warnings for some other modules. 781 warnings for some other modules.
224 - fix typo in WSAEWOULDBLOCK. 782 - fix typo in WSAEWOULDBLOCK.
225 783
2264.72 Sun May 25 05:14:36 CEST 2008 7844.72 Sun May 25 05:14:36 CEST 2008
227 - tweak META.yaml a bit, unfortunately, there is no documented way 785 - tweak META.yaml a bit, unfortunately, there is no documented way
228 to have optional dependencies with CPAN. doh :( 786 to have optional dependencies with CPAN. doh :(
229 - avoid running some tests on windows because they would fail due to 787 - avoid running some tests on windows because they would fail due to
230 perl bug (broken fork, broken pipes...). 788 perl bug (broken fork, broken pipes...).
231 - work around perl on windows bugs where perl returns undocumented 789 - work around perl on windows bugs where perl returns undocumented
232 error codes for sysread, syswrite etc. by taking advantage 790 error codes for sysread, syswrite etc. by taking advantage
236 - use unix domain sockets in testsuite to work around 794 - use unix domain sockets in testsuite to work around
237 common perl implementation bugs on widows (they are emulated by 795 common perl implementation bugs on widows (they are emulated by
238 tcp sockets on windows. ugh.) 796 tcp sockets on windows. ugh.)
239 797
2404.71 Sat May 24 20:01:27 CEST 2008 7984.71 Sat May 24 20:01:27 CEST 2008
241 - fix a bug in Coro::AnyEvent ("Usage: Coro::AnyEvent::_schedule()"). 799 - fix a bug in Coro::AnyEvent ("Usage: Coro::AnyEvent::_schedule()").
242 - take advantage of async name resolution of AnyEvent::Util. 800 - take advantage of async name resolution of AnyEvent::Util.
243 - work around brutal inet_aton override in Coro::LWP. 801 - work around brutal inet_aton override in Coro::LWP.
244 - take advantage of the readyhook in Coro::EV, for smoother 802 - take advantage of the readyhook in Coro::EV, for smoother
245 scheduling. 803 scheduling.
246 804
2474.7 Sun May 11 00:32:19 CEST 2008 8054.7 Sun May 11 00:32:19 CEST 2008
248 - completely reworked the Coro manpage. 806 - completely reworked the Coro manpage.
249 - added Coro::AnyEvent, generic event loop integration. 807 - added Coro::AnyEvent, generic event loop integration.
250 - implement cancel, ready and kill commands in Coro::Debug. 808 - implement cancel, ready and kill commands in Coro::Debug.
251 - document find_coro in Coro::Debug. 809 - document find_coro in Coro::Debug.
252 - incompatible change: rename has_stack to has_cctx. 810 - incompatible change: rename has_stack to has_cctx.
253 - Coro::AIO and Coro::BDB no longer force event model detection, 811 - Coro::AIO and Coro::BDB no longer force event model detection,
254 use AnyEvent::AIO and AnyEvent::BDB. 812 use AnyEvent::AIO and AnyEvent::BDB.
378 936
3794.11 Thu Oct 11 02:40:24 CEST 2007 9374.11 Thu Oct 11 02:40:24 CEST 2007
380 - port to threaded perls. 938 - port to threaded perls.
381 939
3824.1 Thu Oct 11 02:38:16 CEST 2007 9404.1 Thu Oct 11 02:38:16 CEST 2007
383 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now 941 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now
384 be local to each coro (see Coro::State). 942 be local to each coro (see Coro::State).
385 - incompatible change: for very deep reasons, cede and cede_notself 943 - incompatible change: for very deep reasons, cede and cede_notself
386 cannot return anything, so nothing will be returned. 944 cannot return anything, so nothing will be returned.
387 - possibly bring back 5.10 compatibility (untested). 945 - possibly bring back 5.10 compatibility (untested).
388 - work around stupid (and wrong) warning on 5.10 :(. 946 - work around stupid (and wrong) warning on 5.10 :(.
460 but stateful semantics. 1018 but stateful semantics.
461 - fixed a lot of typos in Coro.pm (patch submitted by David 1019 - fixed a lot of typos in Coro.pm (patch submitted by David
462 Steinbrunner, which applied flawlessly). 1020 Steinbrunner, which applied flawlessly).
463 1021
4643.6 Sat Apr 14 17:13:31 CEST 2007 10223.6 Sat Apr 14 17:13:31 CEST 2007
465 - added some bugfixes to get eg/myhttpd working again. 1023 - added some bugfixes to get eg/myhttpd working again.
466 - added Coro::Storable for often-cede'ing freeze/thaw. 1024 - added Coro::Storable for often-cede'ing freeze/thaw.
467 - try to do a clean exit when a coroutine calls exit 1025 - try to do a clean exit when a coroutine calls exit
468 (EXPERIMENTAL). 1026 (EXPERIMENTAL).
469 - got rid of indirect call through _coro_init. 1027 - got rid of indirect call through _coro_init.
470 - updated the partly antique examples in eg/ to 1028 - updated the partly antique examples in eg/ to

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines