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

Comparing Coro/Changes (file contents):
Revision 1.592 by root, Mon Jul 2 20:08:06 2012 UTC vs.
Revision 1.692 by root, Fri Jun 25 01:13:20 2021 UTC

1Revision history for Perl extension Coro. 1Revision history for Perl extension Coro.
2 2
3TODO: should explore PerlIO::coroaio (perl leaks like hell). 3TODO: should explore PerlIO::coroaio (perl leaks like hell).
4TODO: channel->maxsize(newsize)? 4TODO: channel->maxsize(newsize)?
5TODO: http://www.microsoft.com/msj/archive/s2ce.aspx
6TODO: __GCC_HAVE_DWARF2_CFI_ASM 5TODO: __GCC_HAVE_DWARF2_CFI_ASM
6TODO: swap_sv, maybe add scope_swap_sv?
7TODO: croak when async_pool tries to run canceled thread?
8TODO: how to debug safe_cancel failure (vebrose mode? show how to make backtrace?)
9TODO: scalar context for Coro::AIO wrappers?
7 10
11TODO: State.xs could short-circuit some macros such as CORO_EXECUTE_SLF
12TODO: use frame->destroy to improve Coro::EV
13
14TODO: concurrent ->recv on same condvar
15sub Coro::AnyEvent::CondVar::_send {
16 if ($_[0]{_ae_coro}) {
17 $_->ready
18 for values %{ delete $_[0]{_ae_coro} }
19 }
20};
21
22sub Coro::AnyEvent::CondVar::_wait {
23 until ($_[0]{_ae_sent}) {
24 $AnyEvent::CondVar::Base::WAITING = 0; # avoid recursive check by AnyEvent
25 local $_[0]{_ae_coro}{$Coro::current+0} = $Coro::current;
26 Coro::schedule;
27 }
28};
29
30 - potential fix for an interetsing type of recursive coro
31 destruction (testcase by Christopher J. Madsen).
32
336.57 Wed Jul 29 15:08:44 CEST 2020
34 - override AnyEvent condvar methods "properly", as AnyEvent
35 has support for pluggable condvars since 2011. This also
36 avoids problems with recursive waits by avoiding to mix
37 impl methods with coro code.
38 - allow rouse_wait to be called in a different thread.
39 - slightly clarify rouse_cb/rouse_wait documentation.
40 - slightly improve rouse callback performance and memory usage.
41 - try to report correct calller when throwing exception in
42 on $condvar->recv, not a useless line in Coro::AnyEvent.
43
446.56 Thu Feb 20 19:40:07 CET 2020
45 - Coro::EV::time*once functions used ev_once, which is not cancelable.
46 This could cause problems due to I/O watchers not being stopped up
47 on exceptions/cancellation.
48
496.55 Fri Jul 19 17:28:09 CEST 2019
50 - Coro::RWLock woke up only one reader instead of all after a wrlock
51 (analyzed and patch by Maxim Skorobogatov).
52 - slightly improved documentation of Coro::RWLock and RWLock testcase.
53 - quickly (re)-ported to minix 3.3 before minix crashed again.
54
556.54 Sun Dec 16 11:06:07 CET 2018
56 - reinstate Coro::Select::select prototype - it breaks more than it fixes.
57
586.53 Sun Dec 16 10:33:15 CET 2018
59 - the autogenerated prototypes of Coro::AIO now add ";" at the end
60 to avoid generating named unary operators and messing up parsing
61 (mostly affects aio_mlockall 4 | 8 which was parsed as
62 (aio_mlockall 4) | 8).
63 - do not use a prototype for select in Coro::Select, as CORE::select also
64 doesn't have one.
65
666.52 Tue Aug 14 18:49:43 CEST 2018
67 - libcoro update: allow sharing of coro threads using the pthreads
68 backend among different pthreads, as is required by Coro::Multicore.
69 - always allow ->call and ->eval when the coro is the current coroutine. this
70 makes it possible, among other things, to call these on $Coro::main.
71 - minor code cleanups.
72
736.514 Thu Aug 31 18:25:31 CEST 2017
74 - safe_cancel no longer croaks when called on already-destroyed
75 thread, but instead "just works".
76
776.513 Sat Jul 15 01:18:51 CEST 2017
78 - experimental 5.22 comaptibility changes (PadlistNAMES).
79 - removed attributes example and made sure the other examples
80 still work.
81 - fix some statevar types for newer perls, should be of no consequence.
82
836.512 Fri Jul 14 05:03:17 CEST 2017
84 - seems to pass test suite down till 5.8.9, so make this the
85 minimum requirement in Makefile.PL.
86 - experimental 5.24 compatibility changes (SUB_ARGARRAY).
87 - experimental 5.26 compatibility changes (PL_comppad -> PADOFFSET).
88 - disable FORTIFY_SOURCE to avoid broken (but well-intentioned)
89 fortified longjmp variants in some libcs.
90 - re-try JIT allocation without PROT_EXEC, to hopefully improve
91 portability (still doesn't seem to work around broken selinux
92 mmap everywhere).
93 - speling fixes (Xavier Guimard).
94
956.511 Sun Jun 26 23:44:50 CEST 2016
96 - make it compile with threaded perls again.
97 - simplify and speed up __DIE__ and __WARN__ handling.
98
996.51 Sat Jun 25 20:57:20 CEST 2016
100 - 6.5 release didn't compile on most older perls due to
101 a logic error enabling experimental 5.24 code for all versions.
102 - since various broken or deficient patches float around
103 to work around the vtbl API breakage in perl, let's provide
104 our own workaround, which seems to be much less invasive
105 and more compatible than the approaches seen so far. YMMV.
106 - work around assertion failure in perl_destruct on 5.24
107 (analyzed by Dave Mitchell).
108
1096.5 Wed Jun 22 22:23:50 CEST 2016
110 - swap_sv swapping order was not symmetrical, causing
111 wrong swaps when swap_sv was used multiple times on the
112 same sv in the same thread.
113 - swap_sv calls can now be undone by calling it again
114 with the same variables.
115 - swap_sv calls will now be undone in async_pool threads.
116 - split Coro::Semaphore::up/adjust into separate xs functions
117 for better error reporting, at slight codesize increase.
118 - (libcoro) arm assembly support, please test and report.
119 - adjust to PL_savestack changes in perl 5.24 (adapted from
120 the debian patch, which unfortunately gets it wrong).
121
1226.49 Sat Oct 17 01:40:12 CEST 2015
123 - throwing an exception to a thread waiting in
124 Coro::Handle using Coro::EV did not stop the watchers,
125 causing the next call to fail (testcase by Martin Pritchard).
126 - bump minimum perl version to 5.10.
127
1286.48 Sun Oct 4 19:03:51 CEST 2015
129 - fix memory leak when Coro::Handle uses Coro::EV internally
130 (testcase by Sten Sten).
131 - update code to libev 4 API (internally, Coro still used the
132 version 3 API calls).
133 - remove unused hv_sig.
134
1356.47 Sat Jul 11 03:58:20 CEST 2015
136 - swap_svs - NVs can be in the SV head beginning with 5.20.
137
1386.46 Tue Jun 30 14:36:30 CEST 2015
139 - restore portability to perls with windows fork emulation
140 (patch by Petr Písař).
141
1426.45 Tue Jun 30 01:40:08 CEST 2015
143 - restore portability to perl 5.16 and below.
144
1456.44 Tue Jun 30 00:41:54 CEST 2015
146 - avoid segfaulting (or worse) when tracing a canceled thread.
147 - the Event module silently broke it's public hook API, causing
148 failures on perls compiled with -Duselongdouble. Requiring
149 the latest version of Event because I don't know which release
150 changed this (it's not mentioned in the ChangeLog).
151 - allow xs level enterleave hooks via CoroAPI.
152
1536.43 Thu Jun 4 15:38:14 CEST 2015
154 - use stability canary.
155 - port to stableperl-5.22.0-1.001.
156 - update libecb.
157
1586.42 Wed Feb 11 20:29:52 CET 2015
159 - Coro::SemaphoreSet->try did not actually work (analyzed by
160 SATO Kentaro).
161 - upgrade libecb to be C11 compliant.
162
1636.41 Sat Sep 6 22:08:46 CEST 2014
164 - restore portability to perl 5.8.x.
165 - give new Coro's a valid GvHV(PL_hintgv) - this is slow and takes
166 up some memory, but fixes "use feature" and similar modules
167 when used inside a Coro.
168 - allow zero as argument to Coro::Channel to mean the same thing
169 as no argument. this works with older versions as well,
170 but wasn't legal until now.
171 - slightly better c header file detection.
172
1736.39 Mon Jun 2 00:00:08 CEST 2014
174 - work around more incompatible changes in 5.20.
175
1766.38 Sun Jun 1 21:54:23 CEST 2014
177 - check that perl slots actually have enough space to hold
178 interpreter variables.
179 - untested port to perl 5.19 (64 bit tmps indices) (reported
180 by Andreas König).
181 - croak when cancel is called without a thread context.
182
1836.37 Tue Mar 4 13:27:33 CET 2014
184 - *sigh*, removed leftover debugging code from debugging a
185 perl bug, of all things.
186
1876.36 Tue Mar 4 07:11:59 CET 2014
188 - semaphores would not clear the destroy hook when interrupted
189 by ->throw, causing segfaults or worse.
190 - ->throw on a thread waiting for a semaphore did not acquire
191 the semaphore, but also didn't wake up other waiters,
192 possibly causing a deadlock.
193 - "FATAL: $Coro::IDLE blocked itself" will now use Carp::confess
194 to report a full stacktrace, which should help find out
195 where the actual call is.
196 - "atomically" destroy data in slf_destroy, because it is
197 the right thing to do, just in case.
198 - disable ecb.h libm dependency, to compile on ancient systems
199 or under adverse conditions.
200
2016.33 Mon Nov 18 11:26:27 CET 2013
202 - do not crash when freeing padlists with holes (in 5.18).
203 - tentative SVt_BIND 5.19 port/fix.
204
2056.32 Tue Nov 5 15:35:35 CET 2013
206 - use a new algorithm to derive padlists for perl 5.18. The old
207 one could lead to 0-pointer accesses inside perl (reported
208 by Darin McBride).
209
2106.31 Thu May 9 07:39:48 CEST 2013
211 - Coro::AIO requests would crash if the thread was ready'd
212 while the request was ongoing.
213
2146.29 Wed May 8 02:55:18 CEST 2013
215 - when an on_destroy handler destructs the coro currently being
216 destructed a perl scalar could be accessed after being freed,
217 likely causing a crash.
218
2196.28 Wed Mar 6 06:58:02 CET 2013
220 - clean remnants of existing __DIE__ and __WARN__ handlers so
221 they lose their magic and will not cause segfaults later
222 (testcase by Andrey Sagulin).
223 - improved Coro::State documentation a bit.
224 - Coro::Debug::command now flushes the output.
225 - add hack detection code for x32 abi, because the braindead slugs
226 who designed that made it look exactly like x86_64 without
227 providing proper compile time symbols to test for it. as a result,
228 this detection cannot work reliably.
229 - valgrind stack registering was broken.
230 - do not rely on Time::HiRes anymore in Coro::Debug.
231
2326.23 Fri Dec 7 23:36:37 CET 2012
233 - use experimental fiber implementation on native windows
234 perls.
235 - use sizeof (void *) as multiplication factor for stack sizes,
236 to accomodate the totally braindamaged microsoft 64 bit "os".
237 - changed verifier host from win2k-ap510-32 to win7-sp516-32/64.
238 activeperl 5.16 crashes when PerlIO_define_layer is called due
239 to some bug in the perl dll, strawberry perl at least passes
240 the testsuite.
241 - implement Coro::Handle->peeraddr/host/port, for slightly
242 improved compatibility with LWP.
243 - implement 5.17 compatibility by almost blindly applying a
244 good-looking patch by Father Chrysostomos.
245 - move stack management functions into libcoro 3.
246 - libcoro version 3 "released".
247 - support magic values as timed_io_once args.
248 - recommend AnyEvent 7+ or EV 4+, also require EV
249 version 4 or newer for Coro::EV.
250
2516.10 Tue Oct 9 01:14:27 CEST 2012
252 - updated ecb.h, it had a typo that caused it to not compile on many
253 big endian systems (reported by many people).
254 - disable memory fences in ecb.h to improve portability.
255
2566.09 Sat Oct 6 23:25:02 CEST 2012
257 - Coro::EV I/O watchers were not interruptible by exceptions
258 (Coro::State::throw) (testcase by sten).
259 - ->throw now puts threads into the ready queue, as this seems to
260 be expected by existing code, and code that doesn't cope with spurious
261 wakeups needs fixing anyway.
8 - use fd = -1 in mmap. 262 - use fd -1 in mmap.
9 - cast I32 to int in error message printf. 263 - cast I32 to int in error message printf.
264 - warn about broken so-called "hardened" kernels.
10 265
116.08 Fri Apr 13 12:05:47 CEST 2012 2666.08 Fri Apr 13 12:05:47 CEST 2012
12 - be more aggressive about exiting like perl does - formerly, 267 - be more aggressive about exiting like perl does - formerly,
13 exiting from the non-main thread would not execute END blocks. 268 exiting from the non-main thread would not execute END blocks.
14 269
49 handle and barfed. now it's just a bit slower on gentoo and similar 304 handle and barfed. now it's just a bit slower on gentoo and similar
50 systems. 305 systems.
51 306
526.01 Sun Jul 3 12:31:14 CEST 2011 3076.01 Sun Jul 3 12:31:14 CEST 2011
53 - workarounds are good, but the test for whether pthreads are used 308 - workarounds are good, but the test for whether pthreads are used
54 was not good. thisone should be better. 309 was not good. this one should be better.
55 - check differently whether gcc generates cfi instructions itself. 310 - check differently whether gcc generates cfi instructions itself.
56 311
576.0 Wed Jun 29 19:43:35 CEST 2011 3126.0 Wed Jun 29 19:43:35 CEST 2011
58 - INCOMPATIBLE CHANGE: unreferenced coro objects will now be 313 - INCOMPATIBLE CHANGE: unreferenced coro objects will now be
59 destroyed and cleaned up automatically (e.g. async { schedule }). 314 destroyed and cleaned up automatically (e.g. async { schedule }).
60 - implement a JIT compiler for part of the thread switch code, 315 - implement a JIT compiler for part of the thread switch code,
61 which gives a 50% speed improvement on threaded perls, and 316 which gives a 50% speed improvement on threaded perls, and
62 about 4% on non-thraeded perls (so threaded perls now finally 317 about 4% on non-threaded perls (so threaded perls now finally
63 reach about half the speed of non-threaded perls). 318 reach about half the speed of non-threaded perls).
64 - slightly modernise Coro::Intro, add section about rouse functions. 319 - slightly modernise Coro::Intro, add section about rouse functions.
65 - avoid DEFSV and ERRSV, giving another 10% improvement 320 - avoid DEFSV and ERRSV, giving another 10% improvement
66 in thread switching. 321 in thread switching.
67 - Coro::State->is_destroyed is now called is_zombie. 322 - Coro::State->is_destroyed is now called is_zombie.
421 - ->throw is now supported on Coro::State objects. 676 - ->throw is now supported on Coro::State objects.
422 - clean up cctx creation code a bit. 677 - clean up cctx creation code a bit.
423 - entersub is actually a UNOP, not a LOGOP (not a bugfix). 678 - entersub is actually a UNOP, not a LOGOP (not a bugfix).
424 679
4254.9 Sat Nov 8 17:45:27 CET 2008 6804.9 Sat Nov 8 17:45:27 CET 2008
426 - (libcoro) did not preserve rbp with CORO_ASM (we are getting there). 681 - (libcoro) did not preserve rbp with CORO_ASM (we are getting there).
427 - (libcoro) no longer leak threads in the experimental pthread backend, 682 - (libcoro) no longer leak threads in the experimental pthread backend,
428 also speed it up considerably. 683 also speed it up considerably.
429 - (libcoro) do not rely on makecontext passing void *'s unscathed. 684 - (libcoro) do not rely on makecontext passing void *'s unscathed.
430 - fix compiletime dependencies on libcoro in the Makefile. 685 - fix compiletime dependencies on libcoro in the Makefile.
431 - cctx_count wasn't always updated properly. 686 - cctx_count wasn't always updated properly.
493 - remove debugging code related to MgPV_nolen_const, also try to 748 - remove debugging code related to MgPV_nolen_const, also try to
494 make it compile with perl 5.8.6 (yes, apple apparently loves 749 make it compile with perl 5.8.6 (yes, apple apparently loves
495 outdated software). Reported by John S. 750 outdated software). Reported by John S.
496 751
4974.744 Tue Jul 8 22:06:35 CEST 2008 7524.744 Tue Jul 8 22:06:35 CEST 2008
498 - correctly provide default DIE/WARN handlers as documented. 753 - correctly provide default DIE/WARN handlers as documented.
499 - also overwrite PL_vtbl_sigelem.svt_clear, even though current 754 - also overwrite PL_vtbl_sigelem.svt_clear, even though current
500 implementations inside perl work fine for us. 755 implementations inside perl work fine for us.
501 756
5024.743 Mon Jun 16 00:21:57 CEST 2008 7574.743 Mon Jun 16 00:21:57 CEST 2008
503 - when using Coro::EV without running EV::loop it could 758 - when using Coro::EV without running EV::loop it could
525 - sprinkle "no warnings" freely over everything, also suppress 780 - sprinkle "no warnings" freely over everything, also suppress
526 warnings for some other modules. 781 warnings for some other modules.
527 - fix typo in WSAEWOULDBLOCK. 782 - fix typo in WSAEWOULDBLOCK.
528 783
5294.72 Sun May 25 05:14:36 CEST 2008 7844.72 Sun May 25 05:14:36 CEST 2008
530 - tweak META.yaml a bit, unfortunately, there is no documented way 785 - tweak META.yaml a bit, unfortunately, there is no documented way
531 to have optional dependencies with CPAN. doh :( 786 to have optional dependencies with CPAN. doh :(
532 - avoid running some tests on windows because they would fail due to 787 - avoid running some tests on windows because they would fail due to
533 perl bug (broken fork, broken pipes...). 788 perl bug (broken fork, broken pipes...).
534 - work around perl on windows bugs where perl returns undocumented 789 - work around perl on windows bugs where perl returns undocumented
535 error codes for sysread, syswrite etc. by taking advantage 790 error codes for sysread, syswrite etc. by taking advantage
539 - use unix domain sockets in testsuite to work around 794 - use unix domain sockets in testsuite to work around
540 common perl implementation bugs on widows (they are emulated by 795 common perl implementation bugs on widows (they are emulated by
541 tcp sockets on windows. ugh.) 796 tcp sockets on windows. ugh.)
542 797
5434.71 Sat May 24 20:01:27 CEST 2008 7984.71 Sat May 24 20:01:27 CEST 2008
544 - fix a bug in Coro::AnyEvent ("Usage: Coro::AnyEvent::_schedule()"). 799 - fix a bug in Coro::AnyEvent ("Usage: Coro::AnyEvent::_schedule()").
545 - take advantage of async name resolution of AnyEvent::Util. 800 - take advantage of async name resolution of AnyEvent::Util.
546 - work around brutal inet_aton override in Coro::LWP. 801 - work around brutal inet_aton override in Coro::LWP.
547 - take advantage of the readyhook in Coro::EV, for smoother 802 - take advantage of the readyhook in Coro::EV, for smoother
548 scheduling. 803 scheduling.
549 804
5504.7 Sun May 11 00:32:19 CEST 2008 8054.7 Sun May 11 00:32:19 CEST 2008
551 - completely reworked the Coro manpage. 806 - completely reworked the Coro manpage.
552 - added Coro::AnyEvent, generic event loop integration. 807 - added Coro::AnyEvent, generic event loop integration.
553 - implement cancel, ready and kill commands in Coro::Debug. 808 - implement cancel, ready and kill commands in Coro::Debug.
554 - document find_coro in Coro::Debug. 809 - document find_coro in Coro::Debug.
555 - incompatible change: rename has_stack to has_cctx. 810 - incompatible change: rename has_stack to has_cctx.
556 - Coro::AIO and Coro::BDB no longer force event model detection, 811 - Coro::AIO and Coro::BDB no longer force event model detection,
557 use AnyEvent::AIO and AnyEvent::BDB. 812 use AnyEvent::AIO and AnyEvent::BDB.
681 936
6824.11 Thu Oct 11 02:40:24 CEST 2007 9374.11 Thu Oct 11 02:40:24 CEST 2007
683 - port to threaded perls. 938 - port to threaded perls.
684 939
6854.1 Thu Oct 11 02:38:16 CEST 2007 9404.1 Thu Oct 11 02:38:16 CEST 2007
686 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now 941 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now
687 be local to each coro (see Coro::State). 942 be local to each coro (see Coro::State).
688 - incompatible change: for very deep reasons, cede and cede_notself 943 - incompatible change: for very deep reasons, cede and cede_notself
689 cannot return anything, so nothing will be returned. 944 cannot return anything, so nothing will be returned.
690 - possibly bring back 5.10 compatibility (untested). 945 - possibly bring back 5.10 compatibility (untested).
691 - work around stupid (and wrong) warning on 5.10 :(. 946 - work around stupid (and wrong) warning on 5.10 :(.
763 but stateful semantics. 1018 but stateful semantics.
764 - fixed a lot of typos in Coro.pm (patch submitted by David 1019 - fixed a lot of typos in Coro.pm (patch submitted by David
765 Steinbrunner, which applied flawlessly). 1020 Steinbrunner, which applied flawlessly).
766 1021
7673.6 Sat Apr 14 17:13:31 CEST 2007 10223.6 Sat Apr 14 17:13:31 CEST 2007
768 - added some bugfixes to get eg/myhttpd working again. 1023 - added some bugfixes to get eg/myhttpd working again.
769 - added Coro::Storable for often-cede'ing freeze/thaw. 1024 - added Coro::Storable for often-cede'ing freeze/thaw.
770 - try to do a clean exit when a coroutine calls exit 1025 - try to do a clean exit when a coroutine calls exit
771 (EXPERIMENTAL). 1026 (EXPERIMENTAL).
772 - got rid of indirect call through _coro_init. 1027 - got rid of indirect call through _coro_init.
773 - updated the partly antique examples in eg/ to 1028 - updated the partly antique examples in eg/ to

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines