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

Comparing Coro/Changes (file contents):
Revision 1.430 by root, Tue Nov 18 10:31:03 2008 UTC vs.
Revision 1.667 by root, Fri Jul 14 03:02:44 2017 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?
7 8
8TODO: testcancel 9 - seems to pass test suite down till 5.8.9, so make this the
9TODO: guard as SLF - to avoid deadlocks. 10 minimum requirement in Makefile.PL.
10 - avoid deadlock in Coro::Channel if maxsize == 1 (Richard Hundt). 11 - experimental 5.24 compatibility changes (SUB_ARGARRAY).
12 - experimental 5.26 compatibility changes (PL_comppad -> PADOFFSET).
13 - disable FORTIFY_SOURCE to avoid broken (but well-intentioned)
14 fortified longjmp variants in some libcs.
15 - re-try JIT allocation without PROT_EXEC, to hopefully improve
16 portability (still doesn't seem to work around broken selinux
17 mmap everywhere).
18 - speling fixes (Xavier Guimard).
11 19
125.0 206.511 Sun Jun 26 23:44:50 CEST 2016
21 - make it compile with threaded perls again.
22 - simplify and speed up __DIE__ and __WARN__ handling.
23
246.51 Sat Jun 25 20:57:20 CEST 2016
25 - 6.5 release didn't compile on most older perls due to
26 a logic error enabling experimental 5.24 code for all versions.
27 - since various broken or deficient patches float around
28 to work around the vtbl API breakage in perl, let's provide
29 our own workaround, which seems to be much less invasive
30 and more compatible than the approaches seen so far. YMMV.
31 - work around assertion failure in perl_destruct on 5.24
32 (analyzed by Dave Mitchell).
33
346.5 Wed Jun 22 22:23:50 CEST 2016
35 - swap_sv swapping order was not symmetrical, causing
36 wrong swaps when swap_sv was used multiple times on the
37 same sv in the same thread.
38 - swap_sv calls can now be undone by calling it again
39 with the same variables.
40 - swap_sv calls will now be undone in async_pool threads.
41 - split Coro::Semaphore::up/adjust into separate xs functions
42 for better error reporting, at slight codesize increase.
43 - (libcoro) arm assembly support, please test and report.
44 - adjust to PL_savestack changes in perl 5.24 (adapted from
45 the debian patch, which unfortunately gets it wrong).
46
476.49 Sat Oct 17 01:40:12 CEST 2015
48 - throwing an exception to a thread waiting in
49 Coro::Handle using Coro::EV did not stop the watchers,
50 causing the next call to fail (testcase by Martin Pritchard).
51 - bump minimum perl version to 5.10.
52
536.48 Sun Oct 4 19:03:51 CEST 2015
54 - fix memory leak when Coro::Handle uses Coro::EV internally
55 (testcase by Sten Sten).
56 - update code to libev 4 API (internally, Coro still used the
57 version 3 API calls).
58 - remove unused hv_sig.
59
606.47 Sat Jul 11 03:58:20 CEST 2015
61 - swap_svs - NVs can be in the SV head beginning with 5.20.
62
636.46 Tue Jun 30 14:36:30 CEST 2015
64 - restore portability to perls with windows fork emulation
65 (patch by Petr Písař).
66
676.45 Tue Jun 30 01:40:08 CEST 2015
68 - restore portability to perl 5.16 and below.
69
706.44 Tue Jun 30 00:41:54 CEST 2015
71 - avoid segfaulting (or worse) when tracing a canceled thread.
72 - the Event module silently broke it's public hook API, causing
73 failures on perls compiled with -Duselongdouble. Requiring
74 the latest version of Event because I don't know which release
75 changed this (it's not mentioned in the ChangeLog).
76 - allow xs level enterleave hooks via CoroAPI.
77
786.43 Thu Jun 4 15:38:14 CEST 2015
79 - use stability canary.
80 - port to stableperl-5.22.0-1.001.
81 - update libecb.
82
836.42 Wed Feb 11 20:29:52 CET 2015
84 - Coro::SemaphoreSet->try did not actually work (analyzed by
85 SATO Kentaro).
86 - upgrade libecb to be C11 compliant.
87
886.41 Sat Sep 6 22:08:46 CEST 2014
89 - restore portability to perl 5.8.x.
90 - give new Coro's a valid GvHV(PL_hintgv) - this is slow and takes
91 up some memory, but fixes "use feature" and similar modules
92 when used inside a Coro.
93 - allow zero as argument to Coro::Channel to mean the same thing
94 as no argument. this works with older versions as well,
95 but wasn't legal until now.
96 - slightly better c header file detection.
97
986.39 Mon Jun 2 00:00:08 CEST 2014
99 - work around more incompatible changes in 5.20.
100
1016.38 Sun Jun 1 21:54:23 CEST 2014
102 - check that perl slots actually have enough space to hold
103 interpreter variables.
104 - untested port to perl 5.19 (64 bit tmps indices) (reported
105 by Andreas König).
106 - croak when cancel is called without a thread context.
107
1086.37 Tue Mar 4 13:27:33 CET 2014
109 - *sigh*, removed leftover debugging code from debugging a
110 perl bug, of all things.
111
1126.36 Tue Mar 4 07:11:59 CET 2014
113 - semaphores would not clear the destroy hook when interrupted
114 by ->throw, causing segfaults or worse.
115 - ->throw on a thread waiting for a semaphore did not acquire
116 the semaphore, but also didn't wake up other waiters,
117 possibly causing a deadlock.
118 - "FATAL: $Coro::IDLE blocked itself" will now use Carp::confess
119 to report a full stacktrace, which should help find out
120 where the actual call is.
121 - "atomically" destroy data in slf_destroy, because it is
122 the right thing to do, just in case.
123 - disable ecb.h libm dependency, to compile on ancient systems
124 or under adverse conditions.
125
1266.33 Mon Nov 18 11:26:27 CET 2013
127 - do not crash when freeing padlists with holes (in 5.18).
128 - tentative SVt_BIND 5.19 port/fix.
129
1306.32 Tue Nov 5 15:35:35 CET 2013
131 - use a new algorithm to derive padlists for perl 5.18. The old
132 one could lead to 0-pointer accesses inside perl (reported
133 by Darin McBride).
134
1356.31 Thu May 9 07:39:48 CEST 2013
136 - Coro::AIO requests would crash if the thread was ready'd
137 while the request was ongoing.
138
1396.29 Wed May 8 02:55:18 CEST 2013
140 - when an on_destroy handler destructs the coro currently being
141 destructed a perl scalar could be accessed after being freed,
142 likely causing a crash.
143
1446.28 Wed Mar 6 06:58:02 CET 2013
145 - clean remnants of existing __DIE__ and __WARN__ handlers so
146 they lose their magic and will not cause segfaults later
147 (testcase by Andrey Sagulin).
148 - improved Coro::State documentation a bit.
149 - Coro::Debug::command now flushes the output.
150 - add hack detection code for x32 abi, because the braindead slugs
151 who designed that made it look exactly like x86_64 without
152 providing proper compile time symbols to test for it. as a result,
153 this detection cannot work reliably.
154 - valgrind stack registering was broken.
155 - do not rely on Time::HiRes anymore in Coro::Debug.
156
1576.23 Fri Dec 7 23:36:37 CET 2012
158 - use experimental fiber implementation on native windows
159 perls.
160 - use sizeof (void *) as multiplication factor for stack sizes,
161 to accomodate the totally braindamaged microsoft 64 bit "os".
162 - changed verifier host from win2k-ap510-32 to win7-sp516-32/64.
163 activeperl 5.16 crashes when PerlIO_define_layer is called due
164 to some bug in the perl dll, strawberry perl at least passes
165 the testsuite.
166 - implement Coro::Handle->peeraddr/host/port, for slightly
167 improved compatibility with LWP.
168 - implement 5.17 compatibility by almost blindly applying a
169 good-looking patch by Father Chrysostomos.
170 - move stack management functions into libcoro 3.
171 - libcoro version 3 "released".
172 - support magic values as timed_io_once args.
173 - recommend AnyEvent 7+ or EV 4+, also require EV
174 version 4 or newer for Coro::EV.
175
1766.10 Tue Oct 9 01:14:27 CEST 2012
177 - updated ecb.h, it had a typo that caused it to not compile on many
178 big endian systems (reported by many people).
179 - disable memory fences in ecb.h to improve portability.
180
1816.09 Sat Oct 6 23:25:02 CEST 2012
182 - Coro::EV I/O watchers were not interruptible by exceptions
183 (Coro::State::throw) (testcase by sten).
184 - ->throw now puts threads into the ready queue, as this seems to
185 be expected by existing code, and code that doesn't cope with spurious
186 wakeups needs fixing anyway.
187 - use fd -1 in mmap.
188 - cast I32 to int in error message printf.
189 - warn about broken so-called "hardened" kernels.
190
1916.08 Fri Apr 13 12:05:47 CEST 2012
192 - be more aggressive about exiting like perl does - formerly,
193 exiting from the non-main thread would not execute END blocks.
194
1956.07 Fri Nov 11 21:21:48 CET 2011
196 - work around a bug in PerlIO (setting $SIG{__WARN__} to a PVCV).
197 - update ecb.h.
198
1996.06 Mon Aug 8 23:59:48 CEST 2011
200 - cygwin unfortunately patches the stack at runtime, so we use the pthreads
201 backend, which is an order of magnitude slower. unfortunately, cygwins
202 pthread implementation isn't very complete either, so allocate the stack
203 twice just to be sure.
204 (note: cygwin also enables mymalloc, which is NOT THREADSAFE ON WINDOWS,
205 in its ithreaded perl - best recompile cygwin and use the 'w'indows
206 backend for much better performance. also disable ithreads for
207 even better performance...).
208
2096.05 Thu Aug 4 21:36:36 CEST 2011
210 - blush, condvar values would not be propagated from send to recv anymore
211 (reported by Chip Salzenberg).
212 - use exponential increase for the readline buffer length in
213 Coro::Handle. also reduce initial allocation to 1020 from 4096 bytes.
214
2156.04 Wed Aug 3 17:15:45 CEST 2011
216 - use even more efficient and more compatible condvars for
217 compatibility to AnyEvent 6.x :)
218 - more inconsequential ecb.h updates.
219
2206.03 Wed Aug 3 11:41:30 CEST 2011
221 - change how Coro patches AnyEvent condvars for compatibility to
222 AnyEvent 6.x.
223 - update ecb.h, to no longer include <pthread.h> in case WinNT.h
224 hasn't been included.
225
2266.02 Wed Jul 13 04:35:19 CEST 2011
227 - "improve portability to Gentoo" - gentoo manages to put perl variables
228 in memory areas that are farther than 2gb apart, which the jit couldn't
229 handle and barfed. now it's just a bit slower on gentoo and similar
230 systems.
231
2326.01 Sun Jul 3 12:31:14 CEST 2011
233 - workarounds are good, but the test for whether pthreads are used
234 was not good. this one should be better.
235 - check differently whether gcc generates cfi instructions itself.
236
2376.0 Wed Jun 29 19:43:35 CEST 2011
238 - INCOMPATIBLE CHANGE: unreferenced coro objects will now be
239 destroyed and cleaned up automatically (e.g. async { schedule }).
240 - implement a JIT compiler for part of the thread switch code,
241 which gives a 50% speed improvement on threaded perls, and
242 about 4% on non-threaded perls (so threaded perls now finally
243 reach about half the speed of non-threaded perls).
244 - slightly modernise Coro::Intro, add section about rouse functions.
245 - avoid DEFSV and ERRSV, giving another 10% improvement
246 in thread switching.
247 - Coro::State->is_destroyed is now called is_zombie.
248 - implement a Coro->safe_cancel method that might fail, but
249 cancels in a "safer" way if it succeeds.
250 - add preliminary support for DEBUGGING perls.
251 - get rid of two hash-accesses when initialising a new Coro - this
252 speeds up coro creation by almost a factor of two.
253 - croak when a coro that is being cancelled tries to block
254 (e.g. while executing a guard block), instead of crashing or
255 deadlocking.
256 - use a more robust and also faster method to identify Coro::State
257 objects - speeds up everything a bit.
258 - implement Coro->cancel in XS for a 20% speed improvement, and to
259 be able to implement mutual cancellation.
260 - speed up context switches by a percent or two by more efficiently
261 allocating context stack entries.
262 - implement Coro->join and Coro->on_destroy in XS for a speedup and
263 a reduction in memory use.
264 - cancelling a coro while it itself is cancelling another coro is
265 now supported and working, instead of triggering an assertion.
266 - be a bit more crash-resistant when calling (buggy) on_destroy
267 callbacks (best effort).
268 - move on_destroy into the slf_frame, to allow extension slf
269 functions to have destructors.
270 - get rid if coro refcounting - simply crash in other interpreter
271 threads by nulling the pointers on clone.
272 - simplify warn/die hook handling when loading Coro - the convoluted
273 logic seems to be no longer neccessary.
274 - use libecb instead of our own home-grown gcc hacks.
275 - document alternatives to Coro::LWP. Please use them :)
276 - work around another mindless idiotic NEEDLESS bug in openbsd/mirbsds
277 sigaltstack. Really. wine suffers from it, erlang suffers from it,
278 and it's known since at least 2006.
279
2805.372 Wed Feb 23 06:14:30 CET 2011
281 - apparently mingw doesn't provide a working gettimeofday, try to
282 work around that by relying on Time::HiRes (indirectly brought to
283 my attention by Max Maischein).
284 - fix some portability issues when Time::HiRes was used.
285
2865.371 Mon Feb 21 14:36:08 CET 2011
287 - backport to windows process emulation code again.
288
2895.37 Sat Feb 19 07:49:44 CET 2011
290 - add a big "Coro thread life cycle" section to "man Coro".
291 - try a tentative workaround against the breakage that 5.13 has
292 introduced without depreciation period. sigh.
293 - no longer use Time::HiRes if gettimeofday is available, which
294 saves quite a lot of memory.
295
2965.36 Sun Feb 13 05:33:41 CET 2011
297 - automatically load Coro::Channel, Coro::RWLock, Coro::Semaphore,
298 Coro::SemaphoreSet, Coro::Signal and Coro::Specific on first "new"
299 method call.
300 - undocument Coro::Timer::sleep and obsolete whole module.
301 - optimise Coro::Timer::timeout memory and cpu usage.
302 - slightly updated Coro::Intro for recent changes.
303 - do not initialise PL_dirty anymore.
304
3055.25 Thu Nov 11 01:08:39 CET 2010
306 - try a different approach on netbsd - netbsd 5 finally has marginally
307 working pthreads, but still broken ucontext/sigaltstack.
308 - openbsd 4.8 finally got their act together, Coro works out of the box
309 with asm, setjmp and pthreads (no change, just informational).
310
3115.24 Sat Oct 23 11:27:12 CEST 2010
312 - port to the EV 4.0 API.
313 - work around bugs in mingw32, making strawberry perl work
314 out of the box.
315 - correctly modify Coro::AIO function prototypes
316 so that they reflect the "no optional parameters" rule.
317 - "ported" libcoro to C++.
318
3195.23 Mon May 17 18:50:42 CEST 2010
320 - be more resistant to ordering changes when initialising
321 Coro::AnyEvent, Coro::EV and Coro::Event (reported by Matthias
322 Waldorf).
323 - document that perl 5.12 deliberately removed support for cloning.
324
3255.22 Wed Apr 14 03:55:35 CEST 2010
326 - correctly return udnef on errors in Coro::Handle::read/write
327 (testcase by Marc Mims).
328 - convert Coro::Util into a "perl compatibility wrapper" - the functions
329 are less useful now, but are drop-in replacements for existing
330 functions, listing better alternatives in the documentation. This also
331 fixes a bug in Coro::LWP which naively substituted Socket::inet_aton
332 with Coro::Util::inet_aton.
333 - do not override $Coro::idle unconditionally in Coro.pm, as other
334 modules could have provided their own idle coro already
335 (for exmaple, Coro::AnyEvent).
336 - fix Coro::Util::gethost* functions.
337 - Coro::Timer corretcly exports it's symbols (reported by Hideki Yamamura).
338
3395.21 Wed Dec 16 07:19:51 CET 2009
340 - automatically load Coro::AnyEvent when AnyEvent and Coro are used
341 together.
342 - add some examples on how to combine other event loops with Coro in
343 Coro::AnyEvent, and how to run it (and not to block). Seems to be
344 the most common source of confusion.
345 - try to catch people naively blocking in an event callback.
346 - work around the perl filehandle bug issue in conjunction with
347 older common::sense (as indirectly pointed out by ZSystem).
348 - clarify the "not from signal handlers" section.
349
3505.2 Sun Oct 4 14:54:24 CEST 2009
351 - Coro::Storable destroyed the prototypes of the functions it wrapped.
352 - export rouse_cb and rouse_wait by default now.
353 - fix various prototype mismatches in Coro::AnyEvent and Coro::Handle.
354 - new method $state->swap_sv.
355 - added section on "windows process emulation" to the manpage,
356 after a not-so-fruitful (nor-friendly) "discussion" with chip
357 salzenberg (discussion implies arguments, but his only arguments
358 were ad-hominems, one wonders why he started it in the first
359 place). I hope this explains it well enough for him to understand,
360 and maybe well enough for others to understand.
361 - use common::sense everywhere now.
362 - idle callbacks are no longer supported, use idle coros instead.
363 - print a thread listing when a deadlock is detected.
364
3655.17 Sat Aug 22 23:09:31 CEST 2009
366 - work around a bug in the perl debugger causing crashes
367 when running under the debugger by marking _pool_handler as nodebug.
368 - speed up Coro::async considerably.
369 - try some hacks to get netbsd to work "more often" - their broken
370 setjmp/longjmp, ucontext *and* phtreads are really hard on Coro.
371 - convert Coro to AE 5.0 API.
372
3735.162 Tue Jul 28 04:04:03 CEST 2009
374 - perl 5.8.2 is now minimum requirement.
375 - skip t/19_handle.t on broken windows perls.
376
3775.161 Wed Jul 22 04:47:38 CEST 2009
378 - Coro::AnyEvent::poll could have a different prototype when EV was
379 used as backend (analyzed by Tatsuhiko Miyagawa).
380 - Coro::AnyEvent errornously initialised the event loop when loaded,
381 not on demand.
382 - try to workaround rare */t/01_unblock.t failures.
383
3845.16 Tue Jul 21 01:44:37 CEST 2009
385 - Coro::AnyEvent failed to hook into the event loop
386 when no threads had been readied between detecting
387 the event loop and actually running it.
388 - considerably speed up Coro::Select by taking avdantage
389 of AnyEvent > 4.8 and some other optimisations.
390 - implement paragraph readline mode in Coro::Handle
391 (based on patches by Zsbán Ambrus).
392 - replace WSAEINPROGRESS by WSAEWOULDBLOCK (reported
393 and analyzed by Yasuhiro MATSUMOTO).
394 - clarified libcoro license and copyright.
395 - someone stole my EXTRA_META!!!
396 - implement Coro::Select::patch_pp_sselect and it's brother,
397 for hardcode select overriding.
398
3995.151 Mon Jul 6 05:41:57 CEST 2009
400 - backport to windows process emulation code again (patch by
401 Yasuhiro MATSUMOTO).
402 - slightly update Coro::MakeMaker.
403
4045.15 Tue Jun 30 10:28:06 CEST 2009
405 - deprecate Coro::Socket, document how to get ipv6 support via
406 AnyEvent::Socket instead.
407 - implement signal->wait ($cb) interface, similar to semaphores.
408 - work around SvOK not supporting getmagic, so we have to getmagic
409 to test for undef :/ (reported by Matthias Waldorf).
410 - load Coro::AnyEvent in all modules using AnyEvent.
411 - work around perl corrupting our internal data structures,
412 reported by Tokuhiro Matsuno.
413 - enable per-coroutine real and cpu time gathering
414 (Coro::State::enable_times).
415
4165.14 Wed Jun 24 01:37:48 CEST 2009
417 - provide explicit functions to "cede" to the event loop in Coro::AnyEvent,
418 as this seems to have been a difficult concept (poll, sleep, idle,
419 idle_upto).
420 - add Coro::AnyEvent::readable/writable functions.
421 - clarify Coro::EV/Event/AnyEvent manpages.
422 - free per-thread global scalars in the thread calling ->cancel, to
423 avoid crashes when $_, $@ etc., are magical but some of those
424 had already been freed.
425 - "unexperimentalise" the callback interface for Coro::Semaphore.
426 - speed up ready queue management/context switching by using a linked
427 list instead of an array (~5-10%).
428 - implement "watch" command in Coro::Debug shells.
429 - for fun, implement time-slicing as an example in the manpage.
430 - if AnyEvent detects EV or Event, but we don't have Coro::EV or
431 Coro::Event, use the normal AnyEvent handling instead of dieing
432 (the same is true for Coro::Handle).
433 - properly document Coro::EV::timed_io_once.
434 - avoid unneccessary ->cancel calls in Coro::Handle.
435 - maybe make it work on mingw32 with win32 backend
436 (based on patch by Yasuhiro Matsumoto).
437
4385.132 Fri May 29 09:00:39 CEST 2009
439 - do not keep a reference to the argument itself in
440 Coro::Semaphore::guard, as it could change later.
441 - support SO_RCVBUF/SO_SNDBUF nonstandard Coro::Socket options,
442 should support a prepare callback.
443
4445.131 Mon Mar 16 23:20:37 CET 2009
445 - implement and document Coro->suspend, Coro->resume.
446 - fix Coro::Select implementation to not (often) close
447 the passed file descriptors (testcase provided by pippijn).
448
4495.13 Mon Dec 15 21:51:42 CET 2008
450 - EXPERIMENTAL: implement dynamic winds (on_enter/on_leave).
451 - don't set diehook to C<undef> but instead to NULL, to avoid
452 spurious warnings.
453 - fix a lot of bugs in Coro::SemaphoreSet.
454 - Coro::SemaphoreSet will less often create a semaphore needlessly.
455 - add Coro::SemaphoreSet::count and wait methods.
456 - take advantage of the new Guard module.
457 - deprecate Coro::guard.
458 - try to fix the dreaded 01_unblock tests once more. I hate it when
459 testsuites need more fixing than the code they are supposed to test.
460 - croak in more cases when a required callback isn't resolvable.
461 - fix some minor issues in Coro::State->call/eval.
462 - use current coroutine context instead of a temporary one
463 when temporarily switching to another coroutine.
464 - do not call C-level on_destroy handlers during global destruction,
465 to avoid needless segfaults.
466
4675.12 Sun Dec 7 13:30:38 CET 2008
468 - add default config for MirOS, which seems to be a bug-to-bug
469 compatible fork of openbsd ("world domination by releasing
470 openbsd cvs before the openbsd folks do it" or so :).
471 - free_padlist did destroy the names pad, not good, but didn't
472 seem to bother perl - this could fix issues such as eval ""
473 inside a function called from multiple coroutines.
474 - use a different method to detect destruction time.
475 - be more careful when freeing padlists just before global
476 destruction.
477 - fixed and expanded the call/cc example.
478 - renamed _terminate to _coro_run.
479 - new method Coro::Channel->shutdown.
480 - try pthreads on openbsd <4.4 (broken sigaltstack, will
481 pthreads fare better?).
482 - be less picky about destroying "a" running coroutine.
483
4845.11 Tue Nov 25 21:49:05 CET 2008
485 - DEBUGGING in 5.10.0 is a mess: it constantly flags perfectly
486 working code with failed assertions, introducing more bugs than
487 it fixes, requiring elaborate workarounds :(
488
4895.1 Mon Nov 24 08:54:59 CET 2008
490 - wrote a small introductory tutorial - Coro::Intro.
491 - convert Coro::Timer, Coro::Select and Coro::Util to rouse API.
492 - Coro::Select did errornously dup the file descriptors
493 and didn't work with all AnyEvent backends.
494 - Coro::Select wasn't imported correctly form Coro::LWP, causing blocking
495 LWP data transfers.
496 - disassociate c contexts from coro objects - this is agruably more
497 correct, but mostly allows sharing of cctxs between coro and state
498 objects, for added memory savings and speed increases.
499 - bumped $Coro::POOL_RSS up to 32kb by default.
500 - no longer set the optype to OP_CUSTOM, as B::* understandably
501 doesn't like this very much (and we *are* a type of entersub).
502 - implement state cloning, just to prove that call/cc can be done.
503 - automatically load Coro::AnyEvent in Coro::Handle.
504 - wrap ->cancel calls in eval inside Coro::Handle as EV watchers
505 do not have this method (and don't need it either).
506 - speed up generic anyevent methods in Coro::Handle by using rouse
507 callbacks.
508 - allow coroutines in $Coro::IDLE, speeding up Coro::AnyEvent and
509 others. It also makes the debugger happier, as you can trace
510 through the idle threads now.
511 - add comppad_name* and hints ($^H, %^H) to per-thread variables.
512 - eg/event was pretty broken.
513 - better 5.8.6 compatibility.
514
5155.0 Thu Nov 20 10:35:05 CET 2008
13 - NEW ARCHITECTURE: use the latest 4.x version if you experience 516 - NEW ARCHITECTURE: use the latest 4.x version if you experience
14 stability issues. 517 stability issues.
15 - bump API version to 7 - all dependents must be recompiled. 518 - bump API version to 7 - all dependents must be recompiled.
16 - removed timed_* functions - they were not being used anyways 519 - removed timed_* functions - they were not being used anyways
17 and should be replaced by a more generic mechanism - 520 and should be replaced by a more generic mechanism -
18 and were annoying to support anyways :) 521 and were annoying to support anyways :)
19 - removed SemaphoreSet's waiter method - use sem instead. 522 - removed SemaphoreSet's waiter method - use sem method instead.
20 - Coro::Semaphore->adjust didn't correctly wake up enough waiters. 523 - Coro::Semaphore->adjust didn't correctly wake up enough waiters.
21 - async_pool did free a scalar value twice 524 - async_pool did free a scalar value twice
22 ("Attempt to unreference..."). 525 ("Attempt to unreference...").
23 - fix a longstanding bug where calling terminate on a coro that 526 - fix a longstanding bug where calling terminate on a coro that
24 was waiting for a semaphore that was just becoming available 527 was waiting for a semaphore that was just becoming available
25 would cause a deadlock (semaphore would get into a state where 528 would cause a deadlock (semaphore would get into a state where
26 it was available but waiters were waiting(. 529 it was available but waiters were still blocked).
530 - calling throw on a coroutine that is waiting for a semaphore will
531 no longer make it acquire the semaphore (and thus leak a count).
27 - perl's process emulation is now not even theoretically supported 532 - perl's process emulation is now not even theoretically supported
28 anymore. 533 anymore.
534 - new functions Coro::rouse_cb and Coro::rouse_wait for easier
535 conversion of callback-style to blocking-style.
536 - new methods $coro->schedule_to and ->cede_to, to specifically
537 schedule or cede to a specific coroutine.
538 - new function Coro::Semaphore::wait.
29 - use named constants in Coro::Channel (Richard Hundt). 539 - use named constants in Coro::Channel (Richard Hundt).
30 - directly patch the entersub opcode calling SLF functions (cede, 540 - directly patch the entersub opcode calling SLF functions (cede,
31 transfer and so on). this does speed up context switching, but 541 transfer and so on). this does speed up context switching, but
32 more importanly, it frees us from the hardcoded behaviour of 542 more importanly, it frees us from the hardcoded behaviour of
33 entersub, so we might actually be able to return something from 543 entersub, so we might actually be able to return something from
46 - implement Coro::SemaphoreSet purely in terms of Coro::Semaphore, 556 - implement Coro::SemaphoreSet purely in terms of Coro::Semaphore,
47 for a nice speedup and vastly more correct behaviour. Also implement 557 for a nice speedup and vastly more correct behaviour. Also implement
48 a new method "sem" to get at the underlying semaphore object. 558 a new method "sem" to get at the underlying semaphore object.
49 - implement Coro::Channel in terms of Coro::Semaphore, for a moderate 559 - implement Coro::Channel in terms of Coro::Semaphore, for a moderate
50 (in comparison) 20-40% speedup. 560 (in comparison) 20-40% speedup.
561 - used new SLF interface to reimplement Coro::Signal gaining
562 some unknown (because I was too lazy), but certain, speedup, and also
563 making signals reliable for the first time.
564 - used new SLF interface and other optimisations to speed up async_pool
565 by a factor of two. It also doesn't rely on perl's exception mechanism
566 to exit anymore. The overhead for terminating an async_pool, coro over
567 a normal async is now very small.
568 - sped up coroutine creation/destruction by 40%.
51 - forgot to include Coro/libcoro/README in the dist for all these years. 569 - forgot to include Coro/libcoro/README in the dist for all these years.
52 - work around a freebsd pthreads bug (manual testcancel is required as 570 - work around a freebsd pthreads bug (manual testcancel is required as
53 pthread_cond_wait isn't a cancellation point on freebsd). 571 pthread_cond_wait isn't a cancellation point on freebsd).
572 - use new rouse functions to speed up and simplify Coro::BDB.
573 - make "prefer perl native functions" work with threaded perls.
574 - condense Coro::Debug ps output, hint at v and w flags.
575 - (libcoro) lots of minor cleanups and portability improvements.
576
5774.914 Wed Nov 19 12:54:18 CET 2008
578 - fix a disastrous bug in the readline optimisation
579 introduced in 4.801.
54 580
554.913 Sat Nov 15 07:58:28 CET 2008 5814.913 Sat Nov 15 07:58:28 CET 2008
56 - async_pool did free a scalar value twice 582 - async_pool did free a scalar value twice
57 ("Attempt to unreference..."). 583 ("Attempt to unreference...").
58 584
75 - ->throw is now supported on Coro::State objects. 601 - ->throw is now supported on Coro::State objects.
76 - clean up cctx creation code a bit. 602 - clean up cctx creation code a bit.
77 - entersub is actually a UNOP, not a LOGOP (not a bugfix). 603 - entersub is actually a UNOP, not a LOGOP (not a bugfix).
78 604
794.9 Sat Nov 8 17:45:27 CET 2008 6054.9 Sat Nov 8 17:45:27 CET 2008
80 - (libcoro) did not preserve rbp with CORO_ASM (we are getting there). 606 - (libcoro) did not preserve rbp with CORO_ASM (we are getting there).
81 - (libcoro) no longer leak threads in the experimental pthread backend, 607 - (libcoro) no longer leak threads in the experimental pthread backend,
82 also speed it up considerably. 608 also speed it up considerably.
83 - (libcoro) do not rely on makecontext passing void *'s unscathed. 609 - (libcoro) do not rely on makecontext passing void *'s unscathed.
84 - fix compiletime dependencies on libcoro in the Makefile. 610 - fix compiletime dependencies on libcoro in the Makefile.
85 - cctx_count wasn't always updated properly. 611 - cctx_count wasn't always updated properly.
147 - remove debugging code related to MgPV_nolen_const, also try to 673 - remove debugging code related to MgPV_nolen_const, also try to
148 make it compile with perl 5.8.6 (yes, apple apparently loves 674 make it compile with perl 5.8.6 (yes, apple apparently loves
149 outdated software). Reported by John S. 675 outdated software). Reported by John S.
150 676
1514.744 Tue Jul 8 22:06:35 CEST 2008 6774.744 Tue Jul 8 22:06:35 CEST 2008
152 - correctly provide default DIE/WARN handlers as documented. 678 - correctly provide default DIE/WARN handlers as documented.
153 - also overwrite PL_vtbl_sigelem.svt_clear, even though current 679 - also overwrite PL_vtbl_sigelem.svt_clear, even though current
154 implementations inside perl work fine for us. 680 implementations inside perl work fine for us.
155 681
1564.743 Mon Jun 16 00:21:57 CEST 2008 6824.743 Mon Jun 16 00:21:57 CEST 2008
157 - when using Coro::EV without running EV::loop it could 683 - when using Coro::EV without running EV::loop it could
179 - sprinkle "no warnings" freely over everything, also suppress 705 - sprinkle "no warnings" freely over everything, also suppress
180 warnings for some other modules. 706 warnings for some other modules.
181 - fix typo in WSAEWOULDBLOCK. 707 - fix typo in WSAEWOULDBLOCK.
182 708
1834.72 Sun May 25 05:14:36 CEST 2008 7094.72 Sun May 25 05:14:36 CEST 2008
184 - tweak META.yaml a bit, unfortunately, there is no documented way 710 - tweak META.yaml a bit, unfortunately, there is no documented way
185 to have optional dependencies with CPAN. doh :( 711 to have optional dependencies with CPAN. doh :(
186 - avoid running some tests on windows because they would fail due to 712 - avoid running some tests on windows because they would fail due to
187 perl bug (broken fork, broken pipes...). 713 perl bug (broken fork, broken pipes...).
188 - work around perl on windows bugs where perl returns undocumented 714 - work around perl on windows bugs where perl returns undocumented
189 error codes for sysread, syswrite etc. by taking advantage 715 error codes for sysread, syswrite etc. by taking advantage
193 - use unix domain sockets in testsuite to work around 719 - use unix domain sockets in testsuite to work around
194 common perl implementation bugs on widows (they are emulated by 720 common perl implementation bugs on widows (they are emulated by
195 tcp sockets on windows. ugh.) 721 tcp sockets on windows. ugh.)
196 722
1974.71 Sat May 24 20:01:27 CEST 2008 7234.71 Sat May 24 20:01:27 CEST 2008
198 - fix a bug in Coro::AnyEvent ("Usage: Coro::AnyEvent::_schedule()"). 724 - fix a bug in Coro::AnyEvent ("Usage: Coro::AnyEvent::_schedule()").
199 - take advantage of async name resolution of AnyEvent::Util. 725 - take advantage of async name resolution of AnyEvent::Util.
200 - work around brutal inet_aton override in Coro::LWP. 726 - work around brutal inet_aton override in Coro::LWP.
201 - take advantage of the readyhook in Coro::EV, for smoother 727 - take advantage of the readyhook in Coro::EV, for smoother
202 scheduling. 728 scheduling.
203 729
2044.7 Sun May 11 00:32:19 CEST 2008 7304.7 Sun May 11 00:32:19 CEST 2008
205 - completely reworked the Coro manpage. 731 - completely reworked the Coro manpage.
206 - added Coro::AnyEvent, generic event loop integration. 732 - added Coro::AnyEvent, generic event loop integration.
207 - implement cancel, ready and kill commands in Coro::Debug. 733 - implement cancel, ready and kill commands in Coro::Debug.
208 - document find_coro in Coro::Debug. 734 - document find_coro in Coro::Debug.
209 - incompatible change: rename has_stack to has_cctx. 735 - incompatible change: rename has_stack to has_cctx.
210 - Coro::AIO and Coro::BDB no longer force event model detection, 736 - Coro::AIO and Coro::BDB no longer force event model detection,
211 use AnyEvent::AIO and AnyEvent::BDB. 737 use AnyEvent::AIO and AnyEvent::BDB.
335 861
3364.11 Thu Oct 11 02:40:24 CEST 2007 8624.11 Thu Oct 11 02:40:24 CEST 2007
337 - port to threaded perls. 863 - port to threaded perls.
338 864
3394.1 Thu Oct 11 02:38:16 CEST 2007 8654.1 Thu Oct 11 02:38:16 CEST 2007
340 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now 866 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now
341 be local to each coro (see Coro::State). 867 be local to each coro (see Coro::State).
342 - incompatible change: for very deep reasons, cede and cede_notself 868 - incompatible change: for very deep reasons, cede and cede_notself
343 cannot return anything, so nothing will be returned. 869 cannot return anything, so nothing will be returned.
344 - possibly bring back 5.10 compatibility (untested). 870 - possibly bring back 5.10 compatibility (untested).
345 - work around stupid (and wrong) warning on 5.10 :(. 871 - work around stupid (and wrong) warning on 5.10 :(.
417 but stateful semantics. 943 but stateful semantics.
418 - fixed a lot of typos in Coro.pm (patch submitted by David 944 - fixed a lot of typos in Coro.pm (patch submitted by David
419 Steinbrunner, which applied flawlessly). 945 Steinbrunner, which applied flawlessly).
420 946
4213.6 Sat Apr 14 17:13:31 CEST 2007 9473.6 Sat Apr 14 17:13:31 CEST 2007
422 - added some bugfixes to get eg/myhttpd working again. 948 - added some bugfixes to get eg/myhttpd working again.
423 - added Coro::Storable for often-cede'ing freeze/thaw. 949 - added Coro::Storable for often-cede'ing freeze/thaw.
424 - try to do a clean exit when a coroutine calls exit 950 - try to do a clean exit when a coroutine calls exit
425 (EXPERIMENTAL). 951 (EXPERIMENTAL).
426 - got rid of indirect call through _coro_init. 952 - got rid of indirect call through _coro_init.
427 - updated the partly antique examples in eg/ to 953 - updated the partly antique examples in eg/ to

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines