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

Comparing Coro/Changes (file contents):
Revision 1.72 by root, Sat Mar 22 18:50:31 2003 UTC vs.
Revision 1.282 by root, Wed Oct 24 05:50:32 2007 UTC

1Revision history for Perl extension Coro. 1Revision history for Perl extension Coro.
2 2
3TODO: should explore PerlIO::via::CoroCede and PerlIO::via::CoroAIO.
4TODO: maybe implement a default message channel, very much like Erlang
5 (which is cool in a lot of important aspects (failures!),
6 but very lacking in others (higher level ipc)).
7
8 - enable/disable tracing from a new coroutine, not a pooled one.
9
104.13 Wed Oct 24 07:26:45 CEST 2007
11 - add Coro::Storable::blocking_thaw.
12 - use a vastly more complicated technique to localise
13 $SIG{__WARN/DIE__} that also works on perls <= 5.8.8.
14 - use a coroutine for the idle callback Coro::Event,
15 instead of running Event in the current coroutine context.
16 This also catches recursive invocations.
17 - actually report fork errors in gethostbyname and inet_aton.
18
194.11 Thu Oct 11 02:40:24 CEST 2007
20 - port to threaded perls.
21
224.1 Thu Oct 11 02:38:16 CEST 2007
23 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now
24 be local to each coro (see Coro::State).
25 - incompatible change: for very deep reasons, cede and cede_notself
26 cannot return anything, so nothing will be returned.
27 - possibly bring back 5.10 compatibility (untested).
28 - work around stupid (and wrong) warning on 5.10 :(.
29 - overlay the saved state over the context stack. This saves
30 a few hundred bytes per coroutine on average and also
31 speeds up context switching a bit.
32 - further tune default stack sizes.
33 - (more) correctly calculate stack usage in coro_rss.
34 - Coro::Storable::blocking_* did not properly lock
35 resulting in races between coroutines.
36 - added Coro::Storable::guard.
37 - stopping to trace a coroutine could destroy the cctx of
38 an unrelated coroutine.
39 - explain the relationship between Perl and C coroutines in
40 more detail in Coro::State.
41 - Coro::Util::inet_aton did not short-circuit dotted quad forms,
42 causing a fork per resolve. This also affected Coro::Socket.
43 - switch to a separate stack in $coro->call/eval to avoid
44 invalidating pointers.
45
464.03 Sat Oct 6 21:24:00 CEST 2007
47 - added Coro::throw method.
48 - minor code cleanups.
49
504.02 Sat Oct 6 02:36:47 CEST 2007
51 - fix a very minor per-coroutine memleak (a single codereference).
52 - fixed a bug where the currently in-use c context would be freed
53 prematurely (can happen only when programs change the stacksize
54 or use tracing).
55 - tracing can no longer keep a coro alive after it terminated.
56 - do static branch prediction in the common path for gcc. gives
57 about 2-5% speed improvement here.
58
594.01 Fri Oct 5 22:10:49 CEST 2007
60 - instead of recreating *a* standard output handle we simply
61 use STDOUT, which is faster and hopefully more robust.
62
634.0 Fri Oct 5 12:56:00 CEST 2007
64 - incompatibly changed Coro::Storable::freeze.
65 - major new feature: added Coro::Debug, for interactive coroutine
66 debugging, tracing and much more.
67 - major bug fix: unbelievable, but true: $_, $/ and many other
68 "saved" variables actually weren't being saved. This has been fixed,
69 of course, while increasing performance while losing all the save
70 flags.
71 - save flags are gone, and all the api functions dealing with them.
72 - added Coro::Semaphore::adjust.
73 - added Coro::Util::fork_eval.
74 - added Coro::Storable::{nfreeze,blocking_{freeze,nfreeze}}.
75 - added Coro::killall.
76 - reduce initial stack sizes to allow for "micro-coroutines".
77 - better async_pool resource management, moved parts of async_pool
78 handling to XS (major speed improvement).
79 - actually croak before modifying important data structures.
80 - refuse to transfer while compiling.
81 - possibly support eval EXPR better now.
82 - enable assembly per default on linux+bsd x86+amd64.
83 - all internal members were renamed _something for easier subclassing.
84 - many minor tweaks.
85
863.63 Wed May 16 14:10:06 CEST 2007
87 - implement handcoded assembly for x86/amd64 SVR ABI.
88
893.62 Fri Apr 27 21:36:06 CEST 2007
90 - upgrade libcoro (which might set unwind info correctly).
91 - change default on linux to setjmp/longjmp.
92
933.61 Thu Apr 19 12:36:18 CEST 2007
94 - Coro::Storable caused an endless loop when thawing invalid
95 pst's sometimes.
96 - use a Semaphore in Coro::Storable, as Storable doesn't
97 seem to be reentrant (although it is documented to
98 be threadsafe...).
99 - fix Coro::Signal to bring back the original unreliable
100 but stateful semantics.
101 - fixed a lot of typos in Coro.pm (patch submitted by David
102 Steinbrunner, which applied flawlessly).
103
1043.6 Sat Apr 14 17:13:31 CEST 2007
105 - added some bugfixes to get eg/myhttpd working again.
106 - added Coro::Storable for often-cede'ing freeze/thaw.
107 - try to do a clean exit when a coroutine calls exit
108 (EXPERIMENTAL).
109 - got rid of indirect call through _coro_init.
110 - updated the partly antique examples in eg/ to
111 work again and be a bit less magic, too.
112 - fixed Coro::Signal semantics to work as documented again.
113
1143.55 Sun Mar 25 01:20:47 CET 2007
115 - add SAVE_DEFFH to save the default filehandle and enable
116 it by default.
117 - finally move socket-operations from Coro::Socket to Coro::Handle
118 to be able to unblock foreign sockets.
119 - add Coro::State::save_also and guarded_save.
120 - add count accessor to Coro::Semaphore.
121 - add Coro::State::cctx_stacksize.
122 - just for the fun of it, do not rely on implicit context,
123 which can dramatically improve performance, but people
124 using windows-process-emulation perls do not care much about
125 performance.
126
1273.51 Sun Mar 4 14:18:04 CET 2007
128 - fixed a problem when you weakened references to Coro::State's
129 (patch by Yuval Kogman).
130
1313.501 Wed Feb 28 12:44:07 CET 2007
132 - rename some global symbols as macosx from hell redefines
133 them without asking.
134
1353.5 Tue Feb 13 20:22:53 CET 2007
136 - do AnyEvent model detection earlier, avoiding problems
137 caused by first using AnyEvent and later Coro::Event.
138 - implement and document Coro::Event event objects.
139 - fix a potential problem in Coro::Event causing crashes.
140 - initialise PL_comppad when creating a new coroutine,
141 avoids crashes on early coro destruction.
142
1433.41 Mon Jan 22 19:19:49 CET 2007
144 - readline on Coro::Handle did not support undefined $/,
145 nor did it deliver partial lines on EOF or error.
146 - implement malloc fallback for stack allocation because
147 stupid broken idiotic OSX has a stupid broken
148 idiotic fits-the-whole-os mmap "implementation" and
149 my dick feels longer if Coro is portable even to
150 obsolete platforms.
151
1523.4 Fri Jan 19 21:52:54 CET 2007
153 - remove t/09_timer.t, as it isn't really testing much
154 but was rather flaky in practise.
155 - async_pool coro would keep arguments and callback alive until
156 it was reused.
157 - cancellation of a coroutine could cause spurious idle calls
158 in cede_notself.
159
1603.3 Sat Jan 6 03:45:00 CET 2007
161 - implement $coro->on_destroy.
162 - Coro::Event blocking semantics have been changed,
163 documented and - hopefully - improved.
164 - fix nice adding, not subtracting, from priority.
165 - fix ->prio and api_is_ready (patch by Mark Hinds).
166 - fixed an assert ("... == prev__cctx->idle_te")
167 that could errronously trigger.
168 - fix various large and small memleaks.
169 - use a (hopefully) more stable cancel implementation
170 that immediately frees the coroutine data.
171 - cede/cede_notself return a status now.
172 - added Coro::guard function.
173 - added a global coroutine pool for jobs (on my machine,
174 I can create and execute 48k simple coros/s with async,
175 and 128k coros with async_pool).
176 - Coro::AIO now uses the coroutine priority as io priority.
177
1783.2 Fri Dec 22 05:07:09 CET 2006
179 - improve portability to slightly older perls.
180 - use cleaner coroutine destruction.
181 - simplify configuration for users.
182 - optionally (unrecommended) prefer perl functions over
183 their coro replacements.
184
1853.11 Tue Dec 5 13:11:24 CET 2006
186 - fixed some bogus assert's, but as perl.h disables assert even
187 without NDEBUG (thank you very much), not too many people should
188 notice (that did include myself). Andreas König noticed, though :)
189 - do not save/restore PL_sortcxix on >= 5.9.x, it doesn't seem to have
190 it. Also noticed by Andreas König :)
191 - save/restore tainted status.
192 - verified to pass the testsuite on my 5.9.5.
193
1943.1 Mon Dec 4 23:03:40 CET 2006
195 - INCOMPATIBLE CHANGE: $/ is now per-coroutine (but slow).
196 - incompatible change: transfer flags are now per-state.
197 - give a better error message on deadlock.
198 - document Coro::nready.
199 - enhanced testsuite.
200
2013.01 Sun Dec 3 23:47:42 CET 2006
202 - forgot to include Coro::Timer.
203
2043.0 Sun Dec 3 22:57:25 CET 2006
205 - the "FINALLY COMPLETELY STABLE" release (coming soon:
206 the "FAMOUS LAST WORDS" release).
207 - implement a new stack sharing algorithm, which uses a stack
208 pool (size currently hardcoded).
209 - make stack sharing mandatory (it no longer uses a heuristic).
210 - eval/die no longer cause weird problems under heavy use.
211 - Coro::Event could cause livelocks if it was used but
212 no Coro::Event watchers were used.
213 - Coro::Event now uses asynccheck as prepare does not
214 check for changed watchers.
215 - Coro::Event allows multiple waiting coros and will wake up one
216 per event.
217 - Coro::Event should be cleaner and more efficient now.
218 - new utility function Coro::unblock_sub.
219 - document the sad fact that Event is no longer reentrant.
220 - putting a coroutine into the ready queue twice could under
221 some circumstances lead to stack corruption.
222 - minor incompatibility: subclassing Coro::State is supported
223 directly now without going through a _coro_state member.
224 - state/coro switching is much faster now.
225 - very minor optimisations and code/documentation cleanup.
226 - avoid problems due to compiler inlining.
227 - removed timers from Coro::Timer -> use AnyEvent instead.
228 - replaced Coro::idle coroutine by (cleaner) idle handler.
229 - updated to newest libcoro.
230 - implement enhanced support for valgrind.
231 - implement is_ready and return value for ready.
232 - removed Coro::Cont, it was a misnomer (it's generators),
233 and it was somewhat annoying to get it right. Will come back
234 if somebody asks for it :)
235 - many ->wait methods and Coro::Event could return
236 spuriously without the event having happened.
237
2382.5 Tue Nov 7 12:22:33 CET 2006
239 - made Coro::Util, Coro::Select, Coro::Handle and Coro::Socket
240 use AnyEvent, moved them to Coro/.
241 - added Coro::LWP which contains all the uglyness required to
242 make LWP non-blocking.
243 - should work with perl 5.9.x now (Andreas König made me do it).
244 - fixed another bug in Coro::Select when the timeout was undef.
245 - reuse PL_start_env for all coros, saves some memory per coroutine.
246 - manage PL_top_env differently, hopefully to avoid panic: top_env.
247 - timeout argument was not properly used in Coro::Socket.
248 - allow limited forms of subclassing in Coro::Handle/Coro::Socket.
249 - emulate undocumented(!) functionality of IO::Socket required
250 by LWP(!!).
251 - updated eg/lwp to work with newer lwp's.
252 - remove "FATAL: uncaught exception" prefix. Coroutines that die
253 kill the whole process, just as exceptions in the main "coroutine"
254 did already.
255
2562.1 Wed Nov 1 23:01:13 CET 2006
257 - fix a long-standing bug in Coro::Select where select with
258 zero timeout would instead change the current default filehandle.
259 - use a simpler and hopefully more robust way to clone padlists
260 (uses less memory and a perl function instead of our own).
261 - coro can now create a stack guard area on many architectures.
262 - Coro::AIO properly reexports additional functions from IO::AIO.
263 - updated libcoro with a workaround for OS X,
264 pach and testing by Michael Schwern.
265
2662.0 Tue Oct 24 05:47:17 CEST 2006
267 - support additional aio requests in Coro::AIO.
268
2691.9 (never properly released due to a glitch)
270
2711.8 Thu Feb 2 00:59:06 CET 2006
272 - applied suggested patch by SAMV to avoid problems during stupid
273 mark & sweep gc run.
274 - applied patch by Scott Walters for 5.9.3 compatibility.
275
2761.7 Tue Dec 27 01:41:58 CET 2005
277 - added Coro::AIO, a thin wrapper around IO::AIO.
278 - improved Makefile.PL explanations.
279
2801.6 Mon Dec 12 21:30:05 CET 2005
281 - additionally save PM_curpm might fix as-of-yet
282 unseen problems with regex matches being attributed to the
283 wrong package.
284 - add t/10_bugs.t, which currently checks against imho broken
285 perls that use 0.26MB of stack space per Perl_magic_get
286 invocation (newer linuxes) as opposed to the 0.0002MB perl
287 normally uses.
288 - make stacksize configurable for the ultimate debian experience.
289
2901.51 Mon Dec 12 18:48:36 CET 2005
291 - remove debugging warn() accidentally left in Coro::Select.
292
2931.5 Tue Nov 29 13:32:44 CET 2005
294 - use Coro::Event inside Coro::Select to avoid spurious deadlocks.
295 - fix Coro::Select 'select'.
296 - strict'ify some modules.
297 - libcoro errornously restored the SIGUSR2 handler to SIGUSR1.
298 - use XSLoader in selected modules.
299 - remove some 5.6 compatibility cruft.
300
3011.4 Tue Sep 6 00:11:05 CEST 2005
302 - libcoro did not take into account the trampoline on amd64,
303 when 'l'inux method was used.
304
3051.31 Tue Aug 30 23:31:33 CEST 2005
306 - some portability fixes/workarounds.
307
3081.3 Sat Aug 20 03:08:56 CEST 2005
309 - no code changes. module seems to work fine.
310 - improve Coro::State docs, remove reference to nonexisting
311 Coro::State::flush method.
312 - no longer autodetect windows, present it as an option instead.
313
3141.2 Mon May 16 02:00:55 CEST 2005
315 - included libcoro.c earlier in State.xs, might improve portability.
316 - use a faster and possibly more stable Coro::Cont implementation.
317 - accept x86_64 in addition to amd64 for optimized linux-amd64 support.
318 - fix bugs Coro::SemaphoreSet that could cause locks never to be freed.
319 - fix bugs in CoroAPI.h and document it in Coro::MakeMaker.
320
3211.11 Thu Mar 3 18:00:52 CET 2005
322 - change of contact address.
323
3241.1 Tue Feb 22 20:51:16 CET 2005
325 - support [l]inux method on amd64.
326 - allow some context switches while compiling/eval'ing.
327
3281.0 Tue Aug 10 03:47:27 CEST 2004
329 - Event 0.89 fixes the bug again.
330 - fix the remaining(??) memleak. I didn't free the cache-AV for
331 padlists, so one AV per created anon-sub leaked.
332
3330.97 Fri May 14 15:23:32 CEST 2004
334 - remove stupid gcc extension that was an experiment only anyway.
335
3360.96 Thu May 13 18:09:29 CEST 2004
337 - tell people if they have yet another broken Event variant.
338 - made Coro to work _better_ with threads (it seems that, as long
339 as you use Coros in one thread only everything will work fine.
340 Looking at the perl source the problem might be missing locking
341 between Coro and some perl internal routines. That's not easily
342 fixable).
343 - (hopefully) got rid of the static xnext inside transfer.
344
3450.95 Sun Feb 15 03:20:28 CET 2004
346 - removed Coro::State::flush, implemented a new and much
347 faster caching mechanism by attaching magic to the CV.
348 - a memleak with (real) closures remains.
349 - dramatically reduced size of stacks to 65536 (linux/x86), after
350 observing that even myhttpd never had more than a kilobyte
351 of stack in use (stack is still only physically allocated in
352 pagesize increments for systems suporting mmap).
353 - fix for a "cygwin-64" architecture added, proposed by Stefan Traby.
354 - fix for threaded perl.
355
3560.9 Sun Nov 23 04:32:39 CET 2003
357 - fix a few very hard to track down but (of course) stupid
358 memory leaks.
359 - stringify version number to avoid locale problems :(.
360 - perl 5.9.0 does not have SvPADBUSY, reported by Scott Walters,
361 hopefully ignoring it "just works".
362
3630.8 Wed Nov 5 19:38:40 CET 2003
364 - port to perl5.005_03, but only 5.8.x+ is supported!
365 - honor LocalAddr even without LocalPort in Coro::Socket.
366
3670.7 Tue May 27 03:12:38 CEST 2003
368 - the version jump indicates some level of testing, not gobs
369 of new features.
370 - uh... I found the prompt function in ExtUtils::MakeMaker.
371 Highly correct stuff, that is...
372 - fixed(?) a bug with die's in coroutines causing "panic: top_env".
373 the fix is not well understood by the author, so beware :(.
374
3750.652 Thu May 8 02:54:46 CEST 2003
376 - Applied patch by Slaven Rezic to set default to "s" on FreeBSD,
377 cause version 4 doesn't have ucontext.
378 - Benjamin Reed reported that setjmp works fine on darwin,
379 so preselect it.
380
3810.651 Sat Mar 29 15:00:23 CET 2003
382 - fix a bug in Coro::Handle where some bytes could get lost
383 on reading, reported by jason@nichego.net.
384
3850.65 Sun Mar 23 00:08:26 CET 2003
3 - added a README.linux-glibc. 386 - added a README.linux-glibc.
4 - new module Coro::Select. 387 - new module Coro::Select.
5 - also save/restore PL_comppad, fixes segfaults with 5.8.1. 388 - also save/restore PL_comppad, fixes segfaults with 5.8.1.
6 (I never claimed that I know what I am doing ;). 389 (I never claimed that I know what I am doing ;).
390 - set default to setjmp/longjmp on non-x86-linux.
7 391
80.6 Thu Nov 21 11:09:06 CET 2002 3920.6 Thu Nov 21 11:09:06 CET 2002
9 - made lazy context switching the default. 393 - made lazy context switching the default.
10 - fixed the bug where SemaphoreSet::guard 394 - fixed the bug where SemaphoreSet::guard
11 was the same as timed_guard and timed_guard was missing. 395 was the same as timed_guard and timed_guard was missing.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines