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

Comparing Coro/Changes (file contents):
Revision 1.249 by root, Tue Oct 2 23:16:23 2007 UTC vs.
Revision 1.416 by root, Sat Nov 15 07:01:47 2008 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines