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

Comparing Coro/Changes (file contents):
Revision 1.606 by root, Fri Dec 7 21:42:42 2012 UTC vs.
Revision 1.686 by root, Mon Mar 16 11:12:52 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
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
136.57
14 - allow rouse_wait to be called in a different thread.
15 - slightly clarify rouse_cb/rouse_wait documentation.
16 - slightly improve rouse callback performance and memory usage.
17
186.56 Thu Feb 20 19:40:07 CET 2020
19 - Coro::EV::time*once functions used ev_once, which is not cancelable.
20 This could cause problems due to I/O watchers not being stopped up
21 on exceptions/cancellation.
22
236.55 Fri Jul 19 17:28:09 CEST 2019
24 - Coro::RWLock woke up only one reader instead of all after a wrlock
25 (analyzed and patch by Maxim Skorobogatov).
26 - slightly improved documentation of Coro::RWLock and RWLock testcase.
27 - quickly (re)-ported to minix 3.3 before minix crashed again.
28
296.54 Sun Dec 16 11:06:07 CET 2018
30 - reinstate Coro::Select::select prototype - it breaks more than it fixes.
31
326.53 Sun Dec 16 10:33:15 CET 2018
33 - the autogenerated prototypes of Coro::AIO now add ";" at the end
34 to avoid generating named unary operators and messing up parsing
35 (mostly affects aio_mlockall 4 | 8 which was parsed as
36 (aio_mlockall 4) | 8).
37 - do not use a prototype for select in Coro::Select, as CORE::select also
38 doesn't have one.
39
406.52 Tue Aug 14 18:49:43 CEST 2018
41 - libcoro update: allow sharing of coro threads using the pthreads
42 backend among different pthreads, as is required by Coro::Multicore.
43 - always allow ->call and ->eval when the coro is the current coroutine. this
44 makes it possible, among other things, to call these on $Coro::main.
45 - minor code cleanups.
46
476.514 Thu Aug 31 18:25:31 CEST 2017
48 - safe_cancel no longer croaks when called on already-destroyed
49 thread, but instead "just works".
50
516.513 Sat Jul 15 01:18:51 CEST 2017
52 - experimental 5.22 comaptibility changes (PadlistNAMES).
53 - removed attributes example and made sure the other examples
54 still work.
55 - fix some statevar types for newer perls, should be of no consequence.
56
576.512 Fri Jul 14 05:03:17 CEST 2017
58 - seems to pass test suite down till 5.8.9, so make this the
59 minimum requirement in Makefile.PL.
60 - experimental 5.24 compatibility changes (SUB_ARGARRAY).
61 - experimental 5.26 compatibility changes (PL_comppad -> PADOFFSET).
62 - disable FORTIFY_SOURCE to avoid broken (but well-intentioned)
63 fortified longjmp variants in some libcs.
64 - re-try JIT allocation without PROT_EXEC, to hopefully improve
65 portability (still doesn't seem to work around broken selinux
66 mmap everywhere).
67 - speling fixes (Xavier Guimard).
68
696.511 Sun Jun 26 23:44:50 CEST 2016
70 - make it compile with threaded perls again.
71 - simplify and speed up __DIE__ and __WARN__ handling.
72
736.51 Sat Jun 25 20:57:20 CEST 2016
74 - 6.5 release didn't compile on most older perls due to
75 a logic error enabling experimental 5.24 code for all versions.
76 - since various broken or deficient patches float around
77 to work around the vtbl API breakage in perl, let's provide
78 our own workaround, which seems to be much less invasive
79 and more compatible than the approaches seen so far. YMMV.
80 - work around assertion failure in perl_destruct on 5.24
81 (analyzed by Dave Mitchell).
82
836.5 Wed Jun 22 22:23:50 CEST 2016
84 - swap_sv swapping order was not symmetrical, causing
85 wrong swaps when swap_sv was used multiple times on the
86 same sv in the same thread.
87 - swap_sv calls can now be undone by calling it again
88 with the same variables.
89 - swap_sv calls will now be undone in async_pool threads.
90 - split Coro::Semaphore::up/adjust into separate xs functions
91 for better error reporting, at slight codesize increase.
92 - (libcoro) arm assembly support, please test and report.
93 - adjust to PL_savestack changes in perl 5.24 (adapted from
94 the debian patch, which unfortunately gets it wrong).
95
966.49 Sat Oct 17 01:40:12 CEST 2015
97 - throwing an exception to a thread waiting in
98 Coro::Handle using Coro::EV did not stop the watchers,
99 causing the next call to fail (testcase by Martin Pritchard).
100 - bump minimum perl version to 5.10.
101
1026.48 Sun Oct 4 19:03:51 CEST 2015
103 - fix memory leak when Coro::Handle uses Coro::EV internally
104 (testcase by Sten Sten).
105 - update code to libev 4 API (internally, Coro still used the
106 version 3 API calls).
107 - remove unused hv_sig.
108
1096.47 Sat Jul 11 03:58:20 CEST 2015
110 - swap_svs - NVs can be in the SV head beginning with 5.20.
111
1126.46 Tue Jun 30 14:36:30 CEST 2015
113 - restore portability to perls with windows fork emulation
114 (patch by Petr Písař).
115
1166.45 Tue Jun 30 01:40:08 CEST 2015
117 - restore portability to perl 5.16 and below.
118
1196.44 Tue Jun 30 00:41:54 CEST 2015
120 - avoid segfaulting (or worse) when tracing a canceled thread.
121 - the Event module silently broke it's public hook API, causing
122 failures on perls compiled with -Duselongdouble. Requiring
123 the latest version of Event because I don't know which release
124 changed this (it's not mentioned in the ChangeLog).
125 - allow xs level enterleave hooks via CoroAPI.
126
1276.43 Thu Jun 4 15:38:14 CEST 2015
128 - use stability canary.
129 - port to stableperl-5.22.0-1.001.
130 - update libecb.
131
1326.42 Wed Feb 11 20:29:52 CET 2015
133 - Coro::SemaphoreSet->try did not actually work (analyzed by
134 SATO Kentaro).
135 - upgrade libecb to be C11 compliant.
136
1376.41 Sat Sep 6 22:08:46 CEST 2014
138 - restore portability to perl 5.8.x.
139 - give new Coro's a valid GvHV(PL_hintgv) - this is slow and takes
140 up some memory, but fixes "use feature" and similar modules
141 when used inside a Coro.
142 - allow zero as argument to Coro::Channel to mean the same thing
143 as no argument. this works with older versions as well,
144 but wasn't legal until now.
145 - slightly better c header file detection.
146
1476.39 Mon Jun 2 00:00:08 CEST 2014
148 - work around more incompatible changes in 5.20.
149
1506.38 Sun Jun 1 21:54:23 CEST 2014
151 - check that perl slots actually have enough space to hold
152 interpreter variables.
153 - untested port to perl 5.19 (64 bit tmps indices) (reported
154 by Andreas König).
155 - croak when cancel is called without a thread context.
156
1576.37 Tue Mar 4 13:27:33 CET 2014
158 - *sigh*, removed leftover debugging code from debugging a
159 perl bug, of all things.
160
1616.36 Tue Mar 4 07:11:59 CET 2014
162 - semaphores would not clear the destroy hook when interrupted
163 by ->throw, causing segfaults or worse.
164 - ->throw on a thread waiting for a semaphore did not acquire
165 the semaphore, but also didn't wake up other waiters,
166 possibly causing a deadlock.
167 - "FATAL: $Coro::IDLE blocked itself" will now use Carp::confess
168 to report a full stacktrace, which should help find out
169 where the actual call is.
170 - "atomically" destroy data in slf_destroy, because it is
171 the right thing to do, just in case.
172 - disable ecb.h libm dependency, to compile on ancient systems
173 or under adverse conditions.
174
1756.33 Mon Nov 18 11:26:27 CET 2013
176 - do not crash when freeing padlists with holes (in 5.18).
177 - tentative SVt_BIND 5.19 port/fix.
178
1796.32 Tue Nov 5 15:35:35 CET 2013
180 - use a new algorithm to derive padlists for perl 5.18. The old
181 one could lead to 0-pointer accesses inside perl (reported
182 by Darin McBride).
183
1846.31 Thu May 9 07:39:48 CEST 2013
185 - Coro::AIO requests would crash if the thread was ready'd
186 while the request was ongoing.
187
1886.29 Wed May 8 02:55:18 CEST 2013
189 - when an on_destroy handler destructs the coro currently being
190 destructed a perl scalar could be accessed after being freed,
191 likely causing a crash.
192
1936.28 Wed Mar 6 06:58:02 CET 2013
194 - clean remnants of existing __DIE__ and __WARN__ handlers so
195 they lose their magic and will not cause segfaults later
196 (testcase by Andrey Sagulin).
197 - improved Coro::State documentation a bit.
198 - Coro::Debug::command now flushes the output.
199 - add hack detection code for x32 abi, because the braindead slugs
200 who designed that made it look exactly like x86_64 without
201 providing proper compile time symbols to test for it. as a result,
202 this detection cannot work reliably.
203 - valgrind stack registering was broken.
204 - do not rely on Time::HiRes anymore in Coro::Debug.
205
2066.23 Fri Dec 7 23:36:37 CET 2012
8 - use experimental fiber implementation on native windows 207 - use experimental fiber implementation on native windows
9 perls. 208 perls.
10 - use sizeof (void *) as multiplication factor for stack sizes, 209 - use sizeof (void *) as multiplication factor for stack sizes,
11 to accomodate the totally braindamaged microsoft 64 bit "os". 210 to accomodate the totally braindamaged microsoft 64 bit "os".
12 - changed verifier host from win2k-ap510-32 to win7-sp516-32/64. 211 - changed verifier host from win2k-ap510-32 to win7-sp516-32/64.
79 handle and barfed. now it's just a bit slower on gentoo and similar 278 handle and barfed. now it's just a bit slower on gentoo and similar
80 systems. 279 systems.
81 280
826.01 Sun Jul 3 12:31:14 CEST 2011 2816.01 Sun Jul 3 12:31:14 CEST 2011
83 - workarounds are good, but the test for whether pthreads are used 282 - workarounds are good, but the test for whether pthreads are used
84 was not good. thisone should be better. 283 was not good. this one should be better.
85 - check differently whether gcc generates cfi instructions itself. 284 - check differently whether gcc generates cfi instructions itself.
86 285
876.0 Wed Jun 29 19:43:35 CEST 2011 2866.0 Wed Jun 29 19:43:35 CEST 2011
88 - INCOMPATIBLE CHANGE: unreferenced coro objects will now be 287 - INCOMPATIBLE CHANGE: unreferenced coro objects will now be
89 destroyed and cleaned up automatically (e.g. async { schedule }). 288 destroyed and cleaned up automatically (e.g. async { schedule }).
90 - implement a JIT compiler for part of the thread switch code, 289 - implement a JIT compiler for part of the thread switch code,
91 which gives a 50% speed improvement on threaded perls, and 290 which gives a 50% speed improvement on threaded perls, and
92 about 4% on non-thraeded perls (so threaded perls now finally 291 about 4% on non-threaded perls (so threaded perls now finally
93 reach about half the speed of non-threaded perls). 292 reach about half the speed of non-threaded perls).
94 - slightly modernise Coro::Intro, add section about rouse functions. 293 - slightly modernise Coro::Intro, add section about rouse functions.
95 - avoid DEFSV and ERRSV, giving another 10% improvement 294 - avoid DEFSV and ERRSV, giving another 10% improvement
96 in thread switching. 295 in thread switching.
97 - Coro::State->is_destroyed is now called is_zombie. 296 - Coro::State->is_destroyed is now called is_zombie.
451 - ->throw is now supported on Coro::State objects. 650 - ->throw is now supported on Coro::State objects.
452 - clean up cctx creation code a bit. 651 - clean up cctx creation code a bit.
453 - entersub is actually a UNOP, not a LOGOP (not a bugfix). 652 - entersub is actually a UNOP, not a LOGOP (not a bugfix).
454 653
4554.9 Sat Nov 8 17:45:27 CET 2008 6544.9 Sat Nov 8 17:45:27 CET 2008
456 - (libcoro) did not preserve rbp with CORO_ASM (we are getting there). 655 - (libcoro) did not preserve rbp with CORO_ASM (we are getting there).
457 - (libcoro) no longer leak threads in the experimental pthread backend, 656 - (libcoro) no longer leak threads in the experimental pthread backend,
458 also speed it up considerably. 657 also speed it up considerably.
459 - (libcoro) do not rely on makecontext passing void *'s unscathed. 658 - (libcoro) do not rely on makecontext passing void *'s unscathed.
460 - fix compiletime dependencies on libcoro in the Makefile. 659 - fix compiletime dependencies on libcoro in the Makefile.
461 - cctx_count wasn't always updated properly. 660 - cctx_count wasn't always updated properly.
523 - remove debugging code related to MgPV_nolen_const, also try to 722 - remove debugging code related to MgPV_nolen_const, also try to
524 make it compile with perl 5.8.6 (yes, apple apparently loves 723 make it compile with perl 5.8.6 (yes, apple apparently loves
525 outdated software). Reported by John S. 724 outdated software). Reported by John S.
526 725
5274.744 Tue Jul 8 22:06:35 CEST 2008 7264.744 Tue Jul 8 22:06:35 CEST 2008
528 - correctly provide default DIE/WARN handlers as documented. 727 - correctly provide default DIE/WARN handlers as documented.
529 - also overwrite PL_vtbl_sigelem.svt_clear, even though current 728 - also overwrite PL_vtbl_sigelem.svt_clear, even though current
530 implementations inside perl work fine for us. 729 implementations inside perl work fine for us.
531 730
5324.743 Mon Jun 16 00:21:57 CEST 2008 7314.743 Mon Jun 16 00:21:57 CEST 2008
533 - when using Coro::EV without running EV::loop it could 732 - when using Coro::EV without running EV::loop it could
555 - sprinkle "no warnings" freely over everything, also suppress 754 - sprinkle "no warnings" freely over everything, also suppress
556 warnings for some other modules. 755 warnings for some other modules.
557 - fix typo in WSAEWOULDBLOCK. 756 - fix typo in WSAEWOULDBLOCK.
558 757
5594.72 Sun May 25 05:14:36 CEST 2008 7584.72 Sun May 25 05:14:36 CEST 2008
560 - tweak META.yaml a bit, unfortunately, there is no documented way 759 - tweak META.yaml a bit, unfortunately, there is no documented way
561 to have optional dependencies with CPAN. doh :( 760 to have optional dependencies with CPAN. doh :(
562 - avoid running some tests on windows because they would fail due to 761 - avoid running some tests on windows because they would fail due to
563 perl bug (broken fork, broken pipes...). 762 perl bug (broken fork, broken pipes...).
564 - work around perl on windows bugs where perl returns undocumented 763 - work around perl on windows bugs where perl returns undocumented
565 error codes for sysread, syswrite etc. by taking advantage 764 error codes for sysread, syswrite etc. by taking advantage
569 - use unix domain sockets in testsuite to work around 768 - use unix domain sockets in testsuite to work around
570 common perl implementation bugs on widows (they are emulated by 769 common perl implementation bugs on widows (they are emulated by
571 tcp sockets on windows. ugh.) 770 tcp sockets on windows. ugh.)
572 771
5734.71 Sat May 24 20:01:27 CEST 2008 7724.71 Sat May 24 20:01:27 CEST 2008
574 - fix a bug in Coro::AnyEvent ("Usage: Coro::AnyEvent::_schedule()"). 773 - fix a bug in Coro::AnyEvent ("Usage: Coro::AnyEvent::_schedule()").
575 - take advantage of async name resolution of AnyEvent::Util. 774 - take advantage of async name resolution of AnyEvent::Util.
576 - work around brutal inet_aton override in Coro::LWP. 775 - work around brutal inet_aton override in Coro::LWP.
577 - take advantage of the readyhook in Coro::EV, for smoother 776 - take advantage of the readyhook in Coro::EV, for smoother
578 scheduling. 777 scheduling.
579 778
5804.7 Sun May 11 00:32:19 CEST 2008 7794.7 Sun May 11 00:32:19 CEST 2008
581 - completely reworked the Coro manpage. 780 - completely reworked the Coro manpage.
582 - added Coro::AnyEvent, generic event loop integration. 781 - added Coro::AnyEvent, generic event loop integration.
583 - implement cancel, ready and kill commands in Coro::Debug. 782 - implement cancel, ready and kill commands in Coro::Debug.
584 - document find_coro in Coro::Debug. 783 - document find_coro in Coro::Debug.
585 - incompatible change: rename has_stack to has_cctx. 784 - incompatible change: rename has_stack to has_cctx.
586 - Coro::AIO and Coro::BDB no longer force event model detection, 785 - Coro::AIO and Coro::BDB no longer force event model detection,
587 use AnyEvent::AIO and AnyEvent::BDB. 786 use AnyEvent::AIO and AnyEvent::BDB.
711 910
7124.11 Thu Oct 11 02:40:24 CEST 2007 9114.11 Thu Oct 11 02:40:24 CEST 2007
713 - port to threaded perls. 912 - port to threaded perls.
714 913
7154.1 Thu Oct 11 02:38:16 CEST 2007 9144.1 Thu Oct 11 02:38:16 CEST 2007
716 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now 915 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now
717 be local to each coro (see Coro::State). 916 be local to each coro (see Coro::State).
718 - incompatible change: for very deep reasons, cede and cede_notself 917 - incompatible change: for very deep reasons, cede and cede_notself
719 cannot return anything, so nothing will be returned. 918 cannot return anything, so nothing will be returned.
720 - possibly bring back 5.10 compatibility (untested). 919 - possibly bring back 5.10 compatibility (untested).
721 - work around stupid (and wrong) warning on 5.10 :(. 920 - work around stupid (and wrong) warning on 5.10 :(.
793 but stateful semantics. 992 but stateful semantics.
794 - fixed a lot of typos in Coro.pm (patch submitted by David 993 - fixed a lot of typos in Coro.pm (patch submitted by David
795 Steinbrunner, which applied flawlessly). 994 Steinbrunner, which applied flawlessly).
796 995
7973.6 Sat Apr 14 17:13:31 CEST 2007 9963.6 Sat Apr 14 17:13:31 CEST 2007
798 - added some bugfixes to get eg/myhttpd working again. 997 - added some bugfixes to get eg/myhttpd working again.
799 - added Coro::Storable for often-cede'ing freeze/thaw. 998 - added Coro::Storable for often-cede'ing freeze/thaw.
800 - try to do a clean exit when a coroutine calls exit 999 - try to do a clean exit when a coroutine calls exit
801 (EXPERIMENTAL). 1000 (EXPERIMENTAL).
802 - got rid of indirect call through _coro_init. 1001 - got rid of indirect call through _coro_init.
803 - updated the partly antique examples in eg/ to 1002 - updated the partly antique examples in eg/ to

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines