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

Comparing Coro/Changes (file contents):
Revision 1.148 by root, Mon Nov 20 20:29:33 2006 UTC vs.
Revision 1.282 by root, Wed Oct 24 05:50:32 2007 UTC

1Revision history for Perl extension Coro. 1Revision history for Perl extension Coro.
2 2
3TODO: check wether stack-sharing is still effective 3TODO: should explore PerlIO::via::CoroCede and PerlIO::via::CoroAIO.
4TODO: more effective stack sharing by having one "default stack" for "simple" coroutines? 4TODO: maybe implement a default message channel, very much like Erlang
5TODO: verify exception frame changes and force stack copies? 5 (which is cool in a lot of important aspects (failures!),
6 but very lacking in others (higher level ipc)).
6 7
7 - avoid deadlock in Coro::Event's idle process when it is called 8 - enable/disable tracing from a new coroutine, not a pooled one.
8 early with no active watchers. 9
9 - minor documentation cleanup. 104.13 Wed Oct 24 07:26:45 CEST 2007
11 - add Coro::Storable::blocking_thaw.
12 - use a vastly more complicated technique to localise
13 $SIG{__WARN/DIE__} that also works on perls <= 5.8.8.
14 - use a coroutine for the idle callback Coro::Event,
15 instead of running Event in the current coroutine context.
16 This also catches recursive invocations.
17 - actually report fork errors in gethostbyname and inet_aton.
18
194.11 Thu Oct 11 02:40:24 CEST 2007
20 - port to threaded perls.
21
224.1 Thu Oct 11 02:38:16 CEST 2007
23 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now
24 be local to each coro (see Coro::State).
25 - incompatible change: for very deep reasons, cede and cede_notself
26 cannot return anything, so nothing will be returned.
27 - possibly bring back 5.10 compatibility (untested).
28 - work around stupid (and wrong) warning on 5.10 :(.
29 - overlay the saved state over the context stack. This saves
30 a few hundred bytes per coroutine on average and also
31 speeds up context switching a bit.
32 - further tune default stack sizes.
33 - (more) correctly calculate stack usage in coro_rss.
34 - Coro::Storable::blocking_* did not properly lock
35 resulting in races between coroutines.
36 - added Coro::Storable::guard.
37 - stopping to trace a coroutine could destroy the cctx of
38 an unrelated coroutine.
39 - explain the relationship between Perl and C coroutines in
40 more detail in Coro::State.
41 - Coro::Util::inet_aton did not short-circuit dotted quad forms,
42 causing a fork per resolve. This also affected Coro::Socket.
43 - switch to a separate stack in $coro->call/eval to avoid
44 invalidating pointers.
45
464.03 Sat Oct 6 21:24:00 CEST 2007
47 - added Coro::throw method.
48 - minor code cleanups.
49
504.02 Sat Oct 6 02:36:47 CEST 2007
51 - fix a very minor per-coroutine memleak (a single codereference).
52 - fixed a bug where the currently in-use c context would be freed
53 prematurely (can happen only when programs change the stacksize
54 or use tracing).
55 - tracing can no longer keep a coro alive after it terminated.
56 - do static branch prediction in the common path for gcc. gives
57 about 2-5% speed improvement here.
58
594.01 Fri Oct 5 22:10:49 CEST 2007
60 - instead of recreating *a* standard output handle we simply
61 use STDOUT, which is faster and hopefully more robust.
62
634.0 Fri Oct 5 12:56:00 CEST 2007
64 - incompatibly changed Coro::Storable::freeze.
65 - major new feature: added Coro::Debug, for interactive coroutine
66 debugging, tracing and much more.
67 - major bug fix: unbelievable, but true: $_, $/ and many other
68 "saved" variables actually weren't being saved. This has been fixed,
69 of course, while increasing performance while losing all the save
70 flags.
71 - save flags are gone, and all the api functions dealing with them.
72 - added Coro::Semaphore::adjust.
73 - added Coro::Util::fork_eval.
74 - added Coro::Storable::{nfreeze,blocking_{freeze,nfreeze}}.
75 - added Coro::killall.
76 - reduce initial stack sizes to allow for "micro-coroutines".
77 - better async_pool resource management, moved parts of async_pool
78 handling to XS (major speed improvement).
79 - actually croak before modifying important data structures.
80 - refuse to transfer while compiling.
81 - possibly support eval EXPR better now.
82 - enable assembly per default on linux+bsd x86+amd64.
83 - all internal members were renamed _something for easier subclassing.
84 - many minor tweaks.
85
863.63 Wed May 16 14:10:06 CEST 2007
87 - implement handcoded assembly for x86/amd64 SVR ABI.
88
893.62 Fri Apr 27 21:36:06 CEST 2007
90 - upgrade libcoro (which might set unwind info correctly).
91 - change default on linux to setjmp/longjmp.
92
933.61 Thu Apr 19 12:36:18 CEST 2007
94 - Coro::Storable caused an endless loop when thawing invalid
95 pst's sometimes.
96 - use a Semaphore in Coro::Storable, as Storable doesn't
97 seem to be reentrant (although it is documented to
98 be threadsafe...).
99 - fix Coro::Signal to bring back the original unreliable
100 but stateful semantics.
101 - fixed a lot of typos in Coro.pm (patch submitted by David
102 Steinbrunner, which applied flawlessly).
103
1043.6 Sat Apr 14 17:13:31 CEST 2007
105 - added some bugfixes to get eg/myhttpd working again.
106 - added Coro::Storable for often-cede'ing freeze/thaw.
107 - try to do a clean exit when a coroutine calls exit
108 (EXPERIMENTAL).
109 - got rid of indirect call through _coro_init.
110 - updated the partly antique examples in eg/ to
111 work again and be a bit less magic, too.
112 - fixed Coro::Signal semantics to work as documented again.
113
1143.55 Sun Mar 25 01:20:47 CET 2007
115 - add SAVE_DEFFH to save the default filehandle and enable
116 it by default.
117 - finally move socket-operations from Coro::Socket to Coro::Handle
118 to be able to unblock foreign sockets.
119 - add Coro::State::save_also and guarded_save.
120 - add count accessor to Coro::Semaphore.
121 - add Coro::State::cctx_stacksize.
122 - just for the fun of it, do not rely on implicit context,
123 which can dramatically improve performance, but people
124 using windows-process-emulation perls do not care much about
125 performance.
126
1273.51 Sun Mar 4 14:18:04 CET 2007
128 - fixed a problem when you weakened references to Coro::State's
129 (patch by Yuval Kogman).
130
1313.501 Wed Feb 28 12:44:07 CET 2007
132 - rename some global symbols as macosx from hell redefines
133 them without asking.
134
1353.5 Tue Feb 13 20:22:53 CET 2007
136 - do AnyEvent model detection earlier, avoiding problems
137 caused by first using AnyEvent and later Coro::Event.
138 - implement and document Coro::Event event objects.
139 - fix a potential problem in Coro::Event causing crashes.
140 - initialise PL_comppad when creating a new coroutine,
141 avoids crashes on early coro destruction.
142
1433.41 Mon Jan 22 19:19:49 CET 2007
144 - readline on Coro::Handle did not support undefined $/,
145 nor did it deliver partial lines on EOF or error.
146 - implement malloc fallback for stack allocation because
147 stupid broken idiotic OSX has a stupid broken
148 idiotic fits-the-whole-os mmap "implementation" and
149 my dick feels longer if Coro is portable even to
150 obsolete platforms.
151
1523.4 Fri Jan 19 21:52:54 CET 2007
153 - remove t/09_timer.t, as it isn't really testing much
154 but was rather flaky in practise.
155 - async_pool coro would keep arguments and callback alive until
156 it was reused.
157 - cancellation of a coroutine could cause spurious idle calls
158 in cede_notself.
159
1603.3 Sat Jan 6 03:45:00 CET 2007
161 - implement $coro->on_destroy.
162 - Coro::Event blocking semantics have been changed,
163 documented and - hopefully - improved.
164 - fix nice adding, not subtracting, from priority.
165 - fix ->prio and api_is_ready (patch by Mark Hinds).
166 - fixed an assert ("... == prev__cctx->idle_te")
167 that could errronously trigger.
168 - fix various large and small memleaks.
169 - use a (hopefully) more stable cancel implementation
170 that immediately frees the coroutine data.
171 - cede/cede_notself return a status now.
172 - added Coro::guard function.
173 - added a global coroutine pool for jobs (on my machine,
174 I can create and execute 48k simple coros/s with async,
175 and 128k coros with async_pool).
176 - Coro::AIO now uses the coroutine priority as io priority.
177
1783.2 Fri Dec 22 05:07:09 CET 2006
179 - improve portability to slightly older perls.
180 - use cleaner coroutine destruction.
181 - simplify configuration for users.
182 - optionally (unrecommended) prefer perl functions over
183 their coro replacements.
184
1853.11 Tue Dec 5 13:11:24 CET 2006
186 - fixed some bogus assert's, but as perl.h disables assert even
187 without NDEBUG (thank you very much), not too many people should
188 notice (that did include myself). Andreas König noticed, though :)
189 - do not save/restore PL_sortcxix on >= 5.9.x, it doesn't seem to have
190 it. Also noticed by Andreas König :)
191 - save/restore tainted status.
192 - verified to pass the testsuite on my 5.9.5.
193
1943.1 Mon Dec 4 23:03:40 CET 2006
195 - INCOMPATIBLE CHANGE: $/ is now per-coroutine (but slow).
196 - incompatible change: transfer flags are now per-state.
197 - give a better error message on deadlock.
198 - document Coro::nready.
199 - enhanced testsuite.
200
2013.01 Sun Dec 3 23:47:42 CET 2006
202 - forgot to include Coro::Timer.
203
2043.0 Sun Dec 3 22:57:25 CET 2006
205 - the "FINALLY COMPLETELY STABLE" release (coming soon:
206 the "FAMOUS LAST WORDS" release).
207 - implement a new stack sharing algorithm, which uses a stack
208 pool (size currently hardcoded).
209 - make stack sharing mandatory (it no longer uses a heuristic).
210 - eval/die no longer cause weird problems under heavy use.
211 - Coro::Event could cause livelocks if it was used but
212 no Coro::Event watchers were used.
213 - Coro::Event now uses asynccheck as prepare does not
214 check for changed watchers.
215 - Coro::Event allows multiple waiting coros and will wake up one
216 per event.
217 - Coro::Event should be cleaner and more efficient now.
218 - new utility function Coro::unblock_sub.
219 - document the sad fact that Event is no longer reentrant.
220 - putting a coroutine into the ready queue twice could under
221 some circumstances lead to stack corruption.
222 - minor incompatibility: subclassing Coro::State is supported
223 directly now without going through a _coro_state member.
224 - state/coro switching is much faster now.
225 - very minor optimisations and code/documentation cleanup.
226 - avoid problems due to compiler inlining.
227 - removed timers from Coro::Timer -> use AnyEvent instead.
228 - replaced Coro::idle coroutine by (cleaner) idle handler.
229 - updated to newest libcoro.
230 - implement enhanced support for valgrind.
231 - implement is_ready and return value for ready.
232 - removed Coro::Cont, it was a misnomer (it's generators),
233 and it was somewhat annoying to get it right. Will come back
234 if somebody asks for it :)
235 - many ->wait methods and Coro::Event could return
236 spuriously without the event having happened.
10 237
112.5 Tue Nov 7 12:22:33 CET 2006 2382.5 Tue Nov 7 12:22:33 CET 2006
12 - made Coro::Util, Coro::Select, Coro::Handle and Coro::Socket 239 - made Coro::Util, Coro::Select, Coro::Handle and Coro::Socket
13 use AnyEvent, moved them to Coro/. 240 use AnyEvent, moved them to Coro/.
14 - added Coro::LWP which contains all the uglyness required to 241 - added Coro::LWP which contains all the uglyness required to

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines