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

Comparing Coro/Changes (file contents):
Revision 1.484 by root, Mon Dec 15 20:52:04 2008 UTC vs.
Revision 1.619 by root, Tue Nov 5 14:38:46 2013 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, andallow to unswap by repeat?
7TODO: swap_sv not undone in pool
8
96.32 Tue Nov 5 15:35:35 CET 2013
10 - use a new algorithm to derive padlists for perl 5.18. The old
11 one could lead to 0-pointer accesses inside perl (reported
12 by Darin McBride).
13
146.31 Thu May 9 07:39:48 CEST 2013
15 - Coro::AIO requests would crash if the thread was ready'd
16 while the request was ongoing.
17
186.29 Wed May 8 02:55:18 CEST 2013
19 - when an on_destroy handler destructs the coro currently being
20 destructed a perl scalar could be accessed after being freed,
21 likely causing a crash.
22
236.28 Wed Mar 6 06:58:02 CET 2013
24 - clean remnants of existing __DIE__ and __WARN__ handlers so
25 they lose their magic and will not cause segfaults later
26 (testcase by Andrey Sagulin).
27 - improved Coro::State documentation a bit.
28 - Coro::Debug::command now flushes the output.
29 - add hack detection code for x32 abi, because the braindead slugs
30 who designed that made it look exactly like x86_64 without
31 providing proper compile time symbols to test for it. as a result,
32 this detection cannot work reliably.
33 - valgrind stack registering was broken.
34 - do not rely on Time::HiRes anymore in Coro::Debug.
35
366.23 Fri Dec 7 23:36:37 CET 2012
37 - use experimental fiber implementation on native windows
38 perls.
39 - use sizeof (void *) as multiplication factor for stack sizes,
40 to accomodate the totally braindamaged microsoft 64 bit "os".
41 - changed verifier host from win2k-ap510-32 to win7-sp516-32/64.
42 activeperl 5.16 crashes when PerlIO_define_layer is called due
43 to some bug in the perl dll, strawberry perl at least passes
44 the testsuite.
45 - implement Coro::Handle->peeraddr/host/port, for slightly
46 improved compatibility with LWP.
47 - implement 5.17 compatibility by almost blindly applying a
48 good-looking patch by Father Chrysostomos.
49 - move stack management functions into libcoro 3.
50 - libcoro version 3 "released".
51 - support magic values as timed_io_once args.
52 - recommend AnyEvent 7+ or EV 4+, also require EV
53 version 4 or newer for Coro::EV.
54
556.10 Tue Oct 9 01:14:27 CEST 2012
56 - updated ecb.h, it had a typo that caused it to not compile on many
57 big endian systems (reported by many people).
58 - disable memory fences in ecb.h to improve portability.
59
606.09 Sat Oct 6 23:25:02 CEST 2012
61 - Coro::EV I/O watchers were not interruptible by exceptions
62 (Coro::State::throw) (testcase by sten).
63 - ->throw now puts threads into the ready queue, as this seems to
64 be expected by existing code, and code that doesn't cope with spurious
65 wakeups needs fixing anyway.
66 - use fd -1 in mmap.
67 - cast I32 to int in error message printf.
68 - warn about broken so-called "hardened" kernels.
69
706.08 Fri Apr 13 12:05:47 CEST 2012
71 - be more aggressive about exiting like perl does - formerly,
72 exiting from the non-main thread would not execute END blocks.
73
746.07 Fri Nov 11 21:21:48 CET 2011
75 - work around a bug in PerlIO (setting $SIG{__WARN__} to a PVCV).
76 - update ecb.h.
77
786.06 Mon Aug 8 23:59:48 CEST 2011
79 - cygwin unfortunately patches the stack at runtime, so we use the pthreads
80 backend, which is an order of magnitude slower. unfortunately, cygwins
81 pthread implementation isn't very complete either, so allocate the stack
82 twice just to be sure.
83 (note: cygwin also enables mymalloc, which is NOT THREADSAFE ON WINDOWS,
84 in its ithreaded perl - best recompile cygwin and use the 'w'indows
85 backend for much better performance. also disable ithreads for
86 even better performance...).
87
886.05 Thu Aug 4 21:36:36 CEST 2011
89 - blush, condvar values would not be propagated from send to recv anymore
90 (reported by Chip Salzenberg).
91 - use exponential increase for the readline buffer length in
92 Coro::Handle. also reduce initial allocation to 1020 from 4096 bytes.
93
946.04 Wed Aug 3 17:15:45 CEST 2011
95 - use even more efficient and more compatible condvars for
96 compatibility to AnyEvent 6.x :)
97 - more inconsequential ecb.h updates.
98
996.03 Wed Aug 3 11:41:30 CEST 2011
100 - change how Coro patches AnyEvent condvars for compatibility to
101 AnyEvent 6.x.
102 - update ecb.h, to no longer include <pthread.h> in case WinNT.h
103 hasn't been included.
104
1056.02 Wed Jul 13 04:35:19 CEST 2011
106 - "improve portability to Gentoo" - gentoo manages to put perl variables
107 in memory areas that are farther than 2gb apart, which the jit couldn't
108 handle and barfed. now it's just a bit slower on gentoo and similar
109 systems.
110
1116.01 Sun Jul 3 12:31:14 CEST 2011
112 - workarounds are good, but the test for whether pthreads are used
113 was not good. thisone should be better.
114 - check differently whether gcc generates cfi instructions itself.
115
1166.0 Wed Jun 29 19:43:35 CEST 2011
117 - INCOMPATIBLE CHANGE: unreferenced coro objects will now be
118 destroyed and cleaned up automatically (e.g. async { schedule }).
119 - implement a JIT compiler for part of the thread switch code,
120 which gives a 50% speed improvement on threaded perls, and
121 about 4% on non-thraeded perls (so threaded perls now finally
122 reach about half the speed of non-threaded perls).
123 - slightly modernise Coro::Intro, add section about rouse functions.
124 - avoid DEFSV and ERRSV, giving another 10% improvement
125 in thread switching.
126 - Coro::State->is_destroyed is now called is_zombie.
127 - implement a Coro->safe_cancel method that might fail, but
128 cancels in a "safer" way if it succeeds.
129 - add preliminary support for DEBUGGING perls.
130 - get rid of two hash-accesses when initialising a new Coro - this
131 speeds up coro creation by almost a factor of two.
132 - croak when a coro that is being cancelled tries to block
133 (e.g. while executing a guard block), instead of crashing or
134 deadlocking.
135 - use a more robust and also faster method to identify Coro::State
136 objects - speeds up everything a bit.
137 - implement Coro->cancel in XS for a 20% speed improvement, and to
138 be able to implement mutual cancellation.
139 - speed up context switches by a percent or two by more efficiently
140 allocating context stack entries.
141 - implement Coro->join and Coro->on_destroy in XS for a speedup and
142 a reduction in memory use.
143 - cancelling a coro while it itself is cancelling another coro is
144 now supported and working, instead of triggering an assertion.
145 - be a bit more crash-resistant when calling (buggy) on_destroy
146 callbacks (best effort).
147 - move on_destroy into the slf_frame, to allow extension slf
148 functions to have destructors.
149 - get rid if coro refcounting - simply crash in other interpreter
150 threads by nulling the pointers on clone.
151 - simplify warn/die hook handling when loading Coro - the convoluted
152 logic seems to be no longer neccessary.
153 - use libecb instead of our own home-grown gcc hacks.
154 - document alternatives to Coro::LWP. Please use them :)
155 - work around another mindless idiotic NEEDLESS bug in openbsd/mirbsds
156 sigaltstack. Really. wine suffers from it, erlang suffers from it,
157 and it's known since at least 2006.
158
1595.372 Wed Feb 23 06:14:30 CET 2011
160 - apparently mingw doesn't provide a working gettimeofday, try to
161 work around that by relying on Time::HiRes (indirectly brought to
162 my attention by Max Maischein).
163 - fix some portability issues when Time::HiRes was used.
164
1655.371 Mon Feb 21 14:36:08 CET 2011
166 - backport to windows process emulation code again.
167
1685.37 Sat Feb 19 07:49:44 CET 2011
169 - add a big "Coro thread life cycle" section to "man Coro".
170 - try a tentative workaround against the breakage that 5.13 has
171 introduced without depreciation period. sigh.
172 - no longer use Time::HiRes if gettimeofday is available, which
173 saves quite a lot of memory.
174
1755.36 Sun Feb 13 05:33:41 CET 2011
176 - automatically load Coro::Channel, Coro::RWLock, Coro::Semaphore,
177 Coro::SemaphoreSet, Coro::Signal and Coro::Specific on first "new"
178 method call.
179 - undocument Coro::Timer::sleep and obsolete whole module.
180 - optimise Coro::Timer::timeout memory and cpu usage.
181 - slightly updated Coro::Intro for recent changes.
182 - do not initialise PL_dirty anymore.
183
1845.25 Thu Nov 11 01:08:39 CET 2010
185 - try a different approach on netbsd - netbsd 5 finally has marginally
186 working pthreads, but still broken ucontext/sigaltstack.
187 - openbsd 4.8 finally got their act together, Coro works out of the box
188 with asm, setjmp and pthreads (no change, just informational).
189
1905.24 Sat Oct 23 11:27:12 CEST 2010
191 - port to the EV 4.0 API.
192 - work around bugs in mingw32, making strawberry perl work
193 out of the box.
194 - correctly modify Coro::AIO function prototypes
195 so that they reflect the "no optional parameters" rule.
196 - "ported" libcoro to C++.
197
1985.23 Mon May 17 18:50:42 CEST 2010
199 - be more resistant to ordering changes when initialising
200 Coro::AnyEvent, Coro::EV and Coro::Event (reported by Matthias
201 Waldorf).
202 - document that perl 5.12 deliberately removed support for cloning.
203
2045.22 Wed Apr 14 03:55:35 CEST 2010
205 - correctly return udnef on errors in Coro::Handle::read/write
206 (testcase by Marc Mims).
207 - convert Coro::Util into a "perl compatibility wrapper" - the functions
208 are less useful now, but are drop-in replacements for existing
209 functions, listing better alternatives in the documentation. This also
210 fixes a bug in Coro::LWP which naively substituted Socket::inet_aton
211 with Coro::Util::inet_aton.
212 - do not override $Coro::idle unconditionally in Coro.pm, as other
213 modules could have provided their own idle coro already
214 (for exmaple, Coro::AnyEvent).
215 - fix Coro::Util::gethost* functions.
216 - Coro::Timer corretcly exports it's symbols (reported by Hideki Yamamura).
217
2185.21 Wed Dec 16 07:19:51 CET 2009
219 - automatically load Coro::AnyEvent when AnyEvent and Coro are used
220 together.
221 - add some examples on how to combine other event loops with Coro in
222 Coro::AnyEvent, and how to run it (and not to block). Seems to be
223 the most common source of confusion.
224 - try to catch people naively blocking in an event callback.
225 - work around the perl filehandle bug issue in conjunction with
226 older common::sense (as indirectly pointed out by ZSystem).
227 - clarify the "not from signal handlers" section.
228
2295.2 Sun Oct 4 14:54:24 CEST 2009
230 - Coro::Storable destroyed the prototypes of the functions it wrapped.
231 - export rouse_cb and rouse_wait by default now.
232 - fix various prototype mismatches in Coro::AnyEvent and Coro::Handle.
233 - new method $state->swap_sv.
234 - added section on "windows process emulation" to the manpage,
235 after a not-so-fruitful (nor-friendly) "discussion" with chip
236 salzenberg (discussion implies arguments, but his only arguments
237 were ad-hominems, one wonders why he started it in the first
238 place). I hope this explains it well enough for him to understand,
239 and maybe well enough for others to understand.
240 - use common::sense everywhere now.
241 - idle callbacks are no longer supported, use idle coros instead.
242 - print a thread listing when a deadlock is detected.
243
2445.17 Sat Aug 22 23:09:31 CEST 2009
245 - work around a bug in the perl debugger causing crashes
246 when running under the debugger by marking _pool_handler as nodebug.
247 - speed up Coro::async considerably.
248 - try some hacks to get netbsd to work "more often" - their broken
249 setjmp/longjmp, ucontext *and* phtreads are really hard on Coro.
250 - convert Coro to AE 5.0 API.
251
2525.162 Tue Jul 28 04:04:03 CEST 2009
253 - perl 5.8.2 is now minimum requirement.
254 - skip t/19_handle.t on broken windows perls.
255
2565.161 Wed Jul 22 04:47:38 CEST 2009
257 - Coro::AnyEvent::poll could have a different prototype when EV was
258 used as backend (analyzed by Tatsuhiko Miyagawa).
259 - Coro::AnyEvent errornously initialised the event loop when loaded,
260 not on demand.
261 - try to workaround rare */t/01_unblock.t failures.
262
2635.16 Tue Jul 21 01:44:37 CEST 2009
264 - Coro::AnyEvent failed to hook into the event loop
265 when no threads had been readied between detecting
266 the event loop and actually running it.
267 - considerably speed up Coro::Select by taking avdantage
268 of AnyEvent > 4.8 and some other optimisations.
269 - implement paragraph readline mode in Coro::Handle
270 (based on patches by Zsbán Ambrus).
271 - replace WSAEINPROGRESS by WSAEWOULDBLOCK (reported
272 and analyzed by Yasuhiro MATSUMOTO).
273 - clarified libcoro license and copyright.
274 - someone stole my EXTRA_META!!!
275 - implement Coro::Select::patch_pp_sselect and it's brother,
276 for hardcode select overriding.
277
2785.151 Mon Jul 6 05:41:57 CEST 2009
279 - backport to windows process emulation code again (patch by
280 Yasuhiro MATSUMOTO).
281 - slightly update Coro::MakeMaker.
282
2835.15 Tue Jun 30 10:28:06 CEST 2009
284 - deprecate Coro::Socket, document how to get ipv6 support via
285 AnyEvent::Socket instead.
286 - implement signal->wait ($cb) interface, similar to semaphores.
287 - work around SvOK not supporting getmagic, so we have to getmagic
288 to test for undef :/ (reported by Matthias Waldorf).
289 - load Coro::AnyEvent in all modules using AnyEvent.
290 - work around perl corrupting our internal data structures,
291 reported by Tokuhiro Matsuno.
292 - enable per-coroutine real and cpu time gathering
293 (Coro::State::enable_times).
294
2955.14 Wed Jun 24 01:37:48 CEST 2009
296 - provide explicit functions to "cede" to the event loop in Coro::AnyEvent,
297 as this seems to have been a difficult concept (poll, sleep, idle,
298 idle_upto).
299 - add Coro::AnyEvent::readable/writable functions.
300 - clarify Coro::EV/Event/AnyEvent manpages.
301 - free per-thread global scalars in the thread calling ->cancel, to
302 avoid crashes when $_, $@ etc., are magical but some of those
303 had already been freed.
304 - "unexperimentalise" the callback interface for Coro::Semaphore.
305 - speed up ready queue management/context switching by using a linked
306 list instead of an array (~5-10%).
307 - implement "watch" command in Coro::Debug shells.
308 - for fun, implement time-slicing as an example in the manpage.
309 - if AnyEvent detects EV or Event, but we don't have Coro::EV or
310 Coro::Event, use the normal AnyEvent handling instead of dieing
311 (the same is true for Coro::Handle).
312 - properly document Coro::EV::timed_io_once.
313 - avoid unneccessary ->cancel calls in Coro::Handle.
314 - maybe make it work on mingw32 with win32 backend
315 (based on patch by Yasuhiro Matsumoto).
316
3175.132 Fri May 29 09:00:39 CEST 2009
318 - do not keep a reference to the argument itself in
319 Coro::Semaphore::guard, as it could change later.
320 - support SO_RCVBUF/SO_SNDBUF nonstandard Coro::Socket options,
321 should support a prepare callback.
322
3235.131 Mon Mar 16 23:20:37 CET 2009
324 - implement and document Coro->suspend, Coro->resume.
325 - fix Coro::Select implementation to not (often) close
326 the passed file descriptors (testcase provided by pippijn).
7 327
85.13 Mon Dec 15 21:51:42 CET 2008 3285.13 Mon Dec 15 21:51:42 CET 2008
9 - EXPERIMENTAL: implement dynamic winds (on_enter/on_leave). 329 - EXPERIMENTAL: implement dynamic winds (on_enter/on_leave).
10 - don't set diehook to C<undef> but instead to NULL, to avoid 330 - don't set diehook to C<undef> but instead to NULL, to avoid
11 spurious warnings. 331 spurious warnings.
160 - ->throw is now supported on Coro::State objects. 480 - ->throw is now supported on Coro::State objects.
161 - clean up cctx creation code a bit. 481 - clean up cctx creation code a bit.
162 - entersub is actually a UNOP, not a LOGOP (not a bugfix). 482 - entersub is actually a UNOP, not a LOGOP (not a bugfix).
163 483
1644.9 Sat Nov 8 17:45:27 CET 2008 4844.9 Sat Nov 8 17:45:27 CET 2008
165 - (libcoro) did not preserve rbp with CORO_ASM (we are getting there). 485 - (libcoro) did not preserve rbp with CORO_ASM (we are getting there).
166 - (libcoro) no longer leak threads in the experimental pthread backend, 486 - (libcoro) no longer leak threads in the experimental pthread backend,
167 also speed it up considerably. 487 also speed it up considerably.
168 - (libcoro) do not rely on makecontext passing void *'s unscathed. 488 - (libcoro) do not rely on makecontext passing void *'s unscathed.
169 - fix compiletime dependencies on libcoro in the Makefile. 489 - fix compiletime dependencies on libcoro in the Makefile.
170 - cctx_count wasn't always updated properly. 490 - cctx_count wasn't always updated properly.
232 - remove debugging code related to MgPV_nolen_const, also try to 552 - remove debugging code related to MgPV_nolen_const, also try to
233 make it compile with perl 5.8.6 (yes, apple apparently loves 553 make it compile with perl 5.8.6 (yes, apple apparently loves
234 outdated software). Reported by John S. 554 outdated software). Reported by John S.
235 555
2364.744 Tue Jul 8 22:06:35 CEST 2008 5564.744 Tue Jul 8 22:06:35 CEST 2008
237 - correctly provide default DIE/WARN handlers as documented. 557 - correctly provide default DIE/WARN handlers as documented.
238 - also overwrite PL_vtbl_sigelem.svt_clear, even though current 558 - also overwrite PL_vtbl_sigelem.svt_clear, even though current
239 implementations inside perl work fine for us. 559 implementations inside perl work fine for us.
240 560
2414.743 Mon Jun 16 00:21:57 CEST 2008 5614.743 Mon Jun 16 00:21:57 CEST 2008
242 - when using Coro::EV without running EV::loop it could 562 - when using Coro::EV without running EV::loop it could
264 - sprinkle "no warnings" freely over everything, also suppress 584 - sprinkle "no warnings" freely over everything, also suppress
265 warnings for some other modules. 585 warnings for some other modules.
266 - fix typo in WSAEWOULDBLOCK. 586 - fix typo in WSAEWOULDBLOCK.
267 587
2684.72 Sun May 25 05:14:36 CEST 2008 5884.72 Sun May 25 05:14:36 CEST 2008
269 - tweak META.yaml a bit, unfortunately, there is no documented way 589 - tweak META.yaml a bit, unfortunately, there is no documented way
270 to have optional dependencies with CPAN. doh :( 590 to have optional dependencies with CPAN. doh :(
271 - avoid running some tests on windows because they would fail due to 591 - avoid running some tests on windows because they would fail due to
272 perl bug (broken fork, broken pipes...). 592 perl bug (broken fork, broken pipes...).
273 - work around perl on windows bugs where perl returns undocumented 593 - work around perl on windows bugs where perl returns undocumented
274 error codes for sysread, syswrite etc. by taking advantage 594 error codes for sysread, syswrite etc. by taking advantage
278 - use unix domain sockets in testsuite to work around 598 - use unix domain sockets in testsuite to work around
279 common perl implementation bugs on widows (they are emulated by 599 common perl implementation bugs on widows (they are emulated by
280 tcp sockets on windows. ugh.) 600 tcp sockets on windows. ugh.)
281 601
2824.71 Sat May 24 20:01:27 CEST 2008 6024.71 Sat May 24 20:01:27 CEST 2008
283 - fix a bug in Coro::AnyEvent ("Usage: Coro::AnyEvent::_schedule()"). 603 - fix a bug in Coro::AnyEvent ("Usage: Coro::AnyEvent::_schedule()").
284 - take advantage of async name resolution of AnyEvent::Util. 604 - take advantage of async name resolution of AnyEvent::Util.
285 - work around brutal inet_aton override in Coro::LWP. 605 - work around brutal inet_aton override in Coro::LWP.
286 - take advantage of the readyhook in Coro::EV, for smoother 606 - take advantage of the readyhook in Coro::EV, for smoother
287 scheduling. 607 scheduling.
288 608
2894.7 Sun May 11 00:32:19 CEST 2008 6094.7 Sun May 11 00:32:19 CEST 2008
290 - completely reworked the Coro manpage. 610 - completely reworked the Coro manpage.
291 - added Coro::AnyEvent, generic event loop integration. 611 - added Coro::AnyEvent, generic event loop integration.
292 - implement cancel, ready and kill commands in Coro::Debug. 612 - implement cancel, ready and kill commands in Coro::Debug.
293 - document find_coro in Coro::Debug. 613 - document find_coro in Coro::Debug.
294 - incompatible change: rename has_stack to has_cctx. 614 - incompatible change: rename has_stack to has_cctx.
295 - Coro::AIO and Coro::BDB no longer force event model detection, 615 - Coro::AIO and Coro::BDB no longer force event model detection,
296 use AnyEvent::AIO and AnyEvent::BDB. 616 use AnyEvent::AIO and AnyEvent::BDB.
420 740
4214.11 Thu Oct 11 02:40:24 CEST 2007 7414.11 Thu Oct 11 02:40:24 CEST 2007
422 - port to threaded perls. 742 - port to threaded perls.
423 743
4244.1 Thu Oct 11 02:38:16 CEST 2007 7444.1 Thu Oct 11 02:38:16 CEST 2007
425 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now 745 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now
426 be local to each coro (see Coro::State). 746 be local to each coro (see Coro::State).
427 - incompatible change: for very deep reasons, cede and cede_notself 747 - incompatible change: for very deep reasons, cede and cede_notself
428 cannot return anything, so nothing will be returned. 748 cannot return anything, so nothing will be returned.
429 - possibly bring back 5.10 compatibility (untested). 749 - possibly bring back 5.10 compatibility (untested).
430 - work around stupid (and wrong) warning on 5.10 :(. 750 - work around stupid (and wrong) warning on 5.10 :(.
502 but stateful semantics. 822 but stateful semantics.
503 - fixed a lot of typos in Coro.pm (patch submitted by David 823 - fixed a lot of typos in Coro.pm (patch submitted by David
504 Steinbrunner, which applied flawlessly). 824 Steinbrunner, which applied flawlessly).
505 825
5063.6 Sat Apr 14 17:13:31 CEST 2007 8263.6 Sat Apr 14 17:13:31 CEST 2007
507 - added some bugfixes to get eg/myhttpd working again. 827 - added some bugfixes to get eg/myhttpd working again.
508 - added Coro::Storable for often-cede'ing freeze/thaw. 828 - added Coro::Storable for often-cede'ing freeze/thaw.
509 - try to do a clean exit when a coroutine calls exit 829 - try to do a clean exit when a coroutine calls exit
510 (EXPERIMENTAL). 830 (EXPERIMENTAL).
511 - got rid of indirect call through _coro_init. 831 - got rid of indirect call through _coro_init.
512 - updated the partly antique examples in eg/ to 832 - updated the partly antique examples in eg/ to

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines