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

Comparing Coro/Changes (file contents):
Revision 1.575 by root, Wed Jun 29 17:58:51 2011 UTC vs.
Revision 1.657 by root, Wed Jun 22 20:24:38 2016 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: swap_sv, maybe add scope_swap_sv?
7TODO: croak when async_pool tries to run canceled thread?
8
96.5 Wed Jun 22 22:23:50 CEST 2016
10 - swap_sv swapping order was not symmetrical, causing
11 wrong swaps when swap_sv was used multiple times on the
12 same sv in the same thread.
13 - swap_sv calls can now be undone by calling it again
14 with the same variables.
15 - swap_sv calls will now be undone in async_pool threads.
16 - split Coro::Semaphore::up/adjust into separate xs functions
17 for better error reporting, at slight codesize increase.
18 - (libcoro) arm assembly support, please test and report.
19 - adjust to PL_savestack changes in perl 5.24 (adapted from
20 the debian patch, which unfortunately gets it wrong).
21
226.49 Sat Oct 17 01:40:12 CEST 2015
23 - throwing an exception to a thread waiting in
24 Coro::Handle using Coro::EV did not stop the watchers,
25 causing the next call to fail (testcase by Martin Pritchard).
26 - bump minimum perl version to 5.10.
27
286.48 Sun Oct 4 19:03:51 CEST 2015
29 - fix memory leak when Coro::Handle uses Coro::EV internally
30 (testcase by Sten Sten).
31 - update code to libev 4 API (internally, Coro still used the
32 version 3 API calls).
33 - remove unused hv_sig.
34
356.47 Sat Jul 11 03:58:20 CEST 2015
36 - swap_svs - NVs can be in the SV head beginning with 5.20.
37
386.46 Tue Jun 30 14:36:30 CEST 2015
39 - restore portability to perls with windows fork emulation
40 (patch by Petr Písař).
41
426.45 Tue Jun 30 01:40:08 CEST 2015
43 - restore portability to perl 5.16 and below.
44
456.44 Tue Jun 30 00:41:54 CEST 2015
46 - avoid segfaulting (or worse) when tracing a canceled thread.
47 - the Event module silently broke it's public hook API, causing
48 failures on perls compiled with -Duselongdouble. Requiring
49 the latest version of Event because I don't know which release
50 changed this (it's not mentioned in the ChangeLog).
51 - allow xs level enterleave hooks via CoroAPI.
52
536.43 Thu Jun 4 15:38:14 CEST 2015
54 - use stability canary.
55 - port to stableperl-5.22.0-1.001.
56 - update libecb.
57
586.42 Wed Feb 11 20:29:52 CET 2015
59 - Coro::SemaphoreSet->try did not actually work (analyzed by
60 SATO Kentaro).
61 - upgrade libecb to be C11 compliant.
62
636.41 Sat Sep 6 22:08:46 CEST 2014
64 - restore portability to perl 5.8.x.
65 - give new Coro's a valid GvHV(PL_hintgv) - this is slow and takes
66 up some memory, but fixes "use feature" and similar modules
67 when used inside a Coro.
68 - allow zero as argument to Coro::Channel to mean the same thing
69 as no argument. this works with older versions as well,
70 but wasn't legal until now.
71 - slightly better c header file detection.
72
736.39 Mon Jun 2 00:00:08 CEST 2014
74 - work around more incompatible changes in 5.20.
75
766.38 Sun Jun 1 21:54:23 CEST 2014
77 - check that perl slots actually have enough space to hold
78 interpreter variables.
79 - untested port to perl 5.19 (64 bit tmps indices) (reported
80 by Andreas König).
81 - croak when cancel is called without a thread context.
82
836.37 Tue Mar 4 13:27:33 CET 2014
84 - *sigh*, removed leftover debugging code from debugging a
85 perl bug, of all things.
86
876.36 Tue Mar 4 07:11:59 CET 2014
88 - semaphores would not clear the destroy hook when interrupted
89 by ->throw, causing segfaults or worse.
90 - ->throw on a thread waiting for a semaphore did not acquire
91 the semaphore, but also didn't wake up other waiters,
92 possibly causing a deadlock.
93 - "FATAL: $Coro::IDLE blocked itself" will now use Carp::confess
94 to report a full stacktrace, which should help find out
95 where the actual call is.
96 - "atomically" destroy data in slf_destroy, because it is
97 the right thing to do, just in case.
98 - disable ecb.h libm dependency, to compile on ancient systems
99 or under adverse conditions.
100
1016.33 Mon Nov 18 11:26:27 CET 2013
102 - do not crash when freeing padlists with holes (in 5.18).
103 - tentative SVt_BIND 5.19 port/fix.
104
1056.32 Tue Nov 5 15:35:35 CET 2013
106 - use a new algorithm to derive padlists for perl 5.18. The old
107 one could lead to 0-pointer accesses inside perl (reported
108 by Darin McBride).
109
1106.31 Thu May 9 07:39:48 CEST 2013
111 - Coro::AIO requests would crash if the thread was ready'd
112 while the request was ongoing.
113
1146.29 Wed May 8 02:55:18 CEST 2013
115 - when an on_destroy handler destructs the coro currently being
116 destructed a perl scalar could be accessed after being freed,
117 likely causing a crash.
118
1196.28 Wed Mar 6 06:58:02 CET 2013
120 - clean remnants of existing __DIE__ and __WARN__ handlers so
121 they lose their magic and will not cause segfaults later
122 (testcase by Andrey Sagulin).
123 - improved Coro::State documentation a bit.
124 - Coro::Debug::command now flushes the output.
125 - add hack detection code for x32 abi, because the braindead slugs
126 who designed that made it look exactly like x86_64 without
127 providing proper compile time symbols to test for it. as a result,
128 this detection cannot work reliably.
129 - valgrind stack registering was broken.
130 - do not rely on Time::HiRes anymore in Coro::Debug.
131
1326.23 Fri Dec 7 23:36:37 CET 2012
133 - use experimental fiber implementation on native windows
134 perls.
135 - use sizeof (void *) as multiplication factor for stack sizes,
136 to accomodate the totally braindamaged microsoft 64 bit "os".
137 - changed verifier host from win2k-ap510-32 to win7-sp516-32/64.
138 activeperl 5.16 crashes when PerlIO_define_layer is called due
139 to some bug in the perl dll, strawberry perl at least passes
140 the testsuite.
141 - implement Coro::Handle->peeraddr/host/port, for slightly
142 improved compatibility with LWP.
143 - implement 5.17 compatibility by almost blindly applying a
144 good-looking patch by Father Chrysostomos.
145 - move stack management functions into libcoro 3.
146 - libcoro version 3 "released".
147 - support magic values as timed_io_once args.
148 - recommend AnyEvent 7+ or EV 4+, also require EV
149 version 4 or newer for Coro::EV.
150
1516.10 Tue Oct 9 01:14:27 CEST 2012
152 - updated ecb.h, it had a typo that caused it to not compile on many
153 big endian systems (reported by many people).
154 - disable memory fences in ecb.h to improve portability.
155
1566.09 Sat Oct 6 23:25:02 CEST 2012
157 - Coro::EV I/O watchers were not interruptible by exceptions
158 (Coro::State::throw) (testcase by sten).
159 - ->throw now puts threads into the ready queue, as this seems to
160 be expected by existing code, and code that doesn't cope with spurious
161 wakeups needs fixing anyway.
162 - use fd -1 in mmap.
163 - cast I32 to int in error message printf.
164 - warn about broken so-called "hardened" kernels.
165
1666.08 Fri Apr 13 12:05:47 CEST 2012
167 - be more aggressive about exiting like perl does - formerly,
168 exiting from the non-main thread would not execute END blocks.
169
1706.07 Fri Nov 11 21:21:48 CET 2011
171 - work around a bug in PerlIO (setting $SIG{__WARN__} to a PVCV).
172 - update ecb.h.
173
1746.06 Mon Aug 8 23:59:48 CEST 2011
175 - cygwin unfortunately patches the stack at runtime, so we use the pthreads
176 backend, which is an order of magnitude slower. unfortunately, cygwins
177 pthread implementation isn't very complete either, so allocate the stack
178 twice just to be sure.
179 (note: cygwin also enables mymalloc, which is NOT THREADSAFE ON WINDOWS,
180 in its ithreaded perl - best recompile cygwin and use the 'w'indows
181 backend for much better performance. also disable ithreads for
182 even better performance...).
183
1846.05 Thu Aug 4 21:36:36 CEST 2011
185 - blush, condvar values would not be propagated from send to recv anymore
186 (reported by Chip Salzenberg).
187 - use exponential increase for the readline buffer length in
188 Coro::Handle. also reduce initial allocation to 1020 from 4096 bytes.
189
1906.04 Wed Aug 3 17:15:45 CEST 2011
191 - use even more efficient and more compatible condvars for
192 compatibility to AnyEvent 6.x :)
193 - more inconsequential ecb.h updates.
194
1956.03 Wed Aug 3 11:41:30 CEST 2011
196 - change how Coro patches AnyEvent condvars for compatibility to
197 AnyEvent 6.x.
198 - update ecb.h, to no longer include <pthread.h> in case WinNT.h
199 hasn't been included.
200
2016.02 Wed Jul 13 04:35:19 CEST 2011
202 - "improve portability to Gentoo" - gentoo manages to put perl variables
203 in memory areas that are farther than 2gb apart, which the jit couldn't
204 handle and barfed. now it's just a bit slower on gentoo and similar
205 systems.
206
2076.01 Sun Jul 3 12:31:14 CEST 2011
208 - workarounds are good, but the test for whether pthreads are used
209 was not good. this one should be better.
210 - check differently whether gcc generates cfi instructions itself.
6 211
76.0 Wed Jun 29 19:43:35 CEST 2011 2126.0 Wed Jun 29 19:43:35 CEST 2011
8 - INCOMPATIBLE CHANGE: unreferenced coro objects will now be 213 - INCOMPATIBLE CHANGE: unreferenced coro objects will now be
9 destroyed and cleaned up automatically (e.g. async { schedule }). 214 destroyed and cleaned up automatically (e.g. async { schedule }).
10 - implement a JIT compiler for part of the thread switch code, 215 - implement a JIT compiler for part of the thread switch code,
11 which gives a 50% speed improvement on threaded perls, and 216 which gives a 50% speed improvement on threaded perls, and
12 about 4% on non-thraeded perls (so threaded perls now finally 217 about 4% on non-threaded perls (so threaded perls now finally
13 reach about half the speed of non-threaded perls). 218 reach about half the speed of non-threaded perls).
14 - slightly modernise Coro::Intro, add section about rouse functions. 219 - slightly modernise Coro::Intro, add section about rouse functions.
15 - avoid DEFSV and ERRSV, giving another 10% improvement 220 - avoid DEFSV and ERRSV, giving another 10% improvement
16 in thread switching. 221 in thread switching.
17 - Coro::State->is_destroyed is now called is_zombie. 222 - Coro::State->is_destroyed is now called is_zombie.
371 - ->throw is now supported on Coro::State objects. 576 - ->throw is now supported on Coro::State objects.
372 - clean up cctx creation code a bit. 577 - clean up cctx creation code a bit.
373 - entersub is actually a UNOP, not a LOGOP (not a bugfix). 578 - entersub is actually a UNOP, not a LOGOP (not a bugfix).
374 579
3754.9 Sat Nov 8 17:45:27 CET 2008 5804.9 Sat Nov 8 17:45:27 CET 2008
376 - (libcoro) did not preserve rbp with CORO_ASM (we are getting there). 581 - (libcoro) did not preserve rbp with CORO_ASM (we are getting there).
377 - (libcoro) no longer leak threads in the experimental pthread backend, 582 - (libcoro) no longer leak threads in the experimental pthread backend,
378 also speed it up considerably. 583 also speed it up considerably.
379 - (libcoro) do not rely on makecontext passing void *'s unscathed. 584 - (libcoro) do not rely on makecontext passing void *'s unscathed.
380 - fix compiletime dependencies on libcoro in the Makefile. 585 - fix compiletime dependencies on libcoro in the Makefile.
381 - cctx_count wasn't always updated properly. 586 - cctx_count wasn't always updated properly.
443 - remove debugging code related to MgPV_nolen_const, also try to 648 - remove debugging code related to MgPV_nolen_const, also try to
444 make it compile with perl 5.8.6 (yes, apple apparently loves 649 make it compile with perl 5.8.6 (yes, apple apparently loves
445 outdated software). Reported by John S. 650 outdated software). Reported by John S.
446 651
4474.744 Tue Jul 8 22:06:35 CEST 2008 6524.744 Tue Jul 8 22:06:35 CEST 2008
448 - correctly provide default DIE/WARN handlers as documented. 653 - correctly provide default DIE/WARN handlers as documented.
449 - also overwrite PL_vtbl_sigelem.svt_clear, even though current 654 - also overwrite PL_vtbl_sigelem.svt_clear, even though current
450 implementations inside perl work fine for us. 655 implementations inside perl work fine for us.
451 656
4524.743 Mon Jun 16 00:21:57 CEST 2008 6574.743 Mon Jun 16 00:21:57 CEST 2008
453 - when using Coro::EV without running EV::loop it could 658 - when using Coro::EV without running EV::loop it could
475 - sprinkle "no warnings" freely over everything, also suppress 680 - sprinkle "no warnings" freely over everything, also suppress
476 warnings for some other modules. 681 warnings for some other modules.
477 - fix typo in WSAEWOULDBLOCK. 682 - fix typo in WSAEWOULDBLOCK.
478 683
4794.72 Sun May 25 05:14:36 CEST 2008 6844.72 Sun May 25 05:14:36 CEST 2008
480 - tweak META.yaml a bit, unfortunately, there is no documented way 685 - tweak META.yaml a bit, unfortunately, there is no documented way
481 to have optional dependencies with CPAN. doh :( 686 to have optional dependencies with CPAN. doh :(
482 - avoid running some tests on windows because they would fail due to 687 - avoid running some tests on windows because they would fail due to
483 perl bug (broken fork, broken pipes...). 688 perl bug (broken fork, broken pipes...).
484 - work around perl on windows bugs where perl returns undocumented 689 - work around perl on windows bugs where perl returns undocumented
485 error codes for sysread, syswrite etc. by taking advantage 690 error codes for sysread, syswrite etc. by taking advantage
489 - use unix domain sockets in testsuite to work around 694 - use unix domain sockets in testsuite to work around
490 common perl implementation bugs on widows (they are emulated by 695 common perl implementation bugs on widows (they are emulated by
491 tcp sockets on windows. ugh.) 696 tcp sockets on windows. ugh.)
492 697
4934.71 Sat May 24 20:01:27 CEST 2008 6984.71 Sat May 24 20:01:27 CEST 2008
494 - fix a bug in Coro::AnyEvent ("Usage: Coro::AnyEvent::_schedule()"). 699 - fix a bug in Coro::AnyEvent ("Usage: Coro::AnyEvent::_schedule()").
495 - take advantage of async name resolution of AnyEvent::Util. 700 - take advantage of async name resolution of AnyEvent::Util.
496 - work around brutal inet_aton override in Coro::LWP. 701 - work around brutal inet_aton override in Coro::LWP.
497 - take advantage of the readyhook in Coro::EV, for smoother 702 - take advantage of the readyhook in Coro::EV, for smoother
498 scheduling. 703 scheduling.
499 704
5004.7 Sun May 11 00:32:19 CEST 2008 7054.7 Sun May 11 00:32:19 CEST 2008
501 - completely reworked the Coro manpage. 706 - completely reworked the Coro manpage.
502 - added Coro::AnyEvent, generic event loop integration. 707 - added Coro::AnyEvent, generic event loop integration.
503 - implement cancel, ready and kill commands in Coro::Debug. 708 - implement cancel, ready and kill commands in Coro::Debug.
504 - document find_coro in Coro::Debug. 709 - document find_coro in Coro::Debug.
505 - incompatible change: rename has_stack to has_cctx. 710 - incompatible change: rename has_stack to has_cctx.
506 - Coro::AIO and Coro::BDB no longer force event model detection, 711 - Coro::AIO and Coro::BDB no longer force event model detection,
507 use AnyEvent::AIO and AnyEvent::BDB. 712 use AnyEvent::AIO and AnyEvent::BDB.
631 836
6324.11 Thu Oct 11 02:40:24 CEST 2007 8374.11 Thu Oct 11 02:40:24 CEST 2007
633 - port to threaded perls. 838 - port to threaded perls.
634 839
6354.1 Thu Oct 11 02:38:16 CEST 2007 8404.1 Thu Oct 11 02:38:16 CEST 2007
636 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now 841 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now
637 be local to each coro (see Coro::State). 842 be local to each coro (see Coro::State).
638 - incompatible change: for very deep reasons, cede and cede_notself 843 - incompatible change: for very deep reasons, cede and cede_notself
639 cannot return anything, so nothing will be returned. 844 cannot return anything, so nothing will be returned.
640 - possibly bring back 5.10 compatibility (untested). 845 - possibly bring back 5.10 compatibility (untested).
641 - work around stupid (and wrong) warning on 5.10 :(. 846 - work around stupid (and wrong) warning on 5.10 :(.
713 but stateful semantics. 918 but stateful semantics.
714 - fixed a lot of typos in Coro.pm (patch submitted by David 919 - fixed a lot of typos in Coro.pm (patch submitted by David
715 Steinbrunner, which applied flawlessly). 920 Steinbrunner, which applied flawlessly).
716 921
7173.6 Sat Apr 14 17:13:31 CEST 2007 9223.6 Sat Apr 14 17:13:31 CEST 2007
718 - added some bugfixes to get eg/myhttpd working again. 923 - added some bugfixes to get eg/myhttpd working again.
719 - added Coro::Storable for often-cede'ing freeze/thaw. 924 - added Coro::Storable for often-cede'ing freeze/thaw.
720 - try to do a clean exit when a coroutine calls exit 925 - try to do a clean exit when a coroutine calls exit
721 (EXPERIMENTAL). 926 (EXPERIMENTAL).
722 - got rid of indirect call through _coro_init. 927 - got rid of indirect call through _coro_init.
723 - updated the partly antique examples in eg/ to 928 - updated the partly antique examples in eg/ to

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines