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

Comparing Coro/Changes (file contents):
Revision 1.24 by root, Mon Jul 23 19:58:10 2001 UTC vs.
Revision 1.224 by root, Tue Apr 17 21:02:23 2007 UTC

1Revision history for Perl extension Coro. 1Revision history for Perl extension Coro.
2 2
30.10 3TODO: better (earlier) error messages on broken transfer's
4TODO: destroy gets only called on cancel: fix(?)
5TODO: should explore PerlIO::via::CoroCede and PerlIO::via::CoroAIO.
6
73.61
8 - use a Semaphore in Coro::Storable, as Storable doesn't
9 seem to be reentrant (although it is documented to
10 be threadsafe...).
11 - fix Coro::Signal to bring back the original unreliable
12 but stateful semantics.
13
143.6 Sat Apr 14 17:13:31 CEST 2007
15 - added some bugfixes to get eg/myhttpd working again.
16 - added Coro::Storable for often-cede'ing freeze/thaw.
17 - try to do a clean exit when a coroutine calls exit
18 (EXPERIMENTAL).
19 - got rid of indirect call through _coro_init.
20 - updated the partly antique examples in eg/ to
21 work again and be a bit less magic, too.
22 - fixed Coro::Signal semantics to work as documented again.
23
243.55 Sun Mar 25 01:20:47 CET 2007
25 - add SAVE_DEFFH to save the default filehandle and enable
26 it by default.
27 - finally move socket-operations from Coro::Socket to Coro::Handle
28 to be able to unblock foreign sockets.
29 - add Coro::State::save_also and guarded_save.
30 - add count accessor to Coro::Semaphore.
31 - add Coro::State::cctx_stacksize.
32 - just for the fun of it, do not rely on implicit context,
33 which can dramatically improve performance, but people
34 using windows-process-emulation perls do not care much about
35 performance.
36
373.51 Sun Mar 4 14:18:04 CET 2007
38 - fixed a problem when you weakened references to Coro::State's
39 (patch by Yuval Kogman).
40
413.501 Wed Feb 28 12:44:07 CET 2007
42 - rename some global symbols as macosx from hell redefines
43 them without asking.
44
453.5 Tue Feb 13 20:22:53 CET 2007
46 - do AnyEvent model detection earlier, avoiding problems
47 caused by first using AnyEvent and later Coro::Event.
48 - implement and document Coro::Event event objects.
49 - fix a potential problem in Coro::Event causing crashes.
50 - initialise PL_comppad when creating a new coroutine,
51 avoids crashes on early coro destruction.
52
533.41 Mon Jan 22 19:19:49 CET 2007
54 - readline on Coro::Handle did not support undefined $/,
55 nor did it deliver partial lines on EOF or error.
56 - implement malloc fallback for stack allocation because
57 stupid broken idiotic OSX has a stupid broken
58 idiotic fits-the-whole-os mmap "implementation" and
59 my dick feels longer if Coro is portable even to
60 obsolete platforms.
61
623.4 Fri Jan 19 21:52:54 CET 2007
63 - remove t/09_timer.t, as it isn't really testing much
64 but was rather flaky in practise.
65 - async_pool coro would keep arguments and callback alive until
66 it was reused.
67 - cancellation of a coroutine could cause spurious idle calls
68 in cede_notself.
69
703.3 Sat Jan 6 03:45:00 CET 2007
71 - implement $coro->on_destroy.
72 - Coro::Event blocking semantics have been changed,
73 documented and - hopefully - improved.
74 - fix nice adding, not subtracting, from priority.
75 - fix ->prio and api_is_ready (patch by Mark Hinds).
76 - fixed an assert ("... == prev__cctx->idle_te")
77 that could errronously trigger.
78 - fix various large and small memleaks.
79 - use a (hopefully) more stable cancel implementation
80 that immediately frees the coroutine data.
81 - cede/cede_notself return a status now.
82 - added Coro::guard function.
83 - added a global coroutine pool for jobs (on my machine,
84 I can create and execute 48k simple coros/s with async,
85 and 128k coros with async_pool).
86 - Coro::AIO now uses the coroutine priority as io priority.
87
883.2 Fri Dec 22 05:07:09 CET 2006
89 - improve portability to slightly older perls.
90 - use cleaner coroutine destruction.
91 - simplify configuration for users.
92 - optionally (unrecommended) prefer perl functions over
93 their coro replacements.
94
953.11 Tue Dec 5 13:11:24 CET 2006
96 - fixed some bogus assert's, but as perl.h disables assert even
97 without NDEBUG (thank you very much), not too many people should
98 notice (that did include myself). Andreas König noticed, though :)
99 - do not save/restore PL_sortcxix on >= 5.9.x, it doesn't seem to have
100 it. Also noticed by Andreas König :)
101 - save/restore tainted status.
102 - verified to pass the testsuite on my 5.9.5.
103
1043.1 Mon Dec 4 23:03:40 CET 2006
105 - INCOMPATIBLE CHANGE: $/ is now per-coroutine (but slow).
106 - incompatible change: transfer flags are now per-state.
107 - give a better error message on deadlock.
108 - document Coro::nready.
109 - enhanced testsuite.
110
1113.01 Sun Dec 3 23:47:42 CET 2006
112 - forgot to include Coro::Timer.
113
1143.0 Sun Dec 3 22:57:25 CET 2006
115 - the "FINALLY COMPLETELY STABLE" release (coming soon:
116 the "FAMOUS LAST WORDS" release).
117 - implement a new stack sharing algorithm, which uses a stack
118 pool (size currently hardcoded).
119 - make stack sharing mandatory (it no longer uses a heuristic).
120 - eval/die no longer cause weird problems under heavy use.
121 - Coro::Event could cause livelocks if it was used but
122 no Coro::Event watchers were used.
123 - Coro::Event now uses asynccheck as prepare does not
124 check for changed watchers.
125 - Coro::Event allows multiple waiting coros and will wake up one
126 per event.
127 - Coro::Event should be cleaner and more efficient now.
128 - new utility function Coro::unblock_sub.
129 - document the sad fact that Event is no longer reentrant.
130 - putting a coroutine into the ready queue twice could under
131 some circumstances lead to stack corruption.
132 - minor incompatibility: subclassing Coro::State is supported
133 directly now without going through a _coro_state member.
134 - state/coro switching is much faster now.
135 - very minor optimisations and code/documentation cleanup.
136 - avoid problems due to compiler inlining.
137 - removed timers from Coro::Timer -> use AnyEvent instead.
138 - replaced Coro::idle coroutine by (cleaner) idle handler.
139 - updated to newest libcoro.
140 - implement enhanced support for valgrind.
141 - implement is_ready and return value for ready.
142 - removed Coro::Cont, it was a misnomer (it's generators),
143 and it was somewhat annoying to get it right. Will come back
144 if somebody asks for it :)
145 - many ->wait methods and Coro::Event could return
146 spuriously without the event having happened.
147
1482.5 Tue Nov 7 12:22:33 CET 2006
149 - made Coro::Util, Coro::Select, Coro::Handle and Coro::Socket
150 use AnyEvent, moved them to Coro/.
151 - added Coro::LWP which contains all the uglyness required to
152 make LWP non-blocking.
153 - should work with perl 5.9.x now (Andreas König made me do it).
154 - fixed another bug in Coro::Select when the timeout was undef.
155 - reuse PL_start_env for all coros, saves some memory per coroutine.
156 - manage PL_top_env differently, hopefully to avoid panic: top_env.
157 - timeout argument was not properly used in Coro::Socket.
158 - allow limited forms of subclassing in Coro::Handle/Coro::Socket.
159 - emulate undocumented(!) functionality of IO::Socket required
160 by LWP(!!).
161 - updated eg/lwp to work with newer lwp's.
162 - remove "FATAL: uncaught exception" prefix. Coroutines that die
163 kill the whole process, just as exceptions in the main "coroutine"
164 did already.
165
1662.1 Wed Nov 1 23:01:13 CET 2006
167 - fix a long-standing bug in Coro::Select where select with
168 zero timeout would instead change the current default filehandle.
169 - use a simpler and hopefully more robust way to clone padlists
170 (uses less memory and a perl function instead of our own).
171 - coro can now create a stack guard area on many architectures.
172 - Coro::AIO properly reexports additional functions from IO::AIO.
173 - updated libcoro with a workaround for OS X,
174 pach and testing by Michael Schwern.
175
1762.0 Tue Oct 24 05:47:17 CEST 2006
177 - support additional aio requests in Coro::AIO.
178
1791.9 (never properly released due to a glitch)
180
1811.8 Thu Feb 2 00:59:06 CET 2006
182 - applied suggested patch by SAMV to avoid problems during stupid
183 mark & sweep gc run.
184 - applied patch by Scott Walters for 5.9.3 compatibility.
185
1861.7 Tue Dec 27 01:41:58 CET 2005
187 - added Coro::AIO, a thin wrapper around IO::AIO.
188 - improved Makefile.PL explanations.
189
1901.6 Mon Dec 12 21:30:05 CET 2005
191 - additionally save PM_curpm might fix as-of-yet
192 unseen problems with regex matches being attributed to the
193 wrong package.
194 - add t/10_bugs.t, which currently checks against imho broken
195 perls that use 0.26MB of stack space per Perl_magic_get
196 invocation (newer linuxes) as opposed to the 0.0002MB perl
197 normally uses.
198 - make stacksize configurable for the ultimate debian experience.
199
2001.51 Mon Dec 12 18:48:36 CET 2005
201 - remove debugging warn() accidentally left in Coro::Select.
202
2031.5 Tue Nov 29 13:32:44 CET 2005
204 - use Coro::Event inside Coro::Select to avoid spurious deadlocks.
205 - fix Coro::Select 'select'.
206 - strict'ify some modules.
207 - libcoro errornously restored the SIGUSR2 handler to SIGUSR1.
208 - use XSLoader in selected modules.
209 - remove some 5.6 compatibility cruft.
210
2111.4 Tue Sep 6 00:11:05 CEST 2005
212 - libcoro did not take into account the trampoline on amd64,
213 when 'l'inux method was used.
214
2151.31 Tue Aug 30 23:31:33 CEST 2005
216 - some portability fixes/workarounds.
217
2181.3 Sat Aug 20 03:08:56 CEST 2005
219 - no code changes. module seems to work fine.
220 - improve Coro::State docs, remove reference to nonexisting
221 Coro::State::flush method.
222 - no longer autodetect windows, present it as an option instead.
223
2241.2 Mon May 16 02:00:55 CEST 2005
225 - included libcoro.c earlier in State.xs, might improve portability.
226 - use a faster and possibly more stable Coro::Cont implementation.
227 - accept x86_64 in addition to amd64 for optimized linux-amd64 support.
228 - fix bugs Coro::SemaphoreSet that could cause locks never to be freed.
229 - fix bugs in CoroAPI.h and document it in Coro::MakeMaker.
230
2311.11 Thu Mar 3 18:00:52 CET 2005
232 - change of contact address.
233
2341.1 Tue Feb 22 20:51:16 CET 2005
235 - support [l]inux method on amd64.
236 - allow some context switches while compiling/eval'ing.
237
2381.0 Tue Aug 10 03:47:27 CEST 2004
239 - Event 0.89 fixes the bug again.
240 - fix the remaining(??) memleak. I didn't free the cache-AV for
241 padlists, so one AV per created anon-sub leaked.
242
2430.97 Fri May 14 15:23:32 CEST 2004
244 - remove stupid gcc extension that was an experiment only anyway.
245
2460.96 Thu May 13 18:09:29 CEST 2004
247 - tell people if they have yet another broken Event variant.
248 - made Coro to work _better_ with threads (it seems that, as long
249 as you use Coros in one thread only everything will work fine.
250 Looking at the perl source the problem might be missing locking
251 between Coro and some perl internal routines. That's not easily
252 fixable).
253 - (hopefully) got rid of the static xnext inside transfer.
254
2550.95 Sun Feb 15 03:20:28 CET 2004
256 - removed Coro::State::flush, implemented a new and much
257 faster caching mechanism by attaching magic to the CV.
258 - a memleak with (real) closures remains.
259 - dramatically reduced size of stacks to 65536 (linux/x86), after
260 observing that even myhttpd never had more than a kilobyte
261 of stack in use (stack is still only physically allocated in
262 pagesize increments for systems suporting mmap).
263 - fix for a "cygwin-64" architecture added, proposed by Stefan Traby.
264 - fix for threaded perl.
265
2660.9 Sun Nov 23 04:32:39 CET 2003
267 - fix a few very hard to track down but (of course) stupid
268 memory leaks.
269 - stringify version number to avoid locale problems :(.
270 - perl 5.9.0 does not have SvPADBUSY, reported by Scott Walters,
271 hopefully ignoring it "just works".
272
2730.8 Wed Nov 5 19:38:40 CET 2003
274 - port to perl5.005_03, but only 5.8.x+ is supported!
275 - honor LocalAddr even without LocalPort in Coro::Socket.
276
2770.7 Tue May 27 03:12:38 CEST 2003
278 - the version jump indicates some level of testing, not gobs
279 of new features.
280 - uh... I found the prompt function in ExtUtils::MakeMaker.
281 Highly correct stuff, that is...
282 - fixed(?) a bug with die's in coroutines causing "panic: top_env".
283 the fix is not well understood by the author, so beware :(.
284
2850.652 Thu May 8 02:54:46 CEST 2003
286 - Applied patch by Slaven Rezic to set default to "s" on FreeBSD,
287 cause version 4 doesn't have ucontext.
288 - Benjamin Reed reported that setjmp works fine on darwin,
289 so preselect it.
290
2910.651 Sat Mar 29 15:00:23 CET 2003
292 - fix a bug in Coro::Handle where some bytes could get lost
293 on reading, reported by jason@nichego.net.
294
2950.65 Sun Mar 23 00:08:26 CET 2003
296 - added a README.linux-glibc.
297 - new module Coro::Select.
298 - also save/restore PL_comppad, fixes segfaults with 5.8.1.
299 (I never claimed that I know what I am doing ;).
300 - set default to setjmp/longjmp on non-x86-linux.
301
3020.6 Thu Nov 21 11:09:06 CET 2002
303 - made lazy context switching the default.
304 - fixed the bug where SemaphoreSet::guard
305 was the same as timed_guard and timed_guard was missing.
306 - fix a memleak in Coro::Timer.
307 - reclassified context sharing as not experimental.
308
3090.534 Sun Apr 14 03:05:12 CEST 2002
310 - fixed backspace => tab in header parsing (myhttpd).
311 - added eg/readline, for elmex.
312 - Coro::Event now calls ->start on first call instead of
313 ->again, which created wrong timeouts for the first ->next.
314 - fixed a bug where Coro::Socket returned a closed socket instead
315 of nothing on ECONNREFUSED and similar error conditions.
316
3170.533 Mon Feb 18 18:49:40 CET 2002
318 - adapt to finally working Event-0.85.
319 - fixed buggy event initialization (trapped under windows, but how
320 could it possibly have worked anywhere?)
321
3220.532 Wed Jan 16 02:45:32 CET 2002
323 - removed the reference to pp_entersub, might work on
324 (some) win32 perls now (testsuite works under cygwin,
325 without Event, which freezes).
326
3270.531 Mon Dec 10 22:18:44 CET 2001
328 - Fixed a bug in SemaphoreSet::timed_down.
329
3300.53 Tue Nov 27 21:11:13 CET 2001
331 - some tests for Event.
332 - slightly different internal architecture to get refcnt into the object
333 and not the reference. might fix a few bugs, certainly did introduce
334 new ones.
335 - Coro::Timer (independent of Event).
336 - new timed_wait functions for Coro::Signal, Semaphore, SemaphoreSet.
337
3380.52 Tue Nov 6 21:36:18 CET 2001
339 - ported to cygwin (trivial).
340 patch by Gerrit P. Haase <gp@familiehaase.de>.
341 - small setjmp code fix by Sullivan.DanielJ@epamail.epa.gov.
342
3430.51 Thu Nov 1 20:39:01 CET 2001
344 - terminate/cancel now work properly (otherwise termination
345 could cause a "next coroutine is not and contains not..."
346 error.
347 - added Coro::Socket::shutdown.
348 - Coro::Event::loop no is the same as Event::loop.
349 - implemented terminate with args + join.
350
3510.5 Fri Sep 28 16:15:35 CEST 2001
352 - fixed "print" on a Coro::Handle. The print method worked.
353 - small tweaks (seem to reduce memory consumption a lot)
354 in various modules.
355 - splendid use of "no warnings" scattered throughout.
356 - added Coro::Handle::rbuf, fixed Coro::Handle::fh.
357
3580.49 Sun Sep 16 02:42:45 CEST 2001
359 - changed some method calls to function calls for speed
360 inside Coro::Handle.
361 - make Coro::Handle use an array instead of a hash for
362 speed reasons.
363 - IRIX mystery solved: it's SGI's NT, after all: "standard, huh?".
364 sjlj and ucontext should now work.
365 - IRIX-specific port for libcoro.
366 - swapped order of accept results to match IO::Socket.
367 - changed getsock/peername to sock/peername to match IO::Socket.
368 - fixed a bug that caused segfault when returning to main task
369 under some circumstances.
370 - other bugfixes.
371
3720.45 Sun Sep 2 02:54:01 CEST 2001
373 - new method Coro::Handle::timeout.
374 - corrected speling of set...name to get...name in Coro::Socket.
375 - Coro::Socket::accept now returns a Coro::Socket, not a Coro::Handle.
376 - Coro::Handle now supports fileno and FILENO.
377 - added eg/myhttpd, a web server.
378 - Coro::Socket now accepts numeric ports as well as "port(number)"
379 syntax.
380 - moved some scheduling primitives into xs code. more to come.
381 - new simple priority system.
382 - implemented Coro::Event using XS, almost four times faster!
383 - small memory corruption problem fixed (boy that was difficult).
384
3850.13 Wed Aug 8 16:53:07 CEST 2001
386 - new method Coro::Handle::readline.
387 - added eg/lwp and Coro::Handle::autoflush, to make LWP work.
388 (see eg/lwp on how to make LWP non-blocking).
389 - renamed Coro::Socket::new_inet to new.
390 - added Coro::Util, some utility functions.
391 - die/eval now works better (still get annoying (but true ;)
392 "Callback called exit" messages).
393 - Coro::Handle now supports timeout, and Coro::Socket Timeout.
394 - much better Coro::Socket support.
395
3960.12 Fri Jul 27 04:19:01 CEST 2001
397 - do not use mmap if neither MAP_ANON nor MAP_ANONYMOUS is defined.
398 - very experimental stack sharing algorithm. not 100% safe but
399 should work well in practise ;)
400 - added Coro::RWLock.
401 - Coro::Specific now works.
402
4030.11 Tue Jul 24 22:49:21 CEST 2001
404 - added specialized hack for newer and older linux versions (fast).
405 - renamed Coro::Event::IO to Coro::Handle.
406 - new module Coro::Socket.
407
4080.1 Tue Jul 24 01:47:53 CEST 2001
4 - release candidate 3. A rather new internal structure :( 409 - release candidate 3. A rather new internal structure :(
5 - the great renaming: Damian Conway gave me a suitable replacement 410 - the great renaming: Damian Conway gave me a suitable replacement
6 for yield. 411 for yield.
7 - added Coro/libcoro, a portable coroutine implementation for C 412 - added Coro/libcoro, a portable coroutine implementation for C
8 (not even perl-dependent!!!), which can be used by Coro::State. 413 (not even perl-dependent!!!), which can be used by Coro::State.
15 - canceling events now works in all cases. 420 - canceling events now works in all cases.
16 - Coro state now include $_ and $@. 421 - Coro state now include $_ and $@.
17 - yet another bug workaround that I do not really understand :( 422 - yet another bug workaround that I do not really understand :(
18 - new module Coro::Event::IO (very undocumented) to do 423 - new module Coro::Event::IO (very undocumented) to do
19 non-blocking i/o. 424 non-blocking i/o.
425 - performance tuning.
20 426
210.08 Thu Jul 19 06:13:25 CEST 2001 4270.08 Thu Jul 19 06:13:25 CEST 2001
22 - release candidate 2 (new functionality). 428 - release candidate 2 (new functionality).
23 - add Coro::State::flush function. 429 - add Coro::State::flush function.
24 - transfer now supports a flags value (mostly for speed ATM). 430 - transfer now supports a flags value (mostly for speed ATM).

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines