ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Changes
Revision: 1.224
Committed: Tue Apr 17 21:02:23 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
Changes since 1.223: +4 -3 lines
Log Message:
*** empty log message ***

File Contents

# Content
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
7 3.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
14 3.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
24 3.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
37 3.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
41 3.501 Wed Feb 28 12:44:07 CET 2007
42 - rename some global symbols as macosx from hell redefines
43 them without asking.
44
45 3.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
53 3.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
62 3.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
70 3.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
88 3.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
95 3.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
104 3.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
111 3.01 Sun Dec 3 23:47:42 CET 2006
112 - forgot to include Coro::Timer.
113
114 3.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
148 2.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
166 2.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
176 2.0 Tue Oct 24 05:47:17 CEST 2006
177 - support additional aio requests in Coro::AIO.
178
179 1.9 (never properly released due to a glitch)
180
181 1.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
186 1.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
190 1.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
200 1.51 Mon Dec 12 18:48:36 CET 2005
201 - remove debugging warn() accidentally left in Coro::Select.
202
203 1.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
211 1.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
215 1.31 Tue Aug 30 23:31:33 CEST 2005
216 - some portability fixes/workarounds.
217
218 1.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
224 1.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
231 1.11 Thu Mar 3 18:00:52 CET 2005
232 - change of contact address.
233
234 1.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
238 1.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
243 0.97 Fri May 14 15:23:32 CEST 2004
244 - remove stupid gcc extension that was an experiment only anyway.
245
246 0.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
255 0.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
266 0.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
273 0.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
277 0.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
285 0.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
291 0.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
295 0.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
302 0.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
309 0.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
317 0.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
322 0.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
327 0.531 Mon Dec 10 22:18:44 CET 2001
328 - Fixed a bug in SemaphoreSet::timed_down.
329
330 0.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
338 0.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
343 0.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
351 0.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
358 0.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
372 0.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
385 0.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
396 0.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
403 0.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
408 0.1 Tue Jul 24 01:47:53 CEST 2001
409 - release candidate 3. A rather new internal structure :(
410 - the great renaming: Damian Conway gave me a suitable replacement
411 for yield.
412 - added Coro/libcoro, a portable coroutine implementation for C
413 (not even perl-dependent!!!), which can be used by Coro::State.
414 - renamed SAVE_DEFSV (on xs-level only) to avoid symbol clash in
415 perl-5.6.
416 - new function Coro::Event::idle.
417 - the idle process is now overriden
418 by default in Coro::Event.
419 - Coro::Channel now enforces the size.
420 - canceling events now works in all cases.
421 - Coro state now include $_ and $@.
422 - yet another bug workaround that I do not really understand :(
423 - new module Coro::Event::IO (very undocumented) to do
424 non-blocking i/o.
425 - performance tuning.
426
427 0.08 Thu Jul 19 06:13:25 CEST 2001
428 - release candidate 2 (new functionality).
429 - add Coro::State::flush function.
430 - transfer now supports a flags value (mostly for speed ATM).
431 - might compile and work in the presence of threads now.
432 - continuations have a saner syntax.
433 - no more memleaks.
434
435 0.07 Tue Jul 17 17:40:18 CEST 2001
436 - release candidate 1 ;)
437 - slightly nicer code.
438 - fixed a scheduling bug in Coro::Event.
439
440 0.06 Tue Jul 17 04:23:24 CEST 2001
441 - ok, I found the showstopper - the same sub must not be
442 re-entered in two different coroutines, otherwise => crash. I
443 see no easy solution to this problem, except by walking the call
444 chaing and saving/restoring the cv's, which is what I do now.
445 - memory leaks still latent, especially at thread termination.
446 - Coro::Event now works (haha).
447
448 0.05 Sun Jul 15 17:32:20 CEST 2001
449 - fixed a few issues in Coro::Event.
450 - I forgot to include Coro::Event in 0.04 :(:(:(
451
452 0.04 Sun Jul 15 05:24:59 CEST 2001
453 - @_ is now properly localized.
454 - Coro::State is now easier subclassable.
455 - Coro::Cont now coroutine-aware.
456 - Coro::Specific is a low-overhead module to create
457 coroutine-specific vars.
458 - Coro::Event provides a simple interface to Event.
459
460 0.03 Fri Jul 13 14:51:52 CEST 2001
461 - transfer() now implemented in XS (beware).
462 - new module Coro::Cont for really faked continuations.
463 - big internal architecture changes: Coro::State is now
464 really low-level and can thus be used to implement other
465 interesting things, While "Coro::" implements a process-like
466 model. Still crude and subject to change.
467 - $_ and $@ are no longer being localized.
468
469 0.02 Tue Jul 10 01:38:17 CEST 2001
470 - implemented "async" attribute.
471 - $_ and $@ are now localized.
472 - added Coro::Channel.
473 - more testcases, still no docs.
474
475 0.01 Tue Jul 3 02:18:41 CEST 2001
476 - original version; copied from Convert::Scalar.
477