… | |
… | |
3 | TODO: should explore PerlIO::coroaio (perl leaks like hell). |
3 | TODO: should explore PerlIO::coroaio (perl leaks like hell). |
4 | TODO: maybe implement a default message channel, very much like Erlang's |
4 | TODO: 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 | |
8 | TODO: testcancel |
8 | new -> ready |
9 | TODO: guard as SLF - to avoid deadlocks. |
9 | new -> canceled |
10 | - avoid deadlock in Coro::Channel if maxsize == 1 (Richard Hundt). |
10 | ready -> running |
|
|
11 | ready -> canceled |
|
|
12 | running -> ready |
|
|
13 | running -> blocked |
|
|
14 | running -> canceled |
|
|
15 | blocked -> ready |
|
|
16 | blocked -> canceled |
11 | |
17 | |
12 | 5.0 |
18 | - don't set diehook to C<undef> but instead to NULL, to avoid |
|
|
19 | spurious warnings. |
|
|
20 | |
|
|
21 | 5.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 | |
|
|
38 | 5.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 | |
|
|
43 | 5.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 | |
|
|
69 | 5.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_* functions - they were not being used anyways |
73 | - removed timed_* functions - they were not being used anyways |
17 | 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 |
… | |
… | |
26 | it was available but waiters were still blocked). |
83 | it was available but waiters were still blocked). |
27 | - calling throw on a coroutine that is waiting for a semaphore will |
84 | - calling throw on a coroutine that is waiting for a semaphore will |
28 | no longer make it acquire the semaphore (and thus leak a count). |
85 | no longer make it acquire the semaphore (and thus leak a count). |
29 | - perl's process emulation is now not even theoretically supported |
86 | - perl's process emulation is now not even theoretically supported |
30 | anymore. |
87 | anymore. |
31 | - new functions Coro::rouse_cb and Coro::rouse_wait. |
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. |
32 | - new function Coro::Semaphore::wait. |
92 | - new function Coro::Semaphore::wait. |
33 | - use named constants in Coro::Channel (Richard Hundt). |
93 | - use named constants in Coro::Channel (Richard Hundt). |
34 | - directly patch the entersub opcode calling SLF functions (cede, |
94 | - directly patch the entersub opcode calling SLF functions (cede, |
35 | transfer and so on). this does speed up context switching, but |
95 | transfer and so on). this does speed up context switching, but |
36 | more importanly, it frees us from the hardcoded behaviour of |
96 | more importanly, it frees us from the hardcoded behaviour of |
… | |
… | |
53 | - implement Coro::Channel in terms of Coro::Semaphore, for a moderate |
113 | - implement Coro::Channel in terms of Coro::Semaphore, for a moderate |
54 | (in comparison) 20-40% speedup. |
114 | (in comparison) 20-40% speedup. |
55 | - used new SLF interface to reimplement Coro::Signal gaining |
115 | - used new SLF interface to reimplement Coro::Signal gaining |
56 | some unknown (because I was too lazy), but certain, speedup, and also |
116 | some unknown (because I was too lazy), but certain, speedup, and also |
57 | making signals reliable for the first time. |
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%. |
58 | - 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. |
59 | - work around a freebsd pthreads bug (manual testcancel is required as |
124 | - work around a freebsd pthreads bug (manual testcancel is required as |
60 | 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. |
61 | - (libcoro) lots of minor cleanups and portability improvements. |
129 | - (libcoro) lots of minor cleanups and portability improvements. |
|
|
130 | |
|
|
131 | 4.914 Wed Nov 19 12:54:18 CET 2008 |
|
|
132 | - fix a disastrous bug in the readline optimisation |
|
|
133 | introduced in 4.801. |
62 | |
134 | |
63 | 4.913 Sat Nov 15 07:58:28 CET 2008 |
135 | 4.913 Sat Nov 15 07:58:28 CET 2008 |
64 | - async_pool did free a scalar value twice |
136 | - async_pool did free a scalar value twice |
65 | ("Attempt to unreference..."). |
137 | ("Attempt to unreference..."). |
66 | |
138 | |