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

Comparing Coro/Changes (file contents):
Revision 1.530 by root, Fri Dec 11 18:32:23 2009 UTC vs.
Revision 1.613 by root, Tue Mar 5 18:37:43 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
5 actor model (which is cool in a lot of important aspects (failures!),
6 but very lacking in others (higher level ipc)).
7TODO: unready_all
8TODO: myhttpd header parsing
9TODO: channel->maxsize(newsize)? 4TODO: channel->maxsize(newsize)?
5TODO: __GCC_HAVE_DWARF2_CFI_ASM
10 6
11TODO: better error reporting when blocking inside the event idle loop? idleblock 7 - manually copy existing __DIE__ and __WARN__ handlers so
125.21 8 they lose their magic and will not cause segfaults later
9 (testcase by Andrey Sagulin).
10 - improved Coro::State documentation a bit.
11 - Coro::Debug::command now flushes the output.
12 - add hack detection code for x32 abi, because the braindead slugs
13 who designed that made it look exactly like x86_64 without
14 providing proper compile time symbols to test for it. as a result,
15 this detection cannot work reliably.
16 - valgrind stack registering was broken.
17 - do not rely on Time::HiRes anymore in Coro::Debug.
18
196.23 Fri Dec 7 23:36:37 CET 2012
20 - use experimental fiber implementation on native windows
21 perls.
22 - use sizeof (void *) as multiplication factor for stack sizes,
23 to accomodate the totally braindamaged microsoft 64 bit "os".
24 - changed verifier host from win2k-ap510-32 to win7-sp516-32/64.
25 activeperl 5.16 crashes when PerlIO_define_layer is called due
26 to some bug in the perl dll, strawberry perl at least passes
27 the testsuite.
28 - implement Coro::Handle->peeraddr/host/port, for slightly
29 improved compatibility with LWP.
30 - implement 5.17 compatibility by almost blindly applying a
31 good-looking patch by Father Chrysostomos.
32 - move stack management functions into libcoro 3.
33 - libcoro version 3 "released".
34 - support magic values as timed_io_once args.
35 - recommend AnyEvent 7+ or EV 4+, also require EV
36 version 4 or newer for Coro::EV.
37
386.10 Tue Oct 9 01:14:27 CEST 2012
39 - updated ecb.h, it had a typo that caused it to not compile on many
40 big endian systems (reported by many people).
41 - disable memory fences in ecb.h to improve portability.
42
436.09 Sat Oct 6 23:25:02 CEST 2012
44 - Coro::EV I/O watchers were not interruptible by exceptions
45 (Coro::State::throw) (testcase by sten).
46 - ->throw now puts threads into the ready queue, as this seems to
47 be expected by existing code, and code that doesn't cope with spurious
48 wakeups needs fixing anyway.
49 - use fd -1 in mmap.
50 - cast I32 to int in error message printf.
51 - warn about broken so-called "hardened" kernels.
52
536.08 Fri Apr 13 12:05:47 CEST 2012
54 - be more aggressive about exiting like perl does - formerly,
55 exiting from the non-main thread would not execute END blocks.
56
576.07 Fri Nov 11 21:21:48 CET 2011
58 - work around a bug in PerlIO (setting $SIG{__WARN__} to a PVCV).
59 - update ecb.h.
60
616.06 Mon Aug 8 23:59:48 CEST 2011
62 - cygwin unfortunately patches the stack at runtime, so we use the pthreads
63 backend, which is an order of magnitude slower. unfortunately, cygwins
64 pthread implementation isn't very complete either, so allocate the stack
65 twice just to be sure.
66 (note: cygwin also enables mymalloc, which is NOT THREADSAFE ON WINDOWS,
67 in its ithreaded perl - best recompile cygwin and use the 'w'indows
68 backend for much better performance. also disable ithreads for
69 even better performance...).
70
716.05 Thu Aug 4 21:36:36 CEST 2011
72 - blush, condvar values would not be propagated from send to recv anymore
73 (reported by Chip Salzenberg).
74 - use exponential increase for the readline buffer length in
75 Coro::Handle. also reduce initial allocation to 1020 from 4096 bytes.
76
776.04 Wed Aug 3 17:15:45 CEST 2011
78 - use even more efficient and more compatible condvars for
79 compatibility to AnyEvent 6.x :)
80 - more inconsequential ecb.h updates.
81
826.03 Wed Aug 3 11:41:30 CEST 2011
83 - change how Coro patches AnyEvent condvars for compatibility to
84 AnyEvent 6.x.
85 - update ecb.h, to no longer include <pthread.h> in case WinNT.h
86 hasn't been included.
87
886.02 Wed Jul 13 04:35:19 CEST 2011
89 - "improve portability to Gentoo" - gentoo manages to put perl variables
90 in memory areas that are farther than 2gb apart, which the jit couldn't
91 handle and barfed. now it's just a bit slower on gentoo and similar
92 systems.
93
946.01 Sun Jul 3 12:31:14 CEST 2011
95 - workarounds are good, but the test for whether pthreads are used
96 was not good. thisone should be better.
97 - check differently whether gcc generates cfi instructions itself.
98
996.0 Wed Jun 29 19:43:35 CEST 2011
100 - INCOMPATIBLE CHANGE: unreferenced coro objects will now be
101 destroyed and cleaned up automatically (e.g. async { schedule }).
102 - implement a JIT compiler for part of the thread switch code,
103 which gives a 50% speed improvement on threaded perls, and
104 about 4% on non-thraeded perls (so threaded perls now finally
105 reach about half the speed of non-threaded perls).
106 - slightly modernise Coro::Intro, add section about rouse functions.
107 - avoid DEFSV and ERRSV, giving another 10% improvement
108 in thread switching.
109 - Coro::State->is_destroyed is now called is_zombie.
110 - implement a Coro->safe_cancel method that might fail, but
111 cancels in a "safer" way if it succeeds.
112 - add preliminary support for DEBUGGING perls.
113 - get rid of two hash-accesses when initialising a new Coro - this
114 speeds up coro creation by almost a factor of two.
115 - croak when a coro that is being cancelled tries to block
116 (e.g. while executing a guard block), instead of crashing or
117 deadlocking.
118 - use a more robust and also faster method to identify Coro::State
119 objects - speeds up everything a bit.
120 - implement Coro->cancel in XS for a 20% speed improvement, and to
121 be able to implement mutual cancellation.
122 - speed up context switches by a percent or two by more efficiently
123 allocating context stack entries.
124 - implement Coro->join and Coro->on_destroy in XS for a speedup and
125 a reduction in memory use.
126 - cancelling a coro while it itself is cancelling another coro is
127 now supported and working, instead of triggering an assertion.
128 - be a bit more crash-resistant when calling (buggy) on_destroy
129 callbacks (best effort).
130 - move on_destroy into the slf_frame, to allow extension slf
131 functions to have destructors.
132 - get rid if coro refcounting - simply crash in other interpreter
133 threads by nulling the pointers on clone.
134 - simplify warn/die hook handling when loading Coro - the convoluted
135 logic seems to be no longer neccessary.
136 - use libecb instead of our own home-grown gcc hacks.
137 - document alternatives to Coro::LWP. Please use them :)
138 - work around another mindless idiotic NEEDLESS bug in openbsd/mirbsds
139 sigaltstack. Really. wine suffers from it, erlang suffers from it,
140 and it's known since at least 2006.
141
1425.372 Wed Feb 23 06:14:30 CET 2011
143 - apparently mingw doesn't provide a working gettimeofday, try to
144 work around that by relying on Time::HiRes (indirectly brought to
145 my attention by Max Maischein).
146 - fix some portability issues when Time::HiRes was used.
147
1485.371 Mon Feb 21 14:36:08 CET 2011
149 - backport to windows process emulation code again.
150
1515.37 Sat Feb 19 07:49:44 CET 2011
152 - add a big "Coro thread life cycle" section to "man Coro".
153 - try a tentative workaround against the breakage that 5.13 has
154 introduced without depreciation period. sigh.
155 - no longer use Time::HiRes if gettimeofday is available, which
156 saves quite a lot of memory.
157
1585.36 Sun Feb 13 05:33:41 CET 2011
159 - automatically load Coro::Channel, Coro::RWLock, Coro::Semaphore,
160 Coro::SemaphoreSet, Coro::Signal and Coro::Specific on first "new"
161 method call.
162 - undocument Coro::Timer::sleep and obsolete whole module.
163 - optimise Coro::Timer::timeout memory and cpu usage.
164 - slightly updated Coro::Intro for recent changes.
165 - do not initialise PL_dirty anymore.
166
1675.25 Thu Nov 11 01:08:39 CET 2010
168 - try a different approach on netbsd - netbsd 5 finally has marginally
169 working pthreads, but still broken ucontext/sigaltstack.
170 - openbsd 4.8 finally got their act together, Coro works out of the box
171 with asm, setjmp and pthreads (no change, just informational).
172
1735.24 Sat Oct 23 11:27:12 CEST 2010
174 - port to the EV 4.0 API.
175 - work around bugs in mingw32, making strawberry perl work
176 out of the box.
177 - correctly modify Coro::AIO function prototypes
178 so that they reflect the "no optional parameters" rule.
179 - "ported" libcoro to C++.
180
1815.23 Mon May 17 18:50:42 CEST 2010
182 - be more resistant to ordering changes when initialising
183 Coro::AnyEvent, Coro::EV and Coro::Event (reported by Matthias
184 Waldorf).
185 - document that perl 5.12 deliberately removed support for cloning.
186
1875.22 Wed Apr 14 03:55:35 CEST 2010
188 - correctly return udnef on errors in Coro::Handle::read/write
189 (testcase by Marc Mims).
190 - convert Coro::Util into a "perl compatibility wrapper" - the functions
191 are less useful now, but are drop-in replacements for existing
192 functions, listing better alternatives in the documentation. This also
193 fixes a bug in Coro::LWP which naively substituted Socket::inet_aton
194 with Coro::Util::inet_aton.
195 - do not override $Coro::idle unconditionally in Coro.pm, as other
196 modules could have provided their own idle coro already
197 (for exmaple, Coro::AnyEvent).
198 - fix Coro::Util::gethost* functions.
199 - Coro::Timer corretcly exports it's symbols (reported by Hideki Yamamura).
200
2015.21 Wed Dec 16 07:19:51 CET 2009
13 - automatically load Coro::AnyEvent when AnyEvent and Coro are used 202 - automatically load Coro::AnyEvent when AnyEvent and Coro are used
14 together. 203 together.
15 - add some examples on how to combine other event loops with Coro in 204 - add some examples on how to combine other event loops with Coro in
16 Coro::AnyEvent. 205 Coro::AnyEvent, and how to run it (and not to block). Seems to be
206 the most common source of confusion.
207 - try to catch people naively blocking in an event callback.
208 - work around the perl filehandle bug issue in conjunction with
209 older common::sense (as indirectly pointed out by ZSystem).
17 - clarify the "not from signal handlers" section. 210 - clarify the "not from signal handlers" section.
18 211
195.2 Sun Oct 4 14:54:24 CEST 2009 2125.2 Sun Oct 4 14:54:24 CEST 2009
20 - Coro::Storable destroyed the prototypes of the functions it wrapped. 213 - Coro::Storable destroyed the prototypes of the functions it wrapped.
21 - export rouse_cb and rouse_wait by default now. 214 - export rouse_cb and rouse_wait by default now.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines