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

Comparing Coro/Changes (file contents):
Revision 1.555 by root, Fri Apr 29 15:43:26 2011 UTC vs.
Revision 1.684 by root, Sat Feb 29 21:40:22 2020 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 5TODO: __GCC_HAVE_DWARF2_CFI_ASM
6TODO: cancel calling another coro that cancels ourselves => crash (CF_DELAYCANCEL?) -> canceltest 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
116.56 Thu Feb 20 19:40:07 CET 2020
12 - Coro::EV::time*once functions used ev_once, which is not cancelable.
13 This could cause problems due to I/O watchers not being stopped up
14 on exceptions/cancellation.
15
166.55 Fri Jul 19 17:28:09 CEST 2019
17 - Coro::RWLock woke up only one reader instead of all after a wrlock
18 (analyzed and patch by Maxim Skorobogatov).
19 - slightly improved documentation of Coro::RWLock and RWLock testcase.
20 - quickly (re)-ported to minix 3.3 before minix crashed again.
21
226.54 Sun Dec 16 11:06:07 CET 2018
23 - reinstate Coro::Select::select prototype - it breaks more than it fixes.
24
256.53 Sun Dec 16 10:33:15 CET 2018
26 - the autogenerated prototypes of Coro::AIO now add ";" at the end
27 to avoid generating named unary operators and messing up parsing
28 (mostly affects aio_mlockall 4 | 8 which was parsed as
29 (aio_mlockall 4) | 8).
30 - do not use a prototype for select in Coro::Select, as CORE::select also
31 doesn't have one.
32
336.52 Tue Aug 14 18:49:43 CEST 2018
34 - libcoro update: allow sharing of coro threads using the pthreads
35 backend among different pthreads, as is required by Coro::Multicore.
36 - always allow ->call and ->eval when the coro is the current coroutine. this
37 makes it possible, among other things, to call these on $Coro::main.
38 - minor code cleanups.
39
406.514 Thu Aug 31 18:25:31 CEST 2017
41 - safe_cancel no longer croaks when called on already-destroyed
42 thread, but instead "just works".
43
446.513 Sat Jul 15 01:18:51 CEST 2017
45 - experimental 5.22 comaptibility changes (PadlistNAMES).
46 - removed attributes example and made sure the other examples
47 still work.
48 - fix some statevar types for newer perls, should be of no consequence.
49
506.512 Fri Jul 14 05:03:17 CEST 2017
51 - seems to pass test suite down till 5.8.9, so make this the
52 minimum requirement in Makefile.PL.
53 - experimental 5.24 compatibility changes (SUB_ARGARRAY).
54 - experimental 5.26 compatibility changes (PL_comppad -> PADOFFSET).
55 - disable FORTIFY_SOURCE to avoid broken (but well-intentioned)
56 fortified longjmp variants in some libcs.
57 - re-try JIT allocation without PROT_EXEC, to hopefully improve
58 portability (still doesn't seem to work around broken selinux
59 mmap everywhere).
60 - speling fixes (Xavier Guimard).
61
626.511 Sun Jun 26 23:44:50 CEST 2016
63 - make it compile with threaded perls again.
64 - simplify and speed up __DIE__ and __WARN__ handling.
65
666.51 Sat Jun 25 20:57:20 CEST 2016
67 - 6.5 release didn't compile on most older perls due to
68 a logic error enabling experimental 5.24 code for all versions.
69 - since various broken or deficient patches float around
70 to work around the vtbl API breakage in perl, let's provide
71 our own workaround, which seems to be much less invasive
72 and more compatible than the approaches seen so far. YMMV.
73 - work around assertion failure in perl_destruct on 5.24
74 (analyzed by Dave Mitchell).
75
766.5 Wed Jun 22 22:23:50 CEST 2016
77 - swap_sv swapping order was not symmetrical, causing
78 wrong swaps when swap_sv was used multiple times on the
79 same sv in the same thread.
80 - swap_sv calls can now be undone by calling it again
81 with the same variables.
82 - swap_sv calls will now be undone in async_pool threads.
83 - split Coro::Semaphore::up/adjust into separate xs functions
84 for better error reporting, at slight codesize increase.
85 - (libcoro) arm assembly support, please test and report.
86 - adjust to PL_savestack changes in perl 5.24 (adapted from
87 the debian patch, which unfortunately gets it wrong).
88
896.49 Sat Oct 17 01:40:12 CEST 2015
90 - throwing an exception to a thread waiting in
91 Coro::Handle using Coro::EV did not stop the watchers,
92 causing the next call to fail (testcase by Martin Pritchard).
93 - bump minimum perl version to 5.10.
94
956.48 Sun Oct 4 19:03:51 CEST 2015
96 - fix memory leak when Coro::Handle uses Coro::EV internally
97 (testcase by Sten Sten).
98 - update code to libev 4 API (internally, Coro still used the
99 version 3 API calls).
100 - remove unused hv_sig.
101
1026.47 Sat Jul 11 03:58:20 CEST 2015
103 - swap_svs - NVs can be in the SV head beginning with 5.20.
104
1056.46 Tue Jun 30 14:36:30 CEST 2015
106 - restore portability to perls with windows fork emulation
107 (patch by Petr Písař).
108
1096.45 Tue Jun 30 01:40:08 CEST 2015
110 - restore portability to perl 5.16 and below.
111
1126.44 Tue Jun 30 00:41:54 CEST 2015
113 - avoid segfaulting (or worse) when tracing a canceled thread.
114 - the Event module silently broke it's public hook API, causing
115 failures on perls compiled with -Duselongdouble. Requiring
116 the latest version of Event because I don't know which release
117 changed this (it's not mentioned in the ChangeLog).
118 - allow xs level enterleave hooks via CoroAPI.
119
1206.43 Thu Jun 4 15:38:14 CEST 2015
121 - use stability canary.
122 - port to stableperl-5.22.0-1.001.
123 - update libecb.
124
1256.42 Wed Feb 11 20:29:52 CET 2015
126 - Coro::SemaphoreSet->try did not actually work (analyzed by
127 SATO Kentaro).
128 - upgrade libecb to be C11 compliant.
129
1306.41 Sat Sep 6 22:08:46 CEST 2014
131 - restore portability to perl 5.8.x.
132 - give new Coro's a valid GvHV(PL_hintgv) - this is slow and takes
133 up some memory, but fixes "use feature" and similar modules
134 when used inside a Coro.
135 - allow zero as argument to Coro::Channel to mean the same thing
136 as no argument. this works with older versions as well,
137 but wasn't legal until now.
138 - slightly better c header file detection.
139
1406.39 Mon Jun 2 00:00:08 CEST 2014
141 - work around more incompatible changes in 5.20.
142
1436.38 Sun Jun 1 21:54:23 CEST 2014
144 - check that perl slots actually have enough space to hold
145 interpreter variables.
146 - untested port to perl 5.19 (64 bit tmps indices) (reported
147 by Andreas König).
148 - croak when cancel is called without a thread context.
149
1506.37 Tue Mar 4 13:27:33 CET 2014
151 - *sigh*, removed leftover debugging code from debugging a
152 perl bug, of all things.
153
1546.36 Tue Mar 4 07:11:59 CET 2014
155 - semaphores would not clear the destroy hook when interrupted
156 by ->throw, causing segfaults or worse.
157 - ->throw on a thread waiting for a semaphore did not acquire
158 the semaphore, but also didn't wake up other waiters,
159 possibly causing a deadlock.
160 - "FATAL: $Coro::IDLE blocked itself" will now use Carp::confess
161 to report a full stacktrace, which should help find out
162 where the actual call is.
163 - "atomically" destroy data in slf_destroy, because it is
164 the right thing to do, just in case.
165 - disable ecb.h libm dependency, to compile on ancient systems
166 or under adverse conditions.
167
1686.33 Mon Nov 18 11:26:27 CET 2013
169 - do not crash when freeing padlists with holes (in 5.18).
170 - tentative SVt_BIND 5.19 port/fix.
171
1726.32 Tue Nov 5 15:35:35 CET 2013
173 - use a new algorithm to derive padlists for perl 5.18. The old
174 one could lead to 0-pointer accesses inside perl (reported
175 by Darin McBride).
176
1776.31 Thu May 9 07:39:48 CEST 2013
178 - Coro::AIO requests would crash if the thread was ready'd
179 while the request was ongoing.
180
1816.29 Wed May 8 02:55:18 CEST 2013
182 - when an on_destroy handler destructs the coro currently being
183 destructed a perl scalar could be accessed after being freed,
184 likely causing a crash.
185
1866.28 Wed Mar 6 06:58:02 CET 2013
187 - clean remnants of existing __DIE__ and __WARN__ handlers so
188 they lose their magic and will not cause segfaults later
189 (testcase by Andrey Sagulin).
190 - improved Coro::State documentation a bit.
191 - Coro::Debug::command now flushes the output.
192 - add hack detection code for x32 abi, because the braindead slugs
193 who designed that made it look exactly like x86_64 without
194 providing proper compile time symbols to test for it. as a result,
195 this detection cannot work reliably.
196 - valgrind stack registering was broken.
197 - do not rely on Time::HiRes anymore in Coro::Debug.
198
1996.23 Fri Dec 7 23:36:37 CET 2012
200 - use experimental fiber implementation on native windows
201 perls.
202 - use sizeof (void *) as multiplication factor for stack sizes,
203 to accomodate the totally braindamaged microsoft 64 bit "os".
204 - changed verifier host from win2k-ap510-32 to win7-sp516-32/64.
205 activeperl 5.16 crashes when PerlIO_define_layer is called due
206 to some bug in the perl dll, strawberry perl at least passes
207 the testsuite.
208 - implement Coro::Handle->peeraddr/host/port, for slightly
209 improved compatibility with LWP.
210 - implement 5.17 compatibility by almost blindly applying a
211 good-looking patch by Father Chrysostomos.
212 - move stack management functions into libcoro 3.
213 - libcoro version 3 "released".
214 - support magic values as timed_io_once args.
215 - recommend AnyEvent 7+ or EV 4+, also require EV
216 version 4 or newer for Coro::EV.
217
2186.10 Tue Oct 9 01:14:27 CEST 2012
219 - updated ecb.h, it had a typo that caused it to not compile on many
220 big endian systems (reported by many people).
221 - disable memory fences in ecb.h to improve portability.
222
2236.09 Sat Oct 6 23:25:02 CEST 2012
224 - Coro::EV I/O watchers were not interruptible by exceptions
225 (Coro::State::throw) (testcase by sten).
226 - ->throw now puts threads into the ready queue, as this seems to
227 be expected by existing code, and code that doesn't cope with spurious
228 wakeups needs fixing anyway.
229 - use fd -1 in mmap.
230 - cast I32 to int in error message printf.
231 - warn about broken so-called "hardened" kernels.
232
2336.08 Fri Apr 13 12:05:47 CEST 2012
234 - be more aggressive about exiting like perl does - formerly,
235 exiting from the non-main thread would not execute END blocks.
236
2376.07 Fri Nov 11 21:21:48 CET 2011
238 - work around a bug in PerlIO (setting $SIG{__WARN__} to a PVCV).
239 - update ecb.h.
240
2416.06 Mon Aug 8 23:59:48 CEST 2011
242 - cygwin unfortunately patches the stack at runtime, so we use the pthreads
243 backend, which is an order of magnitude slower. unfortunately, cygwins
244 pthread implementation isn't very complete either, so allocate the stack
245 twice just to be sure.
246 (note: cygwin also enables mymalloc, which is NOT THREADSAFE ON WINDOWS,
247 in its ithreaded perl - best recompile cygwin and use the 'w'indows
248 backend for much better performance. also disable ithreads for
249 even better performance...).
250
2516.05 Thu Aug 4 21:36:36 CEST 2011
252 - blush, condvar values would not be propagated from send to recv anymore
253 (reported by Chip Salzenberg).
254 - use exponential increase for the readline buffer length in
255 Coro::Handle. also reduce initial allocation to 1020 from 4096 bytes.
256
2576.04 Wed Aug 3 17:15:45 CEST 2011
258 - use even more efficient and more compatible condvars for
259 compatibility to AnyEvent 6.x :)
260 - more inconsequential ecb.h updates.
261
2626.03 Wed Aug 3 11:41:30 CEST 2011
263 - change how Coro patches AnyEvent condvars for compatibility to
264 AnyEvent 6.x.
265 - update ecb.h, to no longer include <pthread.h> in case WinNT.h
266 hasn't been included.
267
2686.02 Wed Jul 13 04:35:19 CEST 2011
269 - "improve portability to Gentoo" - gentoo manages to put perl variables
270 in memory areas that are farther than 2gb apart, which the jit couldn't
271 handle and barfed. now it's just a bit slower on gentoo and similar
272 systems.
273
2746.01 Sun Jul 3 12:31:14 CEST 2011
275 - workarounds are good, but the test for whether pthreads are used
276 was not good. this one should be better.
277 - check differently whether gcc generates cfi instructions itself.
278
2796.0 Wed Jun 29 19:43:35 CEST 2011
280 - INCOMPATIBLE CHANGE: unreferenced coro objects will now be
281 destroyed and cleaned up automatically (e.g. async { schedule }).
282 - implement a JIT compiler for part of the thread switch code,
283 which gives a 50% speed improvement on threaded perls, and
284 about 4% on non-threaded perls (so threaded perls now finally
285 reach about half the speed of non-threaded perls).
286 - slightly modernise Coro::Intro, add section about rouse functions.
287 - avoid DEFSV and ERRSV, giving another 10% improvement
288 in thread switching.
289 - Coro::State->is_destroyed is now called is_zombie.
290 - implement a Coro->safe_cancel method that might fail, but
291 cancels in a "safer" way if it succeeds.
292 - add preliminary support for DEBUGGING perls.
293 - get rid of two hash-accesses when initialising a new Coro - this
294 speeds up coro creation by almost a factor of two.
295 - croak when a coro that is being cancelled tries to block
296 (e.g. while executing a guard block), instead of crashing or
297 deadlocking.
298 - use a more robust and also faster method to identify Coro::State
299 objects - speeds up everything a bit.
8 - implement Coro->cancel in XS for a 20% speed improvement, and to 300 - implement Coro->cancel in XS for a 20% speed improvement, and to
9 be able to implement mutual cancellation. 301 be able to implement mutual cancellation.
302 - speed up context switches by a percent or two by more efficiently
303 allocating context stack entries.
304 - implement Coro->join and Coro->on_destroy in XS for a speedup and
305 a reduction in memory use.
306 - cancelling a coro while it itself is cancelling another coro is
307 now supported and working, instead of triggering an assertion.
10 - be a bit more crash-resistant when calling (buggy) on_destroy 308 - be a bit more crash-resistant when calling (buggy) on_destroy
11 callbacks (best effort). 309 callbacks (best effort).
310 - move on_destroy into the slf_frame, to allow extension slf
311 functions to have destructors.
312 - get rid if coro refcounting - simply crash in other interpreter
313 threads by nulling the pointers on clone.
314 - simplify warn/die hook handling when loading Coro - the convoluted
315 logic seems to be no longer neccessary.
316 - use libecb instead of our own home-grown gcc hacks.
317 - document alternatives to Coro::LWP. Please use them :)
318 - work around another mindless idiotic NEEDLESS bug in openbsd/mirbsds
319 sigaltstack. Really. wine suffers from it, erlang suffers from it,
320 and it's known since at least 2006.
12 321
135.372 Wed Feb 23 06:14:30 CET 2011 3225.372 Wed Feb 23 06:14:30 CET 2011
14 - apparently mingw doesn't provide a working gettimeofday, try to 323 - apparently mingw doesn't provide a working gettimeofday, try to
15 work around that by relying on Time::HiRes (indirectly brought to 324 work around that by relying on Time::HiRes (indirectly brought to
16 my attention by Max Maischein). 325 my attention by Max Maischein).
334 - ->throw is now supported on Coro::State objects. 643 - ->throw is now supported on Coro::State objects.
335 - clean up cctx creation code a bit. 644 - clean up cctx creation code a bit.
336 - entersub is actually a UNOP, not a LOGOP (not a bugfix). 645 - entersub is actually a UNOP, not a LOGOP (not a bugfix).
337 646
3384.9 Sat Nov 8 17:45:27 CET 2008 6474.9 Sat Nov 8 17:45:27 CET 2008
339 - (libcoro) did not preserve rbp with CORO_ASM (we are getting there). 648 - (libcoro) did not preserve rbp with CORO_ASM (we are getting there).
340 - (libcoro) no longer leak threads in the experimental pthread backend, 649 - (libcoro) no longer leak threads in the experimental pthread backend,
341 also speed it up considerably. 650 also speed it up considerably.
342 - (libcoro) do not rely on makecontext passing void *'s unscathed. 651 - (libcoro) do not rely on makecontext passing void *'s unscathed.
343 - fix compiletime dependencies on libcoro in the Makefile. 652 - fix compiletime dependencies on libcoro in the Makefile.
344 - cctx_count wasn't always updated properly. 653 - cctx_count wasn't always updated properly.
406 - remove debugging code related to MgPV_nolen_const, also try to 715 - remove debugging code related to MgPV_nolen_const, also try to
407 make it compile with perl 5.8.6 (yes, apple apparently loves 716 make it compile with perl 5.8.6 (yes, apple apparently loves
408 outdated software). Reported by John S. 717 outdated software). Reported by John S.
409 718
4104.744 Tue Jul 8 22:06:35 CEST 2008 7194.744 Tue Jul 8 22:06:35 CEST 2008
411 - correctly provide default DIE/WARN handlers as documented. 720 - correctly provide default DIE/WARN handlers as documented.
412 - also overwrite PL_vtbl_sigelem.svt_clear, even though current 721 - also overwrite PL_vtbl_sigelem.svt_clear, even though current
413 implementations inside perl work fine for us. 722 implementations inside perl work fine for us.
414 723
4154.743 Mon Jun 16 00:21:57 CEST 2008 7244.743 Mon Jun 16 00:21:57 CEST 2008
416 - when using Coro::EV without running EV::loop it could 725 - when using Coro::EV without running EV::loop it could
438 - sprinkle "no warnings" freely over everything, also suppress 747 - sprinkle "no warnings" freely over everything, also suppress
439 warnings for some other modules. 748 warnings for some other modules.
440 - fix typo in WSAEWOULDBLOCK. 749 - fix typo in WSAEWOULDBLOCK.
441 750
4424.72 Sun May 25 05:14:36 CEST 2008 7514.72 Sun May 25 05:14:36 CEST 2008
443 - tweak META.yaml a bit, unfortunately, there is no documented way 752 - tweak META.yaml a bit, unfortunately, there is no documented way
444 to have optional dependencies with CPAN. doh :( 753 to have optional dependencies with CPAN. doh :(
445 - avoid running some tests on windows because they would fail due to 754 - avoid running some tests on windows because they would fail due to
446 perl bug (broken fork, broken pipes...). 755 perl bug (broken fork, broken pipes...).
447 - work around perl on windows bugs where perl returns undocumented 756 - work around perl on windows bugs where perl returns undocumented
448 error codes for sysread, syswrite etc. by taking advantage 757 error codes for sysread, syswrite etc. by taking advantage
452 - use unix domain sockets in testsuite to work around 761 - use unix domain sockets in testsuite to work around
453 common perl implementation bugs on widows (they are emulated by 762 common perl implementation bugs on widows (they are emulated by
454 tcp sockets on windows. ugh.) 763 tcp sockets on windows. ugh.)
455 764
4564.71 Sat May 24 20:01:27 CEST 2008 7654.71 Sat May 24 20:01:27 CEST 2008
457 - fix a bug in Coro::AnyEvent ("Usage: Coro::AnyEvent::_schedule()"). 766 - fix a bug in Coro::AnyEvent ("Usage: Coro::AnyEvent::_schedule()").
458 - take advantage of async name resolution of AnyEvent::Util. 767 - take advantage of async name resolution of AnyEvent::Util.
459 - work around brutal inet_aton override in Coro::LWP. 768 - work around brutal inet_aton override in Coro::LWP.
460 - take advantage of the readyhook in Coro::EV, for smoother 769 - take advantage of the readyhook in Coro::EV, for smoother
461 scheduling. 770 scheduling.
462 771
4634.7 Sun May 11 00:32:19 CEST 2008 7724.7 Sun May 11 00:32:19 CEST 2008
464 - completely reworked the Coro manpage. 773 - completely reworked the Coro manpage.
465 - added Coro::AnyEvent, generic event loop integration. 774 - added Coro::AnyEvent, generic event loop integration.
466 - implement cancel, ready and kill commands in Coro::Debug. 775 - implement cancel, ready and kill commands in Coro::Debug.
467 - document find_coro in Coro::Debug. 776 - document find_coro in Coro::Debug.
468 - incompatible change: rename has_stack to has_cctx. 777 - incompatible change: rename has_stack to has_cctx.
469 - Coro::AIO and Coro::BDB no longer force event model detection, 778 - Coro::AIO and Coro::BDB no longer force event model detection,
470 use AnyEvent::AIO and AnyEvent::BDB. 779 use AnyEvent::AIO and AnyEvent::BDB.
594 903
5954.11 Thu Oct 11 02:40:24 CEST 2007 9044.11 Thu Oct 11 02:40:24 CEST 2007
596 - port to threaded perls. 905 - port to threaded perls.
597 906
5984.1 Thu Oct 11 02:38:16 CEST 2007 9074.1 Thu Oct 11 02:38:16 CEST 2007
599 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now 908 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now
600 be local to each coro (see Coro::State). 909 be local to each coro (see Coro::State).
601 - incompatible change: for very deep reasons, cede and cede_notself 910 - incompatible change: for very deep reasons, cede and cede_notself
602 cannot return anything, so nothing will be returned. 911 cannot return anything, so nothing will be returned.
603 - possibly bring back 5.10 compatibility (untested). 912 - possibly bring back 5.10 compatibility (untested).
604 - work around stupid (and wrong) warning on 5.10 :(. 913 - work around stupid (and wrong) warning on 5.10 :(.
676 but stateful semantics. 985 but stateful semantics.
677 - fixed a lot of typos in Coro.pm (patch submitted by David 986 - fixed a lot of typos in Coro.pm (patch submitted by David
678 Steinbrunner, which applied flawlessly). 987 Steinbrunner, which applied flawlessly).
679 988
6803.6 Sat Apr 14 17:13:31 CEST 2007 9893.6 Sat Apr 14 17:13:31 CEST 2007
681 - added some bugfixes to get eg/myhttpd working again. 990 - added some bugfixes to get eg/myhttpd working again.
682 - added Coro::Storable for often-cede'ing freeze/thaw. 991 - added Coro::Storable for often-cede'ing freeze/thaw.
683 - try to do a clean exit when a coroutine calls exit 992 - try to do a clean exit when a coroutine calls exit
684 (EXPERIMENTAL). 993 (EXPERIMENTAL).
685 - got rid of indirect call through _coro_init. 994 - got rid of indirect call through _coro_init.
686 - updated the partly antique examples in eg/ to 995 - updated the partly antique examples in eg/ to

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines