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

Comparing Coro/Changes (file contents):
Revision 1.429 by root, Tue Nov 18 09:59:27 2008 UTC vs.
Revision 1.476 by root, Sun Dec 7 15:33:21 2008 UTC

3TODO: should explore PerlIO::coroaio (perl leaks like hell). 3TODO: should explore PerlIO::coroaio (perl leaks like hell).
4TODO: maybe implement a default message channel, very much like Erlang's 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!), 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
8TODO: testcancel 8new -> ready
9TODO: guard as SLF - to avoid deadlocks. 9new -> canceled
10 - avoid deadlock in Coro::Channel if maxsize == 1 (Richard Hundt). 10ready -> running
11ready -> canceled
12running -> ready
13running -> blocked
14running -> canceled
15blocked -> ready
16blocked -> canceled
11 17
125.0 18 - don't set diehook to C<undef> but instead to NULL, to avoid
19 spurious warnings.
20
215.12 Sun Dec 7 13:30:38 CET 2008
22 - add default config for MirOS, which seems to be a bug-to-bug
23 compatible fork of openbsd ("world domination by releasing
24 openbsd cvs before the openbsd folks do it" or so :).
25 - free_padlist did destroy the names pad, not good, but didn't
26 seem to bother perl - this could fix issues such as eval ""
27 inside a function called form multiple coroutines.
28 - use a different method to detect destruction time.
29 - be more careful when freeing padlists just before global
30 destruction.
31 - fixed and expanded the call/cc example.
32 - renamed _terminate to _coro_run.
33 - new method Coro::Channel->shutdown.
34 - try pthreads on openbsd <4.4 (broken sigaltstack, will
35 pthreads fare better?).
36 - be less picky about destroying "a" running coroutine.
37
385.11 Tue Nov 25 21:49:05 CET 2008
39 - DEBUGGING in 5.10.0 is a mess: it constantly flags perfectly
40 working code with failed assertions, introducing more bugs than
41 it fixes, requiring elaborate workarounds :(
42
435.1 Mon Nov 24 08:54:59 CET 2008
44 - wrote a small introductory tutorial - Coro::Intro.
45 - convert Coro::Timer, Coro::Select and Coro::Util to rouse API.
46 - Coro::Select did errornously dup the file descriptors
47 and didn't work with all AnyEvent backends.
48 - Coro::Select wasn't imported correctly form Coro::LWP, causing blocking
49 LWP data transfers.
50 - disassociate c contexts from coro objects - this is agruably more
51 correct, but mostly allows sharing of cctxs between coro and state
52 objects, for added memory savings and speed increases.
53 - bumped $Coro::POOL_RSS up to 32kb by default.
54 - no longer set the optype to OP_CUSTOM, as B::* understandably
55 doesn't like this very much (and we *are* a type of entersub).
56 - implement state cloning, just to prove that call/cc can be done.
57 - automatically load Coro::AnyEvent in Coro::Handle.
58 - wrap ->cancel calls in eval inside Coro::Handle as EV watchers
59 do not have this method (and don't need it either).
60 - speed up generic anyevent methods in Coro::Handle by using rouse
61 callbacks.
62 - allow coroutines in $Coro::IDLE, speeding up Coro::AnyEvent and
63 others. It also makes the debugger happier, as you can trace
64 through the idle threads now.
65 - add comppad_name* and hints ($^H, %^H) to per-thread variables.
66 - eg/event was pretty broken.
67 - better 5.8.6 compatibility.
68
695.0 Thu Nov 20 10:35:05 CET 2008
13 - NEW ARCHITECTURE: use the latest 4.x version if you experience 70 - NEW ARCHITECTURE: use the latest 4.x version if you experience
14 stability issues. 71 stability issues.
15 - bump API version to 7 - all dependents must be recompiled. 72 - bump API version to 7 - all dependents must be recompiled.
16 - removed timed_down and timed_guard functions - they were not being 73 - removed timed_* functions - they were not being used anyways
17 used anyways and should be replaced by a more generic mechanism - 74 and should be replaced by a more generic mechanism -
18 and were annoying to support anyways :) 75 and were annoying to support anyways :)
19 - removed SemaphoreSet's waiter method - use sem instead. 76 - removed SemaphoreSet's waiter method - use sem method instead.
20 - Coro::Semaphore->adjust didn't correctly wake up enough waiters. 77 - Coro::Semaphore->adjust didn't correctly wake up enough waiters.
21 - async_pool did free a scalar value twice 78 - async_pool did free a scalar value twice
22 ("Attempt to unreference..."). 79 ("Attempt to unreference...").
23 - fix a longstanding bug where calling terminate on a coro that 80 - fix a longstanding bug where calling terminate on a coro that
24 was waiting for a semaphore that was just becoming available 81 was waiting for a semaphore that was just becoming available
25 would cause a deadlock (semaphore would get into a state where 82 would cause a deadlock (semaphore would get into a state where
26 it was available but waiters were waiting(. 83 it was available but waiters were still blocked).
84 - calling throw on a coroutine that is waiting for a semaphore will
85 no longer make it acquire the semaphore (and thus leak a count).
27 - perl's process emulation is now not even theoretically supported 86 - perl's process emulation is now not even theoretically supported
28 anymore. 87 anymore.
88 - new functions Coro::rouse_cb and Coro::rouse_wait for easier
89 conversion of callback-style to blocking-style.
90 - new methods $coro->schedule_to and ->cede_to, to specifically
91 schedule or cede to a specific coroutine.
92 - new function Coro::Semaphore::wait.
29 - use named constants in Coro::Channel (Richard Hundt). 93 - use named constants in Coro::Channel (Richard Hundt).
30 - directly patch the entersub opcode calling SLF functions (cede, 94 - directly patch the entersub opcode calling SLF functions (cede,
31 transfer and so on). this does speed up context switching, but 95 transfer and so on). this does speed up context switching, but
32 more importanly, it frees us from the hardcoded behaviour of 96 more importanly, it frees us from the hardcoded behaviour of
33 entersub, so we might actually be able to return something from 97 entersub, so we might actually be able to return something from
44 - used new SLF interface to speed up Coro::AIO by roughly a factor of 108 - used new SLF interface to speed up Coro::AIO by roughly a factor of
45 four and reduce its memory usage considerably. 109 four and reduce its memory usage considerably.
46 - implement Coro::SemaphoreSet purely in terms of Coro::Semaphore, 110 - implement Coro::SemaphoreSet purely in terms of Coro::Semaphore,
47 for a nice speedup and vastly more correct behaviour. Also implement 111 for a nice speedup and vastly more correct behaviour. Also implement
48 a new method "sem" to get at the underlying semaphore object. 112 a new method "sem" to get at the underlying semaphore object.
113 - implement Coro::Channel in terms of Coro::Semaphore, for a moderate
114 (in comparison) 20-40% speedup.
115 - used new SLF interface to reimplement Coro::Signal gaining
116 some unknown (because I was too lazy), but certain, speedup, and also
117 making signals reliable for the first time.
118 - used new SLF interface and other optimisations to speed up async_pool
119 by a factor of two. It also doesn't rely on perl's exception mechanism
120 to exit anymore. The overhead for terminating an async_pool, coro over
121 a normal async is now very small.
122 - sped up coroutine creation/destruction by 40%.
49 - forgot to include Coro/libcoro/README in the dist for all these years. 123 - forgot to include Coro/libcoro/README in the dist for all these years.
50 - work around a freebsd pthreads bug (manual testcancel is required as 124 - work around a freebsd pthreads bug (manual testcancel is required as
51 pthread_cond_wait isn't a cancellation point on freebsd). 125 pthread_cond_wait isn't a cancellation point on freebsd).
126 - use new rouse functions to speed up and simplify Coro::BDB.
127 - make "prefer perl native functions" work with threaded perls.
128 - condense Coro::Debug ps output, hint at v and w flags.
129 - (libcoro) lots of minor cleanups and portability improvements.
130
1314.914 Wed Nov 19 12:54:18 CET 2008
132 - fix a disastrous bug in the readline optimisation
133 introduced in 4.801.
52 134
534.913 Sat Nov 15 07:58:28 CET 2008 1354.913 Sat Nov 15 07:58:28 CET 2008
54 - async_pool did free a scalar value twice 136 - async_pool did free a scalar value twice
55 ("Attempt to unreference..."). 137 ("Attempt to unreference...").
56 138

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines