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

Comparing Coro/Changes (file contents):
Revision 1.115 by root, Tue Nov 29 12:36:17 2005 UTC vs.
Revision 1.297 by root, Mon Dec 3 00:41:45 2007 UTC

1Revision history for Perl extension Coro. 1Revision history for Perl extension Coro.
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 - do no longer rely on the presence of EV::DNS if EV is used
9 (because it is gone), but instead take avdantage of EV::ADNS
10 if available.
11 - add ($) prototypes to all functions in Coro::Storable.
12 - use a conventional (safer) idle callback in Coro::EV.
13
144.22 Fri Nov 30 16:04:04 CET 2007
15 - really use optimised versions for Event and EV in Coro::Util
16 and Coro::Handle.
17
184.21 Sun Nov 25 10:48:59 CET 2007
19 - fix a spurious memory read.
20 - Coro::EV no longer keeps the eventloop "alive".
21
224.2 Fri Nov 9 20:47:05 CET 2007
23 - enable/disable tracing from a new coroutine, not a pooled one.
24 - fix a memleak in Coro::Event.
25 - removed killall call from fork_eval.
26 - made sure store_fd is already loaded so that fork_eval
27 does not have to parse autoload in each subprocess.
28 - only use assembly method if -O switch is in $Config{optimize}.
29 - add (optional) Coro::EV module, so far the best event loop module
30 directly supported by Coro.
31 - if the event model is EV, use EV::DNS to resolve
32 stuff in Coro::Util.
33 - don't get confused by multiple event notifications in Coro::Handle.
34 - initial support for EV (libevent interface).
35 - require Event and EV using configure_requires, to force their existance.
36
374.13 Wed Oct 24 07:26:45 CEST 2007
38 - add Coro::Storable::blocking_thaw.
39 - use a vastly more complicated technique to localise
40 $SIG{__WARN/DIE__} that also works on perls <= 5.8.8.
41 - use a coroutine for the idle callback Coro::Event,
42 instead of running Event in the current coroutine context.
43 This also catches recursive invocations.
44 - actually report fork errors in gethostbyname and inet_aton.
45
464.11 Thu Oct 11 02:40:24 CEST 2007
47 - port to threaded perls.
48
494.1 Thu Oct 11 02:38:16 CEST 2007
50 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now
51 be local to each coro (see Coro::State).
52 - incompatible change: for very deep reasons, cede and cede_notself
53 cannot return anything, so nothing will be returned.
54 - possibly bring back 5.10 compatibility (untested).
55 - work around stupid (and wrong) warning on 5.10 :(.
56 - overlay the saved state over the context stack. This saves
57 a few hundred bytes per coroutine on average and also
58 speeds up context switching a bit.
59 - further tune default stack sizes.
60 - (more) correctly calculate stack usage in coro_rss.
61 - Coro::Storable::blocking_* did not properly lock
62 resulting in races between coroutines.
63 - added Coro::Storable::guard.
64 - stopping to trace a coroutine could destroy the cctx of
65 an unrelated coroutine.
66 - explain the relationship between Perl and C coroutines in
67 more detail in Coro::State.
68 - Coro::Util::inet_aton did not short-circuit dotted quad forms,
69 causing a fork per resolve. This also affected Coro::Socket.
70 - switch to a separate stack in $coro->call/eval to avoid
71 invalidating pointers.
72
734.03 Sat Oct 6 21:24:00 CEST 2007
74 - added Coro::throw method.
75 - minor code cleanups.
76
774.02 Sat Oct 6 02:36:47 CEST 2007
78 - fix a very minor per-coroutine memleak (a single codereference).
79 - fixed a bug where the currently in-use c context would be freed
80 prematurely (can happen only when programs change the stacksize
81 or use tracing).
82 - tracing can no longer keep a coro alive after it terminated.
83 - do static branch prediction in the common path for gcc. gives
84 about 2-5% speed improvement here.
85
864.01 Fri Oct 5 22:10:49 CEST 2007
87 - instead of recreating *a* standard output handle we simply
88 use STDOUT, which is faster and hopefully more robust.
89
904.0 Fri Oct 5 12:56:00 CEST 2007
91 - incompatibly changed Coro::Storable::freeze.
92 - major new feature: added Coro::Debug, for interactive coroutine
93 debugging, tracing and much more.
94 - major bug fix: unbelievable, but true: $_, $/ and many other
95 "saved" variables actually weren't being saved. This has been fixed,
96 of course, while increasing performance while losing all the save
97 flags.
98 - save flags are gone, and all the api functions dealing with them.
99 - added Coro::Semaphore::adjust.
100 - added Coro::Util::fork_eval.
101 - added Coro::Storable::{nfreeze,blocking_{freeze,nfreeze}}.
102 - added Coro::killall.
103 - reduce initial stack sizes to allow for "micro-coroutines".
104 - better async_pool resource management, moved parts of async_pool
105 handling to XS (major speed improvement).
106 - actually croak before modifying important data structures.
107 - refuse to transfer while compiling.
108 - possibly support eval EXPR better now.
109 - enable assembly per default on linux+bsd x86+amd64.
110 - all internal members were renamed _something for easier subclassing.
111 - many minor tweaks.
112
1133.63 Wed May 16 14:10:06 CEST 2007
114 - implement handcoded assembly for x86/amd64 SVR ABI.
115
1163.62 Fri Apr 27 21:36:06 CEST 2007
117 - upgrade libcoro (which might set unwind info correctly).
118 - change default on linux to setjmp/longjmp.
119
1203.61 Thu Apr 19 12:36:18 CEST 2007
121 - Coro::Storable caused an endless loop when thawing invalid
122 pst's sometimes.
123 - use a Semaphore in Coro::Storable, as Storable doesn't
124 seem to be reentrant (although it is documented to
125 be threadsafe...).
126 - fix Coro::Signal to bring back the original unreliable
127 but stateful semantics.
128 - fixed a lot of typos in Coro.pm (patch submitted by David
129 Steinbrunner, which applied flawlessly).
130
1313.6 Sat Apr 14 17:13:31 CEST 2007
132 - added some bugfixes to get eg/myhttpd working again.
133 - added Coro::Storable for often-cede'ing freeze/thaw.
134 - try to do a clean exit when a coroutine calls exit
135 (EXPERIMENTAL).
136 - got rid of indirect call through _coro_init.
137 - updated the partly antique examples in eg/ to
138 work again and be a bit less magic, too.
139 - fixed Coro::Signal semantics to work as documented again.
140
1413.55 Sun Mar 25 01:20:47 CET 2007
142 - add SAVE_DEFFH to save the default filehandle and enable
143 it by default.
144 - finally move socket-operations from Coro::Socket to Coro::Handle
145 to be able to unblock foreign sockets.
146 - add Coro::State::save_also and guarded_save.
147 - add count accessor to Coro::Semaphore.
148 - add Coro::State::cctx_stacksize.
149 - just for the fun of it, do not rely on implicit context,
150 which can dramatically improve performance, but people
151 using windows-process-emulation perls do not care much about
152 performance.
153
1543.51 Sun Mar 4 14:18:04 CET 2007
155 - fixed a problem when you weakened references to Coro::State's
156 (patch by Yuval Kogman).
157
1583.501 Wed Feb 28 12:44:07 CET 2007
159 - rename some global symbols as macosx from hell redefines
160 them without asking.
161
1623.5 Tue Feb 13 20:22:53 CET 2007
163 - do AnyEvent model detection earlier, avoiding problems
164 caused by first using AnyEvent and later Coro::Event.
165 - implement and document Coro::Event event objects.
166 - fix a potential problem in Coro::Event causing crashes.
167 - initialise PL_comppad when creating a new coroutine,
168 avoids crashes on early coro destruction.
169
1703.41 Mon Jan 22 19:19:49 CET 2007
171 - readline on Coro::Handle did not support undefined $/,
172 nor did it deliver partial lines on EOF or error.
173 - implement malloc fallback for stack allocation because
174 stupid broken idiotic OSX has a stupid broken
175 idiotic fits-the-whole-os mmap "implementation" and
176 my dick feels longer if Coro is portable even to
177 obsolete platforms.
178
1793.4 Fri Jan 19 21:52:54 CET 2007
180 - remove t/09_timer.t, as it isn't really testing much
181 but was rather flaky in practise.
182 - async_pool coro would keep arguments and callback alive until
183 it was reused.
184 - cancellation of a coroutine could cause spurious idle calls
185 in cede_notself.
186
1873.3 Sat Jan 6 03:45:00 CET 2007
188 - implement $coro->on_destroy.
189 - Coro::Event blocking semantics have been changed,
190 documented and - hopefully - improved.
191 - fix nice adding, not subtracting, from priority.
192 - fix ->prio and api_is_ready (patch by Mark Hinds).
193 - fixed an assert ("... == prev__cctx->idle_te")
194 that could errronously trigger.
195 - fix various large and small memleaks.
196 - use a (hopefully) more stable cancel implementation
197 that immediately frees the coroutine data.
198 - cede/cede_notself return a status now.
199 - added Coro::guard function.
200 - added a global coroutine pool for jobs (on my machine,
201 I can create and execute 48k simple coros/s with async,
202 and 128k coros with async_pool).
203 - Coro::AIO now uses the coroutine priority as io priority.
204
2053.2 Fri Dec 22 05:07:09 CET 2006
206 - improve portability to slightly older perls.
207 - use cleaner coroutine destruction.
208 - simplify configuration for users.
209 - optionally (unrecommended) prefer perl functions over
210 their coro replacements.
211
2123.11 Tue Dec 5 13:11:24 CET 2006
213 - fixed some bogus assert's, but as perl.h disables assert even
214 without NDEBUG (thank you very much), not too many people should
215 notice (that did include myself). Andreas König noticed, though :)
216 - do not save/restore PL_sortcxix on >= 5.9.x, it doesn't seem to have
217 it. Also noticed by Andreas König :)
218 - save/restore tainted status.
219 - verified to pass the testsuite on my 5.9.5.
220
2213.1 Mon Dec 4 23:03:40 CET 2006
222 - INCOMPATIBLE CHANGE: $/ is now per-coroutine (but slow).
223 - incompatible change: transfer flags are now per-state.
224 - give a better error message on deadlock.
225 - document Coro::nready.
226 - enhanced testsuite.
227
2283.01 Sun Dec 3 23:47:42 CET 2006
229 - forgot to include Coro::Timer.
230
2313.0 Sun Dec 3 22:57:25 CET 2006
232 - the "FINALLY COMPLETELY STABLE" release (coming soon:
233 the "FAMOUS LAST WORDS" release).
234 - implement a new stack sharing algorithm, which uses a stack
235 pool (size currently hardcoded).
236 - make stack sharing mandatory (it no longer uses a heuristic).
237 - eval/die no longer cause weird problems under heavy use.
238 - Coro::Event could cause livelocks if it was used but
239 no Coro::Event watchers were used.
240 - Coro::Event now uses asynccheck as prepare does not
241 check for changed watchers.
242 - Coro::Event allows multiple waiting coros and will wake up one
243 per event.
244 - Coro::Event should be cleaner and more efficient now.
245 - new utility function Coro::unblock_sub.
246 - document the sad fact that Event is no longer reentrant.
247 - putting a coroutine into the ready queue twice could under
248 some circumstances lead to stack corruption.
249 - minor incompatibility: subclassing Coro::State is supported
250 directly now without going through a _coro_state member.
251 - state/coro switching is much faster now.
252 - very minor optimisations and code/documentation cleanup.
253 - avoid problems due to compiler inlining.
254 - removed timers from Coro::Timer -> use AnyEvent instead.
255 - replaced Coro::idle coroutine by (cleaner) idle handler.
256 - updated to newest libcoro.
257 - implement enhanced support for valgrind.
258 - implement is_ready and return value for ready.
259 - removed Coro::Cont, it was a misnomer (it's generators),
260 and it was somewhat annoying to get it right. Will come back
261 if somebody asks for it :)
262 - many ->wait methods and Coro::Event could return
263 spuriously without the event having happened.
264
2652.5 Tue Nov 7 12:22:33 CET 2006
266 - made Coro::Util, Coro::Select, Coro::Handle and Coro::Socket
267 use AnyEvent, moved them to Coro/.
268 - added Coro::LWP which contains all the uglyness required to
269 make LWP non-blocking.
270 - should work with perl 5.9.x now (Andreas König made me do it).
271 - fixed another bug in Coro::Select when the timeout was undef.
272 - reuse PL_start_env for all coros, saves some memory per coroutine.
273 - manage PL_top_env differently, hopefully to avoid panic: top_env.
274 - timeout argument was not properly used in Coro::Socket.
275 - allow limited forms of subclassing in Coro::Handle/Coro::Socket.
276 - emulate undocumented(!) functionality of IO::Socket required
277 by LWP(!!).
278 - updated eg/lwp to work with newer lwp's.
279 - remove "FATAL: uncaught exception" prefix. Coroutines that die
280 kill the whole process, just as exceptions in the main "coroutine"
281 did already.
282
2832.1 Wed Nov 1 23:01:13 CET 2006
284 - fix a long-standing bug in Coro::Select where select with
285 zero timeout would instead change the current default filehandle.
286 - use a simpler and hopefully more robust way to clone padlists
287 (uses less memory and a perl function instead of our own).
288 - coro can now create a stack guard area on many architectures.
289 - Coro::AIO properly reexports additional functions from IO::AIO.
290 - updated libcoro with a workaround for OS X,
291 pach and testing by Michael Schwern.
292
2932.0 Tue Oct 24 05:47:17 CEST 2006
294 - support additional aio requests in Coro::AIO.
295
2961.9 (never properly released due to a glitch)
297
2981.8 Thu Feb 2 00:59:06 CET 2006
299 - applied suggested patch by SAMV to avoid problems during stupid
300 mark & sweep gc run.
301 - applied patch by Scott Walters for 5.9.3 compatibility.
302
3031.7 Tue Dec 27 01:41:58 CET 2005
304 - added Coro::AIO, a thin wrapper around IO::AIO.
305 - improved Makefile.PL explanations.
306
3071.6 Mon Dec 12 21:30:05 CET 2005
308 - additionally save PM_curpm might fix as-of-yet
309 unseen problems with regex matches being attributed to the
310 wrong package.
311 - add t/10_bugs.t, which currently checks against imho broken
312 perls that use 0.26MB of stack space per Perl_magic_get
313 invocation (newer linuxes) as opposed to the 0.0002MB perl
314 normally uses.
315 - make stacksize configurable for the ultimate debian experience.
316
3171.51 Mon Dec 12 18:48:36 CET 2005
318 - remove debugging warn() accidentally left in Coro::Select.
2 319
31.5 Tue Nov 29 13:32:44 CET 2005 3201.5 Tue Nov 29 13:32:44 CET 2005
4 - use Coro::Event inside Coro::Select to avoid spurious deadlocks. 321 - use Coro::Event inside Coro::Select to avoid spurious deadlocks.
5 - fix Coro::Select 'select'. 322 - fix Coro::Select 'select'.
6 - strict'ify some modules. 323 - strict'ify some modules.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines