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

Comparing Coro/Changes (file contents):
Revision 1.243 by root, Tue Sep 25 02:24:14 2007 UTC vs.
Revision 1.431 by root, Tue Nov 18 10:35:01 2008 UTC

1Revision history for Perl extension Coro. 1Revision history for Perl extension Coro.
2 2
3TODO: better (earlier) error messages on broken transfer's 3TODO: should explore PerlIO::coroaio (perl leaks like hell).
4TODO: destroy gets only called on cancel: fix(?)
5TODO: should explore PerlIO::via::CoroCede and PerlIO::via::CoroAIO.
6TODO: maybe implement a default message channel, very much like Erlang 4TODO: maybe implement a default message channel, very much like Erlang's
7 (which is cool in a lot of important aspects (failures!), 5 actor model (which is cool in a lot of important aspects (failures!),
8 but very lacking in others). 6 but very lacking in others (higher level ipc)).
9 7
103.7 8TODO: testcancel
9TODO: guard as SLF - to avoid deadlocks.
10TODO: Coro::Signal as SLF.
11 - avoid deadlock in Coro::Channel if maxsize == 1 (Richard Hundt).
12
135.0
14 - NEW ARCHITECTURE: use the latest 4.x version if you experience
15 stability issues.
16 - bump API version to 7 - all dependents must be recompiled.
17 - removed timed_* functions - they were not being used anyways
18 and should be replaced by a more generic mechanism -
19 and were annoying to support anyways :)
20 - removed SemaphoreSet's waiter method - use sem instead.
21 - Coro::Semaphore->adjust didn't correctly wake up enough waiters.
22 - async_pool did free a scalar value twice
23 ("Attempt to unreference...").
24 - fix a longstanding bug where calling terminate on a coro that
25 was waiting for a semaphore that was just becoming available
26 would cause a deadlock (semaphore would get into a state where
27 it was available but waiters were waiting(.
28 - perl's process emulation is now not even theoretically supported
29 anymore.
30 - use named constants in Coro::Channel (Richard Hundt).
31 - directly patch the entersub opcode calling SLF functions (cede,
32 transfer and so on). this does speed up context switching, but
33 more importanly, it frees us from the hardcoded behaviour of
34 entersub, so we might actually be able to return something from
35 those functions and atcually create new ones.
36 - take advantage of __builtin_frame_address on gcc.
37 - expose THX in coroapi (not sure whether this was a wise decision,
38 as "threaded" perls are running at half speed anyways).
39 - implement execute_slf (schedule-like-function) interface that makes
40 it possible to implement schedule-like-functions in XS.
41 - use new SLF interface to massively speed up Coro::EV by roughly a
42 factor of two.
43 - used new SLF interface to massively speed up Coro::Semaphore by a
44 factor of three.
45 - used new SLF interface to speed up Coro::AIO by roughly a factor of
46 four and reduce its memory usage considerably.
47 - implement Coro::SemaphoreSet purely in terms of Coro::Semaphore,
48 for a nice speedup and vastly more correct behaviour. Also implement
49 a new method "sem" to get at the underlying semaphore object.
50 - implement Coro::Channel in terms of Coro::Semaphore, for a moderate
51 (in comparison) 20-40% speedup.
52 - forgot to include Coro/libcoro/README in the dist for all these years.
53 - work around a freebsd pthreads bug (manual testcancel is required as
54 pthread_cond_wait isn't a cancellation point on freebsd).
55
564.913 Sat Nov 15 07:58:28 CET 2008
57 - async_pool did free a scalar value twice
58 ("Attempt to unreference...").
59
604.912 Thu Nov 13 18:31:23 CET 2008
61 - minor cleanups.
62 - use much larger stacks on linux and perl < 5.8.8.
63 - Coro::Debug::new_unix_server did not unlink the socket
64 when destroyed.
65
664.911 Tue Nov 11 04:26:17 CET 2008
67 - "port" to threaded perls.
68
694.91 Mon Nov 10 05:36:38 CET 2008
70 - the ->throw exception object no longer leaks.
71 - creating a new cctx leaked a scopestack entry (memleak).
72 - new coroutines didn't get created with a zero flags field
73 (unknown impact).
74 - calling ->throw on a not-yet-started coroutine should now work
75 instead of being ignored.
76 - ->throw is now supported on Coro::State objects.
77 - clean up cctx creation code a bit.
78 - entersub is actually a UNOP, not a LOGOP (not a bugfix).
79
804.9 Sat Nov 8 17:45:27 CET 2008
81 - (libcoro) did not preserve rbp with CORO_ASM (we are getting there).
82 - (libcoro) no longer leak threads in the experimental pthread backend,
83 also speed it up considerably.
84 - (libcoro) do not rely on makecontext passing void *'s unscathed.
85 - fix compiletime dependencies on libcoro in the Makefile.
86 - cctx_count wasn't always updated properly.
87 - Coro::State::cctx_stacksize wasn't applied correctly.
88 - new function Coro::State::cctx_max_idle.
89 - the default max number of idle C contexts is now 4.
90 - (libcoro) try harder to get _setjmp/_longjmp.
91 - (libcoro) cleanup and extend the libcoro API to officially
92 allow the creation of empty source contexts.
93 - very experimental workaround for the totally broken netbsd platform.
94 - tried to hack around openbsd bugs.
95
964.804 Wed Nov 5 16:36:00 CET 2008
97 - Coro::Debug::new_unix_server would not create a non-blocking listening
98 socket, sometimes causing freezes.
99 - (libcoro) fix misaligned stack points for setjmp and assembly
100 methods, which can cause crashes on x86/x86_64 with a sufficiently
101 aggressive compiler.
102 - new function: Coro::Debug::new_tcp_server.
103 - move ->throw into the Coro class because it only works on coro objects.
104
1054.803 Mon Nov 3 17:16:12 CET 2008
106 - (libcoro) use a global asm statement to become independent of gcc
107 otpimisations for CORO_ASM (thanks to pippijn for the idea).
108 - try to workaround yet another broken bsd, this time dragonfly.
109
1104.802 Thu Oct 30 10:56:12 CET 2008
111 - support -fno-omit-frame-pointer on x86 with the assembly method.
112 - tune 01_unblock.t tests a bit.
113
1144.801 Wed Oct 22 18:33:37 CEST 2008
115 - improve readline speed for very long "lines".
116 - backport to 5.8.8.
117
1184.8 Thu Oct 2 13:34:40 CEST 2008
119 - new function Coro::AIO::aio_wait.
120 - Coro.:AIO and Coro::BDB now "use Coro::AnyEvent".
121 - greatly speed up and reduce memory usage of Coro::AIO requests.
122 - implement some other µ-optimisations.
123
1244.749 Mon Sep 29 14:40:12 CEST 2008
125 - port to slow and broken pseudo-threaded perls. (courtesy pippijn).
126
1274.748 Sat Sep 27 14:03:19 CEST 2008
128 - implement, but do not document, PerlIO::cede(granularity).
129 - Coro::Storable forgot to wrap Storable::pstore.
130 - work around the multitude of leaks and memory corruption
131 bugs in PerlIO::via by using our own C-level perliol. As a side
132 effect, Coro::Storable is now much, much, much faster.
133
1344.747 Tue Sep 23 01:59:41 CEST 2008
135 - fix a per-cv memleak (one empty array was leaked per
136 code reference).
137 - avoid a crash in coro->call|rss when the coroutine was already
138 destroyed (most noticably when using Coro::Debug::ps :)
139 - also protect *Storable::FILE.
140 - push up default storable granularity to 20ms.
141
1424.746 Sun Sep 21 03:22:20 CEST 2008
143 - be more insistent on locking Storable against reentrancy
144 in Coro::Storable.
145 - move swap_def?v and throw to Coro::State, as documented.
146
1474.745 Thu Jul 24 00:14:38 CEST 2008
148 - remove debugging code related to MgPV_nolen_const, also try to
149 make it compile with perl 5.8.6 (yes, apple apparently loves
150 outdated software). Reported by John S.
151
1524.744 Tue Jul 8 22:06:35 CEST 2008
153 - correctly provide default DIE/WARN handlers as documented.
154 - also overwrite PL_vtbl_sigelem.svt_clear, even though current
155 implementations inside perl work fine for us.
156
1574.743 Mon Jun 16 00:21:57 CEST 2008
158 - when using Coro::EV without running EV::loop it could
159 result in busy-waiting for events, this has been fixed.
160 - reduce codesize and improve performance by using EV_DEFAULT_UC.
161
1624.742 Sat May 31 14:10:21 CEST 2008
163 - implement a workaround for (some) perl <5.8.8 versions.
164 - require EV 3.3+.
165
1664.741 Fri May 30 23:33:09 CEST 2008
167 - tell netbsd how utterly broken their imitation of an OS is
168 and refuse to build by default if pthreads are in use.
169 - switch to "s" method on all bsd's by default, as their ucontext
170 stuff seems just too broken.
171 - fix a bug in Coro::Select.
172
1734.74 Thu May 29 20:05:31 CEST 2008
174 - do not test Coro::LWP for lack of dependencies.
175 - do not test Coro::Select for lack of working perls.
176
1774.73 Thu May 29 2008
178 - fix a bug in Coro::EV which would cause it to block despite
179 there being runnable coroutines.
180 - sprinkle "no warnings" freely over everything, also suppress
181 warnings for some other modules.
182 - fix typo in WSAEWOULDBLOCK.
183
1844.72 Sun May 25 05:14:36 CEST 2008
185 - tweak META.yaml a bit, unfortunately, there is no documented way
186 to have optional dependencies with CPAN. doh :(
187 - avoid running some tests on windows because they would fail due to
188 perl bug (broken fork, broken pipes...).
189 - work around perl on windows bugs where perl returns undocumented
190 error codes for sysread, syswrite etc. by taking advantage
191 of AnyEvent's workaround for that problem.
192 - use AnyEvent::Util::fh_nonblocking in Coro::Handle to work around
193 a common perl implementation bug on windows.
194 - use unix domain sockets in testsuite to work around
195 common perl implementation bugs on widows (they are emulated by
196 tcp sockets on windows. ugh.)
197
1984.71 Sat May 24 20:01:27 CEST 2008
199 - fix a bug in Coro::AnyEvent ("Usage: Coro::AnyEvent::_schedule()").
200 - take advantage of async name resolution of AnyEvent::Util.
201 - work around brutal inet_aton override in Coro::LWP.
202 - take advantage of the readyhook in Coro::EV, for smoother
203 scheduling.
204
2054.7 Sun May 11 00:32:19 CEST 2008
206 - completely reworked the Coro manpage.
207 - added Coro::AnyEvent, generic event loop integration.
208 - implement cancel, ready and kill commands in Coro::Debug.
209 - document find_coro in Coro::Debug.
210 - incompatible change: rename has_stack to has_cctx.
211 - Coro::AIO and Coro::BDB no longer force event model detection,
212 use AnyEvent::AIO and AnyEvent::BDB.
213
2144.6 Sat Apr 26 10:05:14 CEST 2008
215 - INCOMPATIBLE CHANGE: sub/code attributes are no longer supported
216 by the Coro module. It was a mistake to have it in the first place.
217 - (experimental) support for activestate perl 5.10 (method "w").
218 - (experimental) support for strawberry perl (method "a").
219 - coro_sigelem_set did not return a value although it had to,
220 actual impact unknown.
221
2224.51 Mon Apr 14 13:28:27 CEST 2008
223 - make it compile again on 5.8.
224
2254.50 Thu Apr 10 09:43:17 CEST 2008
226 - I did it twice! (see 4.49).
227
2284.49 Sun Apr 6 21:23:31 CEST 2008
229 - grr, instead of compiling the recent changes on 5.10 only they
230 were compiled on 5.8 only.
231
2324.48 Sun Apr 6 20:36:46 CEST 2008
233 - allow coroutine switches during eval's under 5.10.x, as it seems
234 the parser is a per-interpreter option now, so this is safe
235 (this might fix the odd crashing bug).
236 - drop support for 5.9.x versions: they are dead, jim.
237
2384.47 Sun Apr 6 00:37:52 CEST 2008
239 - force cctx allocation on API calls: we know we need to force one
240 and gcc actually manages to confuse our heuristic nowadays,
241 leading to crashes and worse.
242 - document force_cctx.
243
2444.46 Fri Apr 4 22:05:43 CEST 2008
245 - upgrade libcoro, resulting in pthread-backend (which was only created
246 to fulfill the rules of the programming languages shootout).
247
2484.45 Thu Mar 13 11:55:36 CET 2008
249 - fix a file leaking bug in eg/mhyttpd that would allow
250 downloading of any file (reported by oesi).
251 - fix deadlock bug in Coro::Channel (reported by Richard Hundt)
252 (also add testcase).
253 - support Broadcast option in Coro::Socket (patch by Richard Hundt,
254 apparently having loads of fun with that).
255 - implement $state->swap_defsv, ->swap_defav and document ->throw.
256
2574.4 Wed Feb 13 16:44:29 CET 2008
258 - only assume .cfi pseudo isns exist on GNU/Linux.
259 - add get_timed method to Coro::Channels.
260 - fixed Coro::Debug manpage.
261 - perl 5.11 compatbility improvement based on patch by
262 Andreas König.
263
2644.37 Sun Jan 20 11:25:23 CET 2008
265 - soften the check for an active parser for perl 5.10 (avoiding
266 "Coro::State::transfer called while parsing" in many cases).
267
2684.36 Sun Jan 13 10:53:56 CET 2008
269 - reset diehook when terminating from an async_pool as to not
270 trigger any __DIE__ handlers.
271
2724.35 Sun Jan 13 04:14:13 CET 2008
273 - "bt" debug command now displays any exceptions
274 from longmess and also skips the innermost
275 stackframes, giving more useufl output.
276 - allow backtraces in coroutines blocked in Coro::EV,
277 at a <1% speed hit.
278 - handle localising of $SIG{__WARN__} and __DIE__
279 properly (with a proper amount of dirty hacking).
280
2814.34 Sat Dec 22 17:49:53 CET 2007
282 - upgrade to EV version 2.0 API.
283
2844.33 Mon Dec 17 08:36:12 CET 2007
285 - make Coro::AIO etc. loadable in the absence of EV.
286
2874.32 Mon Dec 17 07:46:02 CET 2007
288 - majorly improved Coro::Handle's performance with Coro::EV.
289 - implemented the until now mythical Coro::BDB module.
290 - specialcase EV in Coro::AIO and Coro::BDB for extra speed.
291
2924.31 Wed Dec 5 12:32:39 CET 2007
293 - remove warn statement form Coro::Util.
294
2954.3 Tue Dec 4 20:33:14 CET 2007
296 - calls to the idle function could cause stack corruption
297 when the stack changed.
298 - do no longer rely on the presence of EV::DNS if EV is used
299 (because it is gone), but instead take avdantage of EV::ADNS
300 if available.
301 - add ($) prototypes to all functions in Coro::Storable.
302 - use a conventional (safer) idle callback in Coro::EV.
303 - do accept quickly in Coro::Debug to avoid endless loops.
304
3054.22 Fri Nov 30 16:04:04 CET 2007
306 - really use optimised versions for Event and EV in Coro::Util
307 and Coro::Handle.
308
3094.21 Sun Nov 25 10:48:59 CET 2007
310 - fix a spurious memory read.
311 - Coro::EV no longer keeps the eventloop "alive".
312
3134.2 Fri Nov 9 20:47:05 CET 2007
314 - enable/disable tracing from a new coroutine, not a pooled one.
315 - fix a memleak in Coro::Event.
316 - removed killall call from fork_eval.
317 - made sure store_fd is already loaded so that fork_eval
318 does not have to parse autoload in each subprocess.
319 - only use assembly method if -O switch is in $Config{optimize}.
320 - add (optional) Coro::EV module, so far the best event loop module
321 directly supported by Coro.
322 - if the event model is EV, use EV::DNS to resolve
323 stuff in Coro::Util.
324 - don't get confused by multiple event notifications in Coro::Handle.
325 - initial support for EV (libevent interface).
326 - require Event and EV using configure_requires, to force their existance.
327
3284.13 Wed Oct 24 07:26:45 CEST 2007
329 - add Coro::Storable::blocking_thaw.
330 - use a vastly more complicated technique to localise
331 $SIG{__WARN/DIE__} that also works on perls <= 5.8.8.
332 - use a coroutine for the idle callback Coro::Event,
333 instead of running Event in the current coroutine context.
334 This also catches recursive invocations.
335 - actually report fork errors in gethostbyname and inet_aton.
336
3374.11 Thu Oct 11 02:40:24 CEST 2007
338 - port to threaded perls.
339
3404.1 Thu Oct 11 02:38:16 CEST 2007
341 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now
342 be local to each coro (see Coro::State).
343 - incompatible change: for very deep reasons, cede and cede_notself
344 cannot return anything, so nothing will be returned.
345 - possibly bring back 5.10 compatibility (untested).
346 - work around stupid (and wrong) warning on 5.10 :(.
347 - overlay the saved state over the context stack. This saves
348 a few hundred bytes per coroutine on average and also
349 speeds up context switching a bit.
350 - further tune default stack sizes.
351 - (more) correctly calculate stack usage in coro_rss.
352 - Coro::Storable::blocking_* did not properly lock
353 resulting in races between coroutines.
354 - added Coro::Storable::guard.
355 - stopping to trace a coroutine could destroy the cctx of
356 an unrelated coroutine.
357 - explain the relationship between Perl and C coroutines in
358 more detail in Coro::State.
359 - Coro::Util::inet_aton did not short-circuit dotted quad forms,
360 causing a fork per resolve. This also affected Coro::Socket.
361 - switch to a separate stack in $coro->call/eval to avoid
362 invalidating pointers.
363
3644.03 Sat Oct 6 21:24:00 CEST 2007
365 - added Coro::throw method.
366 - minor code cleanups.
367
3684.02 Sat Oct 6 02:36:47 CEST 2007
369 - fix a very minor per-coroutine memleak (a single codereference).
370 - fixed a bug where the currently in-use c context would be freed
371 prematurely (can happen only when programs change the stacksize
372 or use tracing).
373 - tracing can no longer keep a coro alive after it terminated.
374 - do static branch prediction in the common path for gcc. gives
375 about 2-5% speed improvement here.
376
3774.01 Fri Oct 5 22:10:49 CEST 2007
378 - instead of recreating *a* standard output handle we simply
379 use STDOUT, which is faster and hopefully more robust.
380
3814.0 Fri Oct 5 12:56:00 CEST 2007
11 - incompatibly changed Coro::Storable::freeze. 382 - incompatibly changed Coro::Storable::freeze.
12 - added Coro::Debug, interactive coroutine debugging and much 383 - major new feature: added Coro::Debug, for interactive coroutine
13 more. 384 debugging, tracing and much more.
385 - major bug fix: unbelievable, but true: $_, $/ and many other
386 "saved" variables actually weren't being saved. This has been fixed,
387 of course, while increasing performance while losing all the save
388 flags.
389 - save flags are gone, and all the api functions dealing with them.
14 - added Coro::Semaphore::adjust. 390 - added Coro::Semaphore::adjust.
15 - added Coro::Util::fork_eval. 391 - added Coro::Util::fork_eval.
16 - added Coro::Storable::{nfreeze,blocking_{freeze,nfreeze}}. 392 - added Coro::Storable::{nfreeze,blocking_{freeze,nfreeze}}.
393 - added Coro::killall.
17 - reduce initial stack sizes to allow for "micro-coroutines". 394 - reduce initial stack sizes to allow for "micro-coroutines".
18 - better async_pool resource management, moved parts of async_pool 395 - better async_pool resource management, moved parts of async_pool
19 handling to XS (major speed improvement). 396 handling to XS (major speed improvement).
397 - actually croak before modifying important data structures.
398 - refuse to transfer while compiling.
399 - possibly support eval EXPR better now.
400 - enable assembly per default on linux+bsd x86+amd64.
401 - all internal members were renamed _something for easier subclassing.
20 - many minor tweaks. 402 - many minor tweaks.
21 403
223.63 Wed May 16 14:10:06 CEST 2007 4043.63 Wed May 16 14:10:06 CEST 2007
23 - implement handcoded assembly for x86/amd64 SVR ABI. 405 - implement handcoded assembly for x86/amd64 SVR ABI.
24 406

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines