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

Comparing Coro/Changes (file contents):
Revision 1.167 by root, Fri Dec 1 19:41:06 2006 UTC vs.
Revision 1.329 by root, Sat Apr 5 22:29:53 2008 UTC

1Revision history for Perl extension Coro. 1Revision history for Perl extension Coro.
2 2
33.0 3TODO: should explore PerlIO::via::CoroCede and PerlIO::via::CoroAIO.
4TODO: maybe implement a default message channel, very much like Erlang's
5 actor model (which is cool in a lot of important aspects (failures!),
6 but very lacking in others (higher level ipc)).
7
84.47
9 - force cctx allocation on API calls: we know we need to force one
10 and gcc actually manages to confuse our heuristic nowadays,
11 leading to crashes and worse.
12
134.46 Fri Apr 4 22:05:43 CEST 2008
14 - upgrade libcoro, resulting in pthread-backend (which was only created
15 to fulfill the rules of the programming languages shootout).
16
174.45 Thu Mar 13 11:55:36 CET 2008
18 - fix a file leaking bug in eg/mhyttpd that would allow
19 downloading of any file (reported by oesi).
20 - fix deadlock bug in Coro::Channel (reported by Richard Hundt)
21 (also add testcase).
22 - support Broadcast option in Coro::Socket (patch by Richard Hundt,
23 apparently having loads of fun with that).
24 - implement $state->swap_defsv, ->swap_defav and document ->throw.
25
264.4 Wed Feb 13 16:44:29 CET 2008
27 - only assume .cfi pseudo isns exist on GNU/Linux.
28 - add get_timed method to Coro::Channels.
29 - fixed Coro::Debug manpage.
30 - perl 5.11 compatbility improvement based on patch by
31 Andreas König.
32
334.37 Sun Jan 20 11:25:23 CET 2008
34 - soften the check for an active parser for perl 5.10 (avoiding
35 "Coro::State::transfer called while parsing" in many cases).
36
374.36 Sun Jan 13 10:53:56 CET 2008
38 - reset diehook when terminating from an async_pool as to not
39 trigger any __DIE__ handlers.
40
414.35 Sun Jan 13 04:14:13 CET 2008
42 - "bt" debug command now displays any exceptions
43 from longmess and also skips the innermost
44 stackframes, giving more useufl output.
45 - allow backtraces in coroutines blocked in Coro::EV,
46 at a <1% speed hit.
47 - handle localising of $SIG{__WARN__} and __DIE__
48 properly (with a proper amount of dirty hacking).
49
504.34 Sat Dec 22 17:49:53 CET 2007
51 - upgrade to EV version 2.0 API.
52
534.33 Mon Dec 17 08:36:12 CET 2007
54 - make Coro::AIO etc. loadable in the absence of EV.
55
564.32 Mon Dec 17 07:46:02 CET 2007
57 - majorly improved Coro::Handle's performance with Coro::EV.
58 - implemented the until now mythical Coro::BDB module.
59 - specialcase EV in Coro::AIO and Coro::BDB for extra speed.
60
614.31 Wed Dec 5 12:32:39 CET 2007
62 - remove warn statement form Coro::Util.
63
644.3 Tue Dec 4 20:33:14 CET 2007
65 - calls to the idle function could cause stack corruption
66 when the stack changed.
67 - do no longer rely on the presence of EV::DNS if EV is used
68 (because it is gone), but instead take avdantage of EV::ADNS
69 if available.
70 - add ($) prototypes to all functions in Coro::Storable.
71 - use a conventional (safer) idle callback in Coro::EV.
72 - do accept quickly in Coro::Debug to avoid endless loops.
73
744.22 Fri Nov 30 16:04:04 CET 2007
75 - really use optimised versions for Event and EV in Coro::Util
76 and Coro::Handle.
77
784.21 Sun Nov 25 10:48:59 CET 2007
79 - fix a spurious memory read.
80 - Coro::EV no longer keeps the eventloop "alive".
81
824.2 Fri Nov 9 20:47:05 CET 2007
83 - enable/disable tracing from a new coroutine, not a pooled one.
84 - fix a memleak in Coro::Event.
85 - removed killall call from fork_eval.
86 - made sure store_fd is already loaded so that fork_eval
87 does not have to parse autoload in each subprocess.
88 - only use assembly method if -O switch is in $Config{optimize}.
89 - add (optional) Coro::EV module, so far the best event loop module
90 directly supported by Coro.
91 - if the event model is EV, use EV::DNS to resolve
92 stuff in Coro::Util.
93 - don't get confused by multiple event notifications in Coro::Handle.
94 - initial support for EV (libevent interface).
95 - require Event and EV using configure_requires, to force their existance.
96
974.13 Wed Oct 24 07:26:45 CEST 2007
98 - add Coro::Storable::blocking_thaw.
99 - use a vastly more complicated technique to localise
100 $SIG{__WARN/DIE__} that also works on perls <= 5.8.8.
101 - use a coroutine for the idle callback Coro::Event,
102 instead of running Event in the current coroutine context.
103 This also catches recursive invocations.
104 - actually report fork errors in gethostbyname and inet_aton.
105
1064.11 Thu Oct 11 02:40:24 CEST 2007
107 - port to threaded perls.
108
1094.1 Thu Oct 11 02:38:16 CEST 2007
110 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now
111 be local to each coro (see Coro::State).
112 - incompatible change: for very deep reasons, cede and cede_notself
113 cannot return anything, so nothing will be returned.
114 - possibly bring back 5.10 compatibility (untested).
115 - work around stupid (and wrong) warning on 5.10 :(.
116 - overlay the saved state over the context stack. This saves
117 a few hundred bytes per coroutine on average and also
118 speeds up context switching a bit.
119 - further tune default stack sizes.
120 - (more) correctly calculate stack usage in coro_rss.
121 - Coro::Storable::blocking_* did not properly lock
122 resulting in races between coroutines.
123 - added Coro::Storable::guard.
124 - stopping to trace a coroutine could destroy the cctx of
125 an unrelated coroutine.
126 - explain the relationship between Perl and C coroutines in
127 more detail in Coro::State.
128 - Coro::Util::inet_aton did not short-circuit dotted quad forms,
129 causing a fork per resolve. This also affected Coro::Socket.
130 - switch to a separate stack in $coro->call/eval to avoid
131 invalidating pointers.
132
1334.03 Sat Oct 6 21:24:00 CEST 2007
134 - added Coro::throw method.
135 - minor code cleanups.
136
1374.02 Sat Oct 6 02:36:47 CEST 2007
138 - fix a very minor per-coroutine memleak (a single codereference).
139 - fixed a bug where the currently in-use c context would be freed
140 prematurely (can happen only when programs change the stacksize
141 or use tracing).
142 - tracing can no longer keep a coro alive after it terminated.
143 - do static branch prediction in the common path for gcc. gives
144 about 2-5% speed improvement here.
145
1464.01 Fri Oct 5 22:10:49 CEST 2007
147 - instead of recreating *a* standard output handle we simply
148 use STDOUT, which is faster and hopefully more robust.
149
1504.0 Fri Oct 5 12:56:00 CEST 2007
151 - incompatibly changed Coro::Storable::freeze.
152 - major new feature: added Coro::Debug, for interactive coroutine
153 debugging, tracing and much more.
154 - major bug fix: unbelievable, but true: $_, $/ and many other
155 "saved" variables actually weren't being saved. This has been fixed,
156 of course, while increasing performance while losing all the save
157 flags.
158 - save flags are gone, and all the api functions dealing with them.
159 - added Coro::Semaphore::adjust.
160 - added Coro::Util::fork_eval.
161 - added Coro::Storable::{nfreeze,blocking_{freeze,nfreeze}}.
162 - added Coro::killall.
163 - reduce initial stack sizes to allow for "micro-coroutines".
164 - better async_pool resource management, moved parts of async_pool
165 handling to XS (major speed improvement).
166 - actually croak before modifying important data structures.
167 - refuse to transfer while compiling.
168 - possibly support eval EXPR better now.
169 - enable assembly per default on linux+bsd x86+amd64.
170 - all internal members were renamed _something for easier subclassing.
171 - many minor tweaks.
172
1733.63 Wed May 16 14:10:06 CEST 2007
174 - implement handcoded assembly for x86/amd64 SVR ABI.
175
1763.62 Fri Apr 27 21:36:06 CEST 2007
177 - upgrade libcoro (which might set unwind info correctly).
178 - change default on linux to setjmp/longjmp.
179
1803.61 Thu Apr 19 12:36:18 CEST 2007
181 - Coro::Storable caused an endless loop when thawing invalid
182 pst's sometimes.
183 - use a Semaphore in Coro::Storable, as Storable doesn't
184 seem to be reentrant (although it is documented to
185 be threadsafe...).
186 - fix Coro::Signal to bring back the original unreliable
187 but stateful semantics.
188 - fixed a lot of typos in Coro.pm (patch submitted by David
189 Steinbrunner, which applied flawlessly).
190
1913.6 Sat Apr 14 17:13:31 CEST 2007
192 - added some bugfixes to get eg/myhttpd working again.
193 - added Coro::Storable for often-cede'ing freeze/thaw.
194 - try to do a clean exit when a coroutine calls exit
195 (EXPERIMENTAL).
196 - got rid of indirect call through _coro_init.
197 - updated the partly antique examples in eg/ to
198 work again and be a bit less magic, too.
199 - fixed Coro::Signal semantics to work as documented again.
200
2013.55 Sun Mar 25 01:20:47 CET 2007
202 - add SAVE_DEFFH to save the default filehandle and enable
203 it by default.
204 - finally move socket-operations from Coro::Socket to Coro::Handle
205 to be able to unblock foreign sockets.
206 - add Coro::State::save_also and guarded_save.
207 - add count accessor to Coro::Semaphore.
208 - add Coro::State::cctx_stacksize.
209 - just for the fun of it, do not rely on implicit context,
210 which can dramatically improve performance, but people
211 using windows-process-emulation perls do not care much about
212 performance.
213
2143.51 Sun Mar 4 14:18:04 CET 2007
215 - fixed a problem when you weakened references to Coro::State's
216 (patch by Yuval Kogman).
217
2183.501 Wed Feb 28 12:44:07 CET 2007
219 - rename some global symbols as macosx from hell redefines
220 them without asking.
221
2223.5 Tue Feb 13 20:22:53 CET 2007
223 - do AnyEvent model detection earlier, avoiding problems
224 caused by first using AnyEvent and later Coro::Event.
225 - implement and document Coro::Event event objects.
226 - fix a potential problem in Coro::Event causing crashes.
227 - initialise PL_comppad when creating a new coroutine,
228 avoids crashes on early coro destruction.
229
2303.41 Mon Jan 22 19:19:49 CET 2007
231 - readline on Coro::Handle did not support undefined $/,
232 nor did it deliver partial lines on EOF or error.
233 - implement malloc fallback for stack allocation because
234 stupid broken idiotic OSX has a stupid broken
235 idiotic fits-the-whole-os mmap "implementation" and
236 my dick feels longer if Coro is portable even to
237 obsolete platforms.
238
2393.4 Fri Jan 19 21:52:54 CET 2007
240 - remove t/09_timer.t, as it isn't really testing much
241 but was rather flaky in practise.
242 - async_pool coro would keep arguments and callback alive until
243 it was reused.
244 - cancellation of a coroutine could cause spurious idle calls
245 in cede_notself.
246
2473.3 Sat Jan 6 03:45:00 CET 2007
248 - implement $coro->on_destroy.
249 - Coro::Event blocking semantics have been changed,
250 documented and - hopefully - improved.
251 - fix nice adding, not subtracting, from priority.
252 - fix ->prio and api_is_ready (patch by Mark Hinds).
253 - fixed an assert ("... == prev__cctx->idle_te")
254 that could errronously trigger.
255 - fix various large and small memleaks.
256 - use a (hopefully) more stable cancel implementation
257 that immediately frees the coroutine data.
258 - cede/cede_notself return a status now.
259 - added Coro::guard function.
260 - added a global coroutine pool for jobs (on my machine,
261 I can create and execute 48k simple coros/s with async,
262 and 128k coros with async_pool).
263 - Coro::AIO now uses the coroutine priority as io priority.
264
2653.2 Fri Dec 22 05:07:09 CET 2006
266 - improve portability to slightly older perls.
267 - use cleaner coroutine destruction.
268 - simplify configuration for users.
269 - optionally (unrecommended) prefer perl functions over
270 their coro replacements.
271
2723.11 Tue Dec 5 13:11:24 CET 2006
273 - fixed some bogus assert's, but as perl.h disables assert even
274 without NDEBUG (thank you very much), not too many people should
275 notice (that did include myself). Andreas König noticed, though :)
276 - do not save/restore PL_sortcxix on >= 5.9.x, it doesn't seem to have
277 it. Also noticed by Andreas König :)
278 - save/restore tainted status.
279 - verified to pass the testsuite on my 5.9.5.
280
2813.1 Mon Dec 4 23:03:40 CET 2006
282 - INCOMPATIBLE CHANGE: $/ is now per-coroutine (but slow).
283 - incompatible change: transfer flags are now per-state.
284 - give a better error message on deadlock.
285 - document Coro::nready.
286 - enhanced testsuite.
287
2883.01 Sun Dec 3 23:47:42 CET 2006
289 - forgot to include Coro::Timer.
290
2913.0 Sun Dec 3 22:57:25 CET 2006
4 - the "FINALLY COMPLETELY STABLE" release (coming soon: 292 - the "FINALLY COMPLETELY STABLE" release (coming soon:
5 the "FAMOUS LAST WORDS" release). 293 the "FAMOUS LAST WORDS" release).
6 - implement a new stack sharing algorithm, which uses a stack 294 - implement a new stack sharing algorithm, which uses a stack
7 pool (size currently hardcoded). 295 pool (size currently hardcoded).
8 - make stack sharing mandatory (it no longer uses a heuristic). 296 - make stack sharing mandatory (it no longer uses a heuristic).
9 - eval/die no longer cause weird problems under heavy use. 297 - eval/die no longer cause weird problems under heavy use.
10 - Coro::Event could cause livelocks if it was used but 298 - Coro::Event could cause livelocks if it was used but
11 no Coro::Event watchers were used. 299 no Coro::Event watchers were used.
12 - Coro::Event now uses asynccheck as prepare does not 300 - Coro::Event now uses asynccheck as prepare does not
13 check for changed watchers. 301 check for changed watchers.
302 - Coro::Event allows multiple waiting coros and will wake up one
303 per event.
14 - Coro::Event should be cleaner and more efficient now. 304 - Coro::Event should be cleaner and more efficient now.
15 - new utility function Coro::unblock_sub. 305 - new utility function Coro::unblock_sub.
16 - document the sad fact that Event is no longer reentrant. 306 - document the sad fact that Event is no longer reentrant.
17 - putting a coroutine into the ready queue twice could under 307 - putting a coroutine into the ready queue twice could under
18 some circumstances lead to stack corruption. 308 some circumstances lead to stack corruption.
24 - removed timers from Coro::Timer -> use AnyEvent instead. 314 - removed timers from Coro::Timer -> use AnyEvent instead.
25 - replaced Coro::idle coroutine by (cleaner) idle handler. 315 - replaced Coro::idle coroutine by (cleaner) idle handler.
26 - updated to newest libcoro. 316 - updated to newest libcoro.
27 - implement enhanced support for valgrind. 317 - implement enhanced support for valgrind.
28 - implement is_ready and return value for ready. 318 - implement is_ready and return value for ready.
319 - removed Coro::Cont, it was a misnomer (it's generators),
320 and it was somewhat annoying to get it right. Will come back
321 if somebody asks for it :)
29 - many ->wait methods and Coro::Event could return 322 - many ->wait methods and Coro::Event could return
30 spuriously without the event having happened. 323 spuriously without the event having happened.
31 324
322.5 Tue Nov 7 12:22:33 CET 2006 3252.5 Tue Nov 7 12:22:33 CET 2006
33 - made Coro::Util, Coro::Select, Coro::Handle and Coro::Socket 326 - made Coro::Util, Coro::Select, Coro::Handle and Coro::Socket

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines