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

Comparing Coro/Changes (file contents):
Revision 1.314 by root, Sun Jan 13 09:47:22 2008 UTC vs.
Revision 1.462 by root, Mon Nov 24 06:07:16 2008 UTC

1Revision history for Perl extension Coro. 1Revision history for Perl extension Coro.
2 2
3TODO: should explore PerlIO::via::CoroCede and PerlIO::via::CoroAIO. 3TODO: should explore PerlIO::coroaio (perl leaks like hell).
4TODO: maybe implement a default message channel, very much like Erlang 4TODO: maybe implement a default message channel, very much like Erlang's
5 (which is cool in a lot of important aspects (failures!), 5 actor model (which is cool in a lot of important aspects (failures!),
6 but very lacking in others (higher level ipc)). 6 but very lacking in others (higher level ipc)).
7 7
8 TODO: Coro/Intro
9 - wrote a small introduction - Coro::Intro.
10 - convert Coro::Timer, Coro::Select and Coro::Util to rouse API.
11 - Coro::Select did errornously dup the file descriptors
12 and didn't work with all AnyEvent backends.
13 - disassociate c contexts from coro objects - this is agruably more
14 correct, but mostly allows sharing of cctxs between coro and state
15 objects, for added memory savings and speed increases.
16 - bumped $Coro::POOL_RSS up to 32kb by default.
17 - no longer set the optype to OP_CUSTOM, as B::* understandably
18 doesn't like this very much (and we *are* a type of entersub).
19 - implement state cloning, just to prove that call/cc can be done.
20 - automatically load Coro::AnyEvent in Coro::Handle.
21 - wrap ->cancel calls in eval inside Coro::Handle as EV watchers
22 do not have this method (and don't need it either).
23 - speed up generic anyevent methods in Coro::Handle by using rouse
24 callbacks.
25 - allow coroutines in $Coro::IDLE, speeding up Coro::AnyEvent and
26 others. It also makes the debugger happier, as you can trace
27 through the idle threads now.
28 - add comppad_name* and hints ($^H, %^H) to per-thread variables.
29 - eg/event was pretty broken.
30 - better 5.8.6 compatibility.
31
325.0 Thu Nov 20 10:35:05 CET 2008
33 - NEW ARCHITECTURE: use the latest 4.x version if you experience
34 stability issues.
35 - bump API version to 7 - all dependents must be recompiled.
36 - removed timed_* functions - they were not being used anyways
37 and should be replaced by a more generic mechanism -
38 and were annoying to support anyways :)
39 - removed SemaphoreSet's waiter method - use sem method instead.
40 - Coro::Semaphore->adjust didn't correctly wake up enough waiters.
41 - async_pool did free a scalar value twice
42 ("Attempt to unreference...").
43 - fix a longstanding bug where calling terminate on a coro that
44 was waiting for a semaphore that was just becoming available
45 would cause a deadlock (semaphore would get into a state where
46 it was available but waiters were still blocked).
47 - calling throw on a coroutine that is waiting for a semaphore will
48 no longer make it acquire the semaphore (and thus leak a count).
49 - perl's process emulation is now not even theoretically supported
50 anymore.
51 - new functions Coro::rouse_cb and Coro::rouse_wait for easier
52 conversion of callback-style to blocking-style.
53 - new methods $coro->schedule_to and ->cede_to, to specifically
54 schedule or cede to a specific coroutine.
55 - new function Coro::Semaphore::wait.
56 - use named constants in Coro::Channel (Richard Hundt).
57 - directly patch the entersub opcode calling SLF functions (cede,
58 transfer and so on). this does speed up context switching, but
59 more importanly, it frees us from the hardcoded behaviour of
60 entersub, so we might actually be able to return something from
61 those functions and atcually create new ones.
62 - take advantage of __builtin_frame_address on gcc.
63 - expose THX in coroapi (not sure whether this was a wise decision,
64 as "threaded" perls are running at half speed anyways).
65 - implement execute_slf (schedule-like-function) interface that makes
66 it possible to implement schedule-like-functions in XS.
67 - use new SLF interface to massively speed up Coro::EV by roughly a
68 factor of two.
69 - used new SLF interface to massively speed up Coro::Semaphore by a
70 factor of three.
71 - used new SLF interface to speed up Coro::AIO by roughly a factor of
72 four and reduce its memory usage considerably.
73 - implement Coro::SemaphoreSet purely in terms of Coro::Semaphore,
74 for a nice speedup and vastly more correct behaviour. Also implement
75 a new method "sem" to get at the underlying semaphore object.
76 - implement Coro::Channel in terms of Coro::Semaphore, for a moderate
77 (in comparison) 20-40% speedup.
78 - used new SLF interface to reimplement Coro::Signal gaining
79 some unknown (because I was too lazy), but certain, speedup, and also
80 making signals reliable for the first time.
81 - used new SLF interface and other optimisations to speed up async_pool
82 by a factor of two. It also doesn't rely on perl's exception mechanism
83 to exit anymore. The overhead for terminating an async_pool, coro over
84 a normal async is now very small.
85 - sped up coroutine creation/destruction by 40%.
86 - forgot to include Coro/libcoro/README in the dist for all these years.
87 - work around a freebsd pthreads bug (manual testcancel is required as
88 pthread_cond_wait isn't a cancellation point on freebsd).
89 - use new rouse functions to speed up and simplify Coro::BDB.
90 - make "prefer perl native functions" work with threaded perls.
91 - condense Coro::Debug ps output, hint at v and w flags.
92 - (libcoro) lots of minor cleanups and portability improvements.
93
944.914 Wed Nov 19 12:54:18 CET 2008
95 - fix a disastrous bug in the readline optimisation
96 introduced in 4.801.
97
984.913 Sat Nov 15 07:58:28 CET 2008
99 - async_pool did free a scalar value twice
100 ("Attempt to unreference...").
101
1024.912 Thu Nov 13 18:31:23 CET 2008
103 - minor cleanups.
104 - use much larger stacks on linux and perl < 5.8.8.
105 - Coro::Debug::new_unix_server did not unlink the socket
106 when destroyed.
107
1084.911 Tue Nov 11 04:26:17 CET 2008
109 - "port" to threaded perls.
110
1114.91 Mon Nov 10 05:36:38 CET 2008
112 - the ->throw exception object no longer leaks.
113 - creating a new cctx leaked a scopestack entry (memleak).
114 - new coroutines didn't get created with a zero flags field
115 (unknown impact).
116 - calling ->throw on a not-yet-started coroutine should now work
117 instead of being ignored.
118 - ->throw is now supported on Coro::State objects.
119 - clean up cctx creation code a bit.
120 - entersub is actually a UNOP, not a LOGOP (not a bugfix).
121
1224.9 Sat Nov 8 17:45:27 CET 2008
123 - (libcoro) did not preserve rbp with CORO_ASM (we are getting there).
124 - (libcoro) no longer leak threads in the experimental pthread backend,
125 also speed it up considerably.
126 - (libcoro) do not rely on makecontext passing void *'s unscathed.
127 - fix compiletime dependencies on libcoro in the Makefile.
128 - cctx_count wasn't always updated properly.
129 - Coro::State::cctx_stacksize wasn't applied correctly.
130 - new function Coro::State::cctx_max_idle.
131 - the default max number of idle C contexts is now 4.
132 - (libcoro) try harder to get _setjmp/_longjmp.
133 - (libcoro) cleanup and extend the libcoro API to officially
134 allow the creation of empty source contexts.
135 - very experimental workaround for the totally broken netbsd platform.
136 - tried to hack around openbsd bugs.
137
1384.804 Wed Nov 5 16:36:00 CET 2008
139 - Coro::Debug::new_unix_server would not create a non-blocking listening
140 socket, sometimes causing freezes.
141 - (libcoro) fix misaligned stack points for setjmp and assembly
142 methods, which can cause crashes on x86/x86_64 with a sufficiently
143 aggressive compiler.
144 - new function: Coro::Debug::new_tcp_server.
145 - move ->throw into the Coro class because it only works on coro objects.
146
1474.803 Mon Nov 3 17:16:12 CET 2008
148 - (libcoro) use a global asm statement to become independent of gcc
149 otpimisations for CORO_ASM (thanks to pippijn for the idea).
150 - try to workaround yet another broken bsd, this time dragonfly.
151
1524.802 Thu Oct 30 10:56:12 CET 2008
153 - support -fno-omit-frame-pointer on x86 with the assembly method.
154 - tune 01_unblock.t tests a bit.
155
1564.801 Wed Oct 22 18:33:37 CEST 2008
157 - improve readline speed for very long "lines".
158 - backport to 5.8.8.
159
1604.8 Thu Oct 2 13:34:40 CEST 2008
161 - new function Coro::AIO::aio_wait.
162 - Coro.:AIO and Coro::BDB now "use Coro::AnyEvent".
163 - greatly speed up and reduce memory usage of Coro::AIO requests.
164 - implement some other µ-optimisations.
165
1664.749 Mon Sep 29 14:40:12 CEST 2008
167 - port to slow and broken pseudo-threaded perls. (courtesy pippijn).
168
1694.748 Sat Sep 27 14:03:19 CEST 2008
170 - implement, but do not document, PerlIO::cede(granularity).
171 - Coro::Storable forgot to wrap Storable::pstore.
172 - work around the multitude of leaks and memory corruption
173 bugs in PerlIO::via by using our own C-level perliol. As a side
174 effect, Coro::Storable is now much, much, much faster.
175
1764.747 Tue Sep 23 01:59:41 CEST 2008
177 - fix a per-cv memleak (one empty array was leaked per
178 code reference).
179 - avoid a crash in coro->call|rss when the coroutine was already
180 destroyed (most noticably when using Coro::Debug::ps :)
181 - also protect *Storable::FILE.
182 - push up default storable granularity to 20ms.
183
1844.746 Sun Sep 21 03:22:20 CEST 2008
185 - be more insistent on locking Storable against reentrancy
186 in Coro::Storable.
187 - move swap_def?v and throw to Coro::State, as documented.
188
1894.745 Thu Jul 24 00:14:38 CEST 2008
190 - remove debugging code related to MgPV_nolen_const, also try to
191 make it compile with perl 5.8.6 (yes, apple apparently loves
192 outdated software). Reported by John S.
193
1944.744 Tue Jul 8 22:06:35 CEST 2008
195 - correctly provide default DIE/WARN handlers as documented.
196 - also overwrite PL_vtbl_sigelem.svt_clear, even though current
197 implementations inside perl work fine for us.
198
1994.743 Mon Jun 16 00:21:57 CEST 2008
200 - when using Coro::EV without running EV::loop it could
201 result in busy-waiting for events, this has been fixed.
202 - reduce codesize and improve performance by using EV_DEFAULT_UC.
203
2044.742 Sat May 31 14:10:21 CEST 2008
205 - implement a workaround for (some) perl <5.8.8 versions.
206 - require EV 3.3+.
207
2084.741 Fri May 30 23:33:09 CEST 2008
209 - tell netbsd how utterly broken their imitation of an OS is
210 and refuse to build by default if pthreads are in use.
211 - switch to "s" method on all bsd's by default, as their ucontext
212 stuff seems just too broken.
213 - fix a bug in Coro::Select.
214
2154.74 Thu May 29 20:05:31 CEST 2008
216 - do not test Coro::LWP for lack of dependencies.
217 - do not test Coro::Select for lack of working perls.
218
2194.73 Thu May 29 2008
220 - fix a bug in Coro::EV which would cause it to block despite
221 there being runnable coroutines.
222 - sprinkle "no warnings" freely over everything, also suppress
223 warnings for some other modules.
224 - fix typo in WSAEWOULDBLOCK.
225
2264.72 Sun May 25 05:14:36 CEST 2008
227 - tweak META.yaml a bit, unfortunately, there is no documented way
228 to have optional dependencies with CPAN. doh :(
229 - avoid running some tests on windows because they would fail due to
230 perl bug (broken fork, broken pipes...).
231 - work around perl on windows bugs where perl returns undocumented
232 error codes for sysread, syswrite etc. by taking advantage
233 of AnyEvent's workaround for that problem.
234 - use AnyEvent::Util::fh_nonblocking in Coro::Handle to work around
235 a common perl implementation bug on windows.
236 - use unix domain sockets in testsuite to work around
237 common perl implementation bugs on widows (they are emulated by
238 tcp sockets on windows. ugh.)
239
2404.71 Sat May 24 20:01:27 CEST 2008
241 - fix a bug in Coro::AnyEvent ("Usage: Coro::AnyEvent::_schedule()").
242 - take advantage of async name resolution of AnyEvent::Util.
243 - work around brutal inet_aton override in Coro::LWP.
244 - take advantage of the readyhook in Coro::EV, for smoother
245 scheduling.
246
2474.7 Sun May 11 00:32:19 CEST 2008
248 - completely reworked the Coro manpage.
249 - added Coro::AnyEvent, generic event loop integration.
250 - implement cancel, ready and kill commands in Coro::Debug.
251 - document find_coro in Coro::Debug.
252 - incompatible change: rename has_stack to has_cctx.
253 - Coro::AIO and Coro::BDB no longer force event model detection,
254 use AnyEvent::AIO and AnyEvent::BDB.
255
2564.6 Sat Apr 26 10:05:14 CEST 2008
257 - INCOMPATIBLE CHANGE: sub/code attributes are no longer supported
258 by the Coro module. It was a mistake to have it in the first place.
259 - (experimental) support for activestate perl 5.10 (method "w").
260 - (experimental) support for strawberry perl (method "a").
261 - coro_sigelem_set did not return a value although it had to,
262 actual impact unknown.
263
2644.51 Mon Apr 14 13:28:27 CEST 2008
265 - make it compile again on 5.8.
266
2674.50 Thu Apr 10 09:43:17 CEST 2008
268 - I did it twice! (see 4.49).
269
2704.49 Sun Apr 6 21:23:31 CEST 2008
271 - grr, instead of compiling the recent changes on 5.10 only they
272 were compiled on 5.8 only.
273
2744.48 Sun Apr 6 20:36:46 CEST 2008
275 - allow coroutine switches during eval's under 5.10.x, as it seems
276 the parser is a per-interpreter option now, so this is safe
277 (this might fix the odd crashing bug).
278 - drop support for 5.9.x versions: they are dead, jim.
279
2804.47 Sun Apr 6 00:37:52 CEST 2008
281 - force cctx allocation on API calls: we know we need to force one
282 and gcc actually manages to confuse our heuristic nowadays,
283 leading to crashes and worse.
284 - document force_cctx.
285
2864.46 Fri Apr 4 22:05:43 CEST 2008
287 - upgrade libcoro, resulting in pthread-backend (which was only created
288 to fulfill the rules of the programming languages shootout).
289
2904.45 Thu Mar 13 11:55:36 CET 2008
291 - fix a file leaking bug in eg/mhyttpd that would allow
292 downloading of any file (reported by oesi).
293 - fix deadlock bug in Coro::Channel (reported by Richard Hundt)
294 (also add testcase).
295 - support Broadcast option in Coro::Socket (patch by Richard Hundt,
296 apparently having loads of fun with that).
297 - implement $state->swap_defsv, ->swap_defav and document ->throw.
298
2994.4 Wed Feb 13 16:44:29 CET 2008
300 - only assume .cfi pseudo isns exist on GNU/Linux.
301 - add get_timed method to Coro::Channels.
302 - fixed Coro::Debug manpage.
303 - perl 5.11 compatbility improvement based on patch by
304 Andreas König.
305
3064.37 Sun Jan 20 11:25:23 CET 2008
307 - soften the check for an active parser for perl 5.10 (avoiding
308 "Coro::State::transfer called while parsing" in many cases).
309
3104.36 Sun Jan 13 10:53:56 CET 2008
8 - reset diehook when terminating from an async_pool as to not 311 - reset diehook when terminating from an async_pool as to not
9 trigger any __DIE__ handlers. 312 trigger any __DIE__ handlers.
10 313
114.35 Sun Jan 13 04:14:13 CET 2008 3144.35 Sun Jan 13 04:14:13 CET 2008
12 - "bt" debug command now displays any exceptions 315 - "bt" debug command now displays any exceptions

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines