1 | Revision history for Perl extension Coro. |
1 | Revision history for Perl extension Coro. |
|
|
2 | |
|
|
3 | TODO: better (earlier) error messages on broken transfer's |
|
|
4 | TODO: destroy gets only called on cancel: fix(?) |
|
|
5 | TODO: should explore PerlIO::via::CoroCede and PerlIO::via::CoroAIO. |
|
|
6 | TODO: maybe implement a default message channel, very much like Erlang |
|
|
7 | (which is cool in a lot of important aspects (failures!), |
|
|
8 | but very lacking in others). |
|
|
9 | |
|
|
10 | 3.61 Thu Apr 19 12:36:18 CEST 2007 |
|
|
11 | - Coro::Storable caused an endless loop when thawing invalid |
|
|
12 | pst's sometimes. |
|
|
13 | - use a Semaphore in Coro::Storable, as Storable doesn't |
|
|
14 | seem to be reentrant (although it is documented to |
|
|
15 | be threadsafe...). |
|
|
16 | - fix Coro::Signal to bring back the original unreliable |
|
|
17 | but stateful semantics. |
|
|
18 | - fixed a lot of typos in Coro.pm (patch submitted by David |
|
|
19 | Steinbrunner, which applied flawlessly). |
|
|
20 | |
|
|
21 | 3.6 Sat Apr 14 17:13:31 CEST 2007 |
|
|
22 | - added some bugfixes to get eg/myhttpd working again. |
|
|
23 | - added Coro::Storable for often-cede'ing freeze/thaw. |
|
|
24 | - try to do a clean exit when a coroutine calls exit |
|
|
25 | (EXPERIMENTAL). |
|
|
26 | - got rid of indirect call through _coro_init. |
|
|
27 | - updated the partly antique examples in eg/ to |
|
|
28 | work again and be a bit less magic, too. |
|
|
29 | - fixed Coro::Signal semantics to work as documented again. |
|
|
30 | |
|
|
31 | 3.55 Sun Mar 25 01:20:47 CET 2007 |
|
|
32 | - add SAVE_DEFFH to save the default filehandle and enable |
|
|
33 | it by default. |
|
|
34 | - finally move socket-operations from Coro::Socket to Coro::Handle |
|
|
35 | to be able to unblock foreign sockets. |
|
|
36 | - add Coro::State::save_also and guarded_save. |
|
|
37 | - add count accessor to Coro::Semaphore. |
|
|
38 | - add Coro::State::cctx_stacksize. |
|
|
39 | - just for the fun of it, do not rely on implicit context, |
|
|
40 | which can dramatically improve performance, but people |
|
|
41 | using windows-process-emulation perls do not care much about |
|
|
42 | performance. |
|
|
43 | |
|
|
44 | 3.51 Sun Mar 4 14:18:04 CET 2007 |
|
|
45 | - fixed a problem when you weakened references to Coro::State's |
|
|
46 | (patch by Yuval Kogman). |
|
|
47 | |
|
|
48 | 3.501 Wed Feb 28 12:44:07 CET 2007 |
|
|
49 | - rename some global symbols as macosx from hell redefines |
|
|
50 | them without asking. |
|
|
51 | |
|
|
52 | 3.5 Tue Feb 13 20:22:53 CET 2007 |
|
|
53 | - do AnyEvent model detection earlier, avoiding problems |
|
|
54 | caused by first using AnyEvent and later Coro::Event. |
|
|
55 | - implement and document Coro::Event event objects. |
|
|
56 | - fix a potential problem in Coro::Event causing crashes. |
|
|
57 | - initialise PL_comppad when creating a new coroutine, |
|
|
58 | avoids crashes on early coro destruction. |
|
|
59 | |
|
|
60 | 3.41 Mon Jan 22 19:19:49 CET 2007 |
|
|
61 | - readline on Coro::Handle did not support undefined $/, |
|
|
62 | nor did it deliver partial lines on EOF or error. |
|
|
63 | - implement malloc fallback for stack allocation because |
|
|
64 | stupid broken idiotic OSX has a stupid broken |
|
|
65 | idiotic fits-the-whole-os mmap "implementation" and |
|
|
66 | my dick feels longer if Coro is portable even to |
|
|
67 | obsolete platforms. |
|
|
68 | |
|
|
69 | 3.4 Fri Jan 19 21:52:54 CET 2007 |
|
|
70 | - remove t/09_timer.t, as it isn't really testing much |
|
|
71 | but was rather flaky in practise. |
|
|
72 | - async_pool coro would keep arguments and callback alive until |
|
|
73 | it was reused. |
|
|
74 | - cancellation of a coroutine could cause spurious idle calls |
|
|
75 | in cede_notself. |
|
|
76 | |
|
|
77 | 3.3 Sat Jan 6 03:45:00 CET 2007 |
|
|
78 | - implement $coro->on_destroy. |
|
|
79 | - Coro::Event blocking semantics have been changed, |
|
|
80 | documented and - hopefully - improved. |
|
|
81 | - fix nice adding, not subtracting, from priority. |
|
|
82 | - fix ->prio and api_is_ready (patch by Mark Hinds). |
|
|
83 | - fixed an assert ("... == prev__cctx->idle_te") |
|
|
84 | that could errronously trigger. |
|
|
85 | - fix various large and small memleaks. |
|
|
86 | - use a (hopefully) more stable cancel implementation |
|
|
87 | that immediately frees the coroutine data. |
|
|
88 | - cede/cede_notself return a status now. |
|
|
89 | - added Coro::guard function. |
|
|
90 | - added a global coroutine pool for jobs (on my machine, |
|
|
91 | I can create and execute 48k simple coros/s with async, |
|
|
92 | and 128k coros with async_pool). |
|
|
93 | - Coro::AIO now uses the coroutine priority as io priority. |
|
|
94 | |
|
|
95 | 3.2 Fri Dec 22 05:07:09 CET 2006 |
|
|
96 | - improve portability to slightly older perls. |
|
|
97 | - use cleaner coroutine destruction. |
|
|
98 | - simplify configuration for users. |
|
|
99 | - optionally (unrecommended) prefer perl functions over |
|
|
100 | their coro replacements. |
|
|
101 | |
|
|
102 | 3.11 Tue Dec 5 13:11:24 CET 2006 |
|
|
103 | - fixed some bogus assert's, but as perl.h disables assert even |
|
|
104 | without NDEBUG (thank you very much), not too many people should |
|
|
105 | notice (that did include myself). Andreas König noticed, though :) |
|
|
106 | - do not save/restore PL_sortcxix on >= 5.9.x, it doesn't seem to have |
|
|
107 | it. Also noticed by Andreas König :) |
|
|
108 | - save/restore tainted status. |
|
|
109 | - verified to pass the testsuite on my 5.9.5. |
|
|
110 | |
|
|
111 | 3.1 Mon Dec 4 23:03:40 CET 2006 |
|
|
112 | - INCOMPATIBLE CHANGE: $/ is now per-coroutine (but slow). |
|
|
113 | - incompatible change: transfer flags are now per-state. |
|
|
114 | - give a better error message on deadlock. |
|
|
115 | - document Coro::nready. |
|
|
116 | - enhanced testsuite. |
|
|
117 | |
|
|
118 | 3.01 Sun Dec 3 23:47:42 CET 2006 |
|
|
119 | - forgot to include Coro::Timer. |
|
|
120 | |
|
|
121 | 3.0 Sun Dec 3 22:57:25 CET 2006 |
|
|
122 | - the "FINALLY COMPLETELY STABLE" release (coming soon: |
|
|
123 | the "FAMOUS LAST WORDS" release). |
|
|
124 | - implement a new stack sharing algorithm, which uses a stack |
|
|
125 | pool (size currently hardcoded). |
|
|
126 | - make stack sharing mandatory (it no longer uses a heuristic). |
|
|
127 | - eval/die no longer cause weird problems under heavy use. |
|
|
128 | - Coro::Event could cause livelocks if it was used but |
|
|
129 | no Coro::Event watchers were used. |
|
|
130 | - Coro::Event now uses asynccheck as prepare does not |
|
|
131 | check for changed watchers. |
|
|
132 | - Coro::Event allows multiple waiting coros and will wake up one |
|
|
133 | per event. |
|
|
134 | - Coro::Event should be cleaner and more efficient now. |
|
|
135 | - new utility function Coro::unblock_sub. |
|
|
136 | - document the sad fact that Event is no longer reentrant. |
|
|
137 | - putting a coroutine into the ready queue twice could under |
|
|
138 | some circumstances lead to stack corruption. |
|
|
139 | - minor incompatibility: subclassing Coro::State is supported |
|
|
140 | directly now without going through a _coro_state member. |
|
|
141 | - state/coro switching is much faster now. |
|
|
142 | - very minor optimisations and code/documentation cleanup. |
|
|
143 | - avoid problems due to compiler inlining. |
|
|
144 | - removed timers from Coro::Timer -> use AnyEvent instead. |
|
|
145 | - replaced Coro::idle coroutine by (cleaner) idle handler. |
|
|
146 | - updated to newest libcoro. |
|
|
147 | - implement enhanced support for valgrind. |
|
|
148 | - implement is_ready and return value for ready. |
|
|
149 | - removed Coro::Cont, it was a misnomer (it's generators), |
|
|
150 | and it was somewhat annoying to get it right. Will come back |
|
|
151 | if somebody asks for it :) |
|
|
152 | - many ->wait methods and Coro::Event could return |
|
|
153 | spuriously without the event having happened. |
|
|
154 | |
|
|
155 | 2.5 Tue Nov 7 12:22:33 CET 2006 |
|
|
156 | - made Coro::Util, Coro::Select, Coro::Handle and Coro::Socket |
|
|
157 | use AnyEvent, moved them to Coro/. |
|
|
158 | - added Coro::LWP which contains all the uglyness required to |
|
|
159 | make LWP non-blocking. |
|
|
160 | - should work with perl 5.9.x now (Andreas König made me do it). |
|
|
161 | - fixed another bug in Coro::Select when the timeout was undef. |
|
|
162 | - reuse PL_start_env for all coros, saves some memory per coroutine. |
|
|
163 | - manage PL_top_env differently, hopefully to avoid panic: top_env. |
|
|
164 | - timeout argument was not properly used in Coro::Socket. |
|
|
165 | - allow limited forms of subclassing in Coro::Handle/Coro::Socket. |
|
|
166 | - emulate undocumented(!) functionality of IO::Socket required |
|
|
167 | by LWP(!!). |
|
|
168 | - updated eg/lwp to work with newer lwp's. |
|
|
169 | - remove "FATAL: uncaught exception" prefix. Coroutines that die |
|
|
170 | kill the whole process, just as exceptions in the main "coroutine" |
|
|
171 | did already. |
|
|
172 | |
|
|
173 | 2.1 Wed Nov 1 23:01:13 CET 2006 |
|
|
174 | - fix a long-standing bug in Coro::Select where select with |
|
|
175 | zero timeout would instead change the current default filehandle. |
|
|
176 | - use a simpler and hopefully more robust way to clone padlists |
|
|
177 | (uses less memory and a perl function instead of our own). |
|
|
178 | - coro can now create a stack guard area on many architectures. |
|
|
179 | - Coro::AIO properly reexports additional functions from IO::AIO. |
|
|
180 | - updated libcoro with a workaround for OS X, |
|
|
181 | pach and testing by Michael Schwern. |
|
|
182 | |
|
|
183 | 2.0 Tue Oct 24 05:47:17 CEST 2006 |
|
|
184 | - support additional aio requests in Coro::AIO. |
|
|
185 | |
|
|
186 | 1.9 (never properly released due to a glitch) |
|
|
187 | |
|
|
188 | 1.8 Thu Feb 2 00:59:06 CET 2006 |
|
|
189 | - applied suggested patch by SAMV to avoid problems during stupid |
|
|
190 | mark & sweep gc run. |
|
|
191 | - applied patch by Scott Walters for 5.9.3 compatibility. |
|
|
192 | |
|
|
193 | 1.7 Tue Dec 27 01:41:58 CET 2005 |
|
|
194 | - added Coro::AIO, a thin wrapper around IO::AIO. |
|
|
195 | - improved Makefile.PL explanations. |
|
|
196 | |
|
|
197 | 1.6 Mon Dec 12 21:30:05 CET 2005 |
|
|
198 | - additionally save PM_curpm might fix as-of-yet |
|
|
199 | unseen problems with regex matches being attributed to the |
|
|
200 | wrong package. |
|
|
201 | - add t/10_bugs.t, which currently checks against imho broken |
|
|
202 | perls that use 0.26MB of stack space per Perl_magic_get |
|
|
203 | invocation (newer linuxes) as opposed to the 0.0002MB perl |
|
|
204 | normally uses. |
|
|
205 | - make stacksize configurable for the ultimate debian experience. |
|
|
206 | |
|
|
207 | 1.51 Mon Dec 12 18:48:36 CET 2005 |
|
|
208 | - remove debugging warn() accidentally left in Coro::Select. |
|
|
209 | |
|
|
210 | 1.5 Tue Nov 29 13:32:44 CET 2005 |
|
|
211 | - use Coro::Event inside Coro::Select to avoid spurious deadlocks. |
|
|
212 | - fix Coro::Select 'select'. |
|
|
213 | - strict'ify some modules. |
|
|
214 | - libcoro errornously restored the SIGUSR2 handler to SIGUSR1. |
|
|
215 | - use XSLoader in selected modules. |
|
|
216 | - remove some 5.6 compatibility cruft. |
|
|
217 | |
|
|
218 | 1.4 Tue Sep 6 00:11:05 CEST 2005 |
|
|
219 | - libcoro did not take into account the trampoline on amd64, |
|
|
220 | when 'l'inux method was used. |
|
|
221 | |
|
|
222 | 1.31 Tue Aug 30 23:31:33 CEST 2005 |
|
|
223 | - some portability fixes/workarounds. |
|
|
224 | |
|
|
225 | 1.3 Sat Aug 20 03:08:56 CEST 2005 |
|
|
226 | - no code changes. module seems to work fine. |
|
|
227 | - improve Coro::State docs, remove reference to nonexisting |
|
|
228 | Coro::State::flush method. |
|
|
229 | - no longer autodetect windows, present it as an option instead. |
|
|
230 | |
|
|
231 | 1.2 Mon May 16 02:00:55 CEST 2005 |
|
|
232 | - included libcoro.c earlier in State.xs, might improve portability. |
|
|
233 | - use a faster and possibly more stable Coro::Cont implementation. |
|
|
234 | - accept x86_64 in addition to amd64 for optimized linux-amd64 support. |
|
|
235 | - fix bugs Coro::SemaphoreSet that could cause locks never to be freed. |
|
|
236 | - fix bugs in CoroAPI.h and document it in Coro::MakeMaker. |
|
|
237 | |
|
|
238 | 1.11 Thu Mar 3 18:00:52 CET 2005 |
|
|
239 | - change of contact address. |
|
|
240 | |
|
|
241 | 1.1 Tue Feb 22 20:51:16 CET 2005 |
|
|
242 | - support [l]inux method on amd64. |
|
|
243 | - allow some context switches while compiling/eval'ing. |
2 | |
244 | |
3 | 1.0 Tue Aug 10 03:47:27 CEST 2004 |
245 | 1.0 Tue Aug 10 03:47:27 CEST 2004 |
4 | - Event 0.89 fixes the bug again. |
246 | - Event 0.89 fixes the bug again. |
5 | - fix the remaining(??) memleak. I didn't free the cache-AV for |
247 | - fix the remaining(??) memleak. I didn't free the cache-AV for |
6 | padlists, so one AV per created anon-sub leaked. |
248 | padlists, so one AV per created anon-sub leaked. |
7 | |
249 | |
8 | 0.97 Fri May 14 15:23:32 CEST 2004 |
250 | 0.97 Fri May 14 15:23:32 CEST 2004 |
9 | - remove stupid gcc extension that was an experiment only anyway. |
251 | - remove stupid gcc extension that was an experiment only anyway. |
10 | |
252 | |
11 | 0.96 Thu May 13 18:09:29 CEST 2004 |
253 | 0.96 Thu May 13 18:09:29 CEST 2004 |
12 | - tell people if they have yet anothe rbroken Event variant. |
254 | - tell people if they have yet another broken Event variant. |
13 | - made Coro to work _better_ with threads (it seems that, as long |
255 | - made Coro to work _better_ with threads (it seems that, as long |
14 | as you use Coros in one thread only everything will work fine. |
256 | as you use Coros in one thread only everything will work fine. |
15 | Looking at the perl source the problem might be missing locking |
257 | Looking at the perl source the problem might be missing locking |
16 | between Coro and some perl internal routines. That's not easily |
258 | between Coro and some perl internal routines. That's not easily |
17 | fixable). |
259 | fixable). |