|
|
299ee1 |
From 0bb2d0b00e011f1d77d1766fac4777c6bc376af7 Mon Sep 17 00:00:00 2001
|
|
|
299ee1 |
From: Jitka Plesnikova <jplesnik@redhat.com>
|
|
|
299ee1 |
Date: Mon, 1 Jun 2020 13:23:16 +0200
|
|
|
299ee1 |
Subject: [PATCH] Upgrade to 2.25
|
|
|
299ee1 |
|
|
|
299ee1 |
---
|
|
|
299ee1 |
lib/threads.pm | 22 +++++++++++-----------
|
|
|
299ee1 |
threads.xs | 2 +-
|
|
|
299ee1 |
2 files changed, 12 insertions(+), 12 deletions(-)
|
|
|
299ee1 |
|
|
|
299ee1 |
diff --git a/lib/threads.pm b/lib/threads.pm
|
|
|
299ee1 |
index 1b99567..ee201a2 100644
|
|
|
299ee1 |
--- a/lib/threads.pm
|
|
|
299ee1 |
+++ b/lib/threads.pm
|
|
|
299ee1 |
@@ -5,7 +5,7 @@ use 5.008;
|
|
|
299ee1 |
use strict;
|
|
|
299ee1 |
use warnings;
|
|
|
299ee1 |
|
|
|
299ee1 |
-our $VERSION = '2.22'; # remember to update version in POD!
|
|
|
299ee1 |
+our $VERSION = '2.25'; # remember to update version in POD!
|
|
|
299ee1 |
my $XS_VERSION = $VERSION;
|
|
|
299ee1 |
$VERSION = eval $VERSION;
|
|
|
299ee1 |
|
|
|
299ee1 |
@@ -134,13 +134,13 @@ threads - Perl interpreter-based threads
|
|
|
299ee1 |
|
|
|
299ee1 |
=head1 VERSION
|
|
|
299ee1 |
|
|
|
299ee1 |
-This document describes threads version 2.21
|
|
|
299ee1 |
+This document describes threads version 2.25
|
|
|
299ee1 |
|
|
|
299ee1 |
=head1 WARNING
|
|
|
299ee1 |
|
|
|
299ee1 |
The "interpreter-based threads" provided by Perl are not the fast, lightweight
|
|
|
299ee1 |
system for multitasking that one might expect or hope for. Threads are
|
|
|
299ee1 |
-implemented in a way that make them easy to misuse. Few people know how to
|
|
|
299ee1 |
+implemented in a way that makes them easy to misuse. Few people know how to
|
|
|
299ee1 |
use them correctly or will be able to provide help.
|
|
|
299ee1 |
|
|
|
299ee1 |
The use of interpreter-based threads in perl is officially
|
|
|
299ee1 |
@@ -914,7 +914,7 @@ C<-E<gt>import()>) after any threads are started, and in such a way that no
|
|
|
299ee1 |
other threads are started afterwards.
|
|
|
299ee1 |
|
|
|
299ee1 |
If the above does not work, or is not adequate for your application, then file
|
|
|
299ee1 |
-a bug report on L<http://rt.cpan.org/Public/> against the problematic module.
|
|
|
299ee1 |
+a bug report on L<https://rt.cpan.org/Public/> against the problematic module.
|
|
|
299ee1 |
|
|
|
299ee1 |
=item Memory consumption
|
|
|
299ee1 |
|
|
|
299ee1 |
@@ -1090,7 +1090,7 @@ determine whether your system supports it.
|
|
|
299ee1 |
|
|
|
299ee1 |
In prior perl versions, spawning threads with open directory handles would
|
|
|
299ee1 |
crash the interpreter.
|
|
|
299ee1 |
-L<[perl #75154]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=75154>
|
|
|
299ee1 |
+L<[perl #75154]|https://rt.perl.org/rt3/Public/Bug/Display.html?id=75154>
|
|
|
299ee1 |
|
|
|
299ee1 |
=item Detached threads and global destruction
|
|
|
299ee1 |
|
|
|
299ee1 |
@@ -1118,8 +1118,8 @@ unreferenced scalars. However, such warnings are harmless, and may safely be
|
|
|
299ee1 |
ignored.
|
|
|
299ee1 |
|
|
|
299ee1 |
You can search for L<threads> related bug reports at
|
|
|
299ee1 |
-L<http://rt.cpan.org/Public/>. If needed submit any new bugs, problems,
|
|
|
299ee1 |
-patches, etc. to: L<http://rt.cpan.org/Public/Dist/Display.html?Name=threads>
|
|
|
299ee1 |
+L<https://rt.cpan.org/Public/>. If needed submit any new bugs, problems,
|
|
|
299ee1 |
+patches, etc. to: L<https://rt.cpan.org/Public/Dist/Display.html?Name=threads>
|
|
|
299ee1 |
|
|
|
299ee1 |
=back
|
|
|
299ee1 |
|
|
|
299ee1 |
@@ -1137,14 +1137,14 @@ L<https://github.com/Dual-Life/threads>
|
|
|
299ee1 |
|
|
|
299ee1 |
L<threads::shared>, L<perlthrtut>
|
|
|
299ee1 |
|
|
|
299ee1 |
-L<http://www.perl.com/pub/a/2002/06/11/threads.html> and
|
|
|
299ee1 |
-L<http://www.perl.com/pub/a/2002/09/04/threads.html>
|
|
|
299ee1 |
+L<https://www.perl.com/pub/a/2002/06/11/threads.html> and
|
|
|
299ee1 |
+L<https://www.perl.com/pub/a/2002/09/04/threads.html>
|
|
|
299ee1 |
|
|
|
299ee1 |
Perl threads mailing list:
|
|
|
299ee1 |
-L<http://lists.perl.org/list/ithreads.html>
|
|
|
299ee1 |
+L<https://lists.perl.org/list/ithreads.html>
|
|
|
299ee1 |
|
|
|
299ee1 |
Stack size discussion:
|
|
|
299ee1 |
-L<http://www.perlmonks.org/?node_id=532956>
|
|
|
299ee1 |
+L<https://www.perlmonks.org/?node_id=532956>
|
|
|
299ee1 |
|
|
|
299ee1 |
Sample code in the I<examples> directory of this distribution on CPAN.
|
|
|
299ee1 |
|
|
|
299ee1 |
diff --git a/threads.xs b/threads.xs
|
|
|
299ee1 |
index 3da9165..ab64dc0 100644
|
|
|
299ee1 |
--- a/threads.xs
|
|
|
299ee1 |
+++ b/threads.xs
|
|
|
299ee1 |
@@ -676,7 +676,7 @@ S_ithread_run(void * arg)
|
|
|
299ee1 |
}
|
|
|
299ee1 |
|
|
|
299ee1 |
/* At this point, the interpreter may have been freed, so call
|
|
|
299ee1 |
- * free in the the context of of the 'main' interpreter which
|
|
|
299ee1 |
+ * free in the context of the 'main' interpreter which
|
|
|
299ee1 |
* can't have been freed due to the veto_cleanup mechanism.
|
|
|
299ee1 |
*/
|
|
|
299ee1 |
aTHX = MY_POOL.main_thread.interp;
|
|
|
299ee1 |
--
|
|
|
299ee1 |
2.25.4
|
|
|
299ee1 |
|