In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/f566343249618427131b73615909df934030adc1?hp=4446c207838dd833a07dde6e8d8e328480e7f331>

- Log -----------------------------------------------------------------
commit f566343249618427131b73615909df934030adc1
Author: jdhedden <[email protected]>
Date:   Sat Dec 31 12:51:35 2016 -0500

    Upgrade to threads 2.12
    
    For: RT # 130469

M       Porting/Maintainers.pl
M       dist/threads/lib/threads.pm
M       dist/threads/t/exit.t
M       dist/threads/t/thread.t
M       dist/threads/threads.xs

commit 32b68ba57ac3574b29b10a0480d2d961b6abb435
Author: jdhedden <[email protected]>
Date:   Sat Dec 31 12:33:47 2016 -0500

    Upgrade to threads::shared 1.54

M       Porting/Maintainers.pl
M       dist/threads-shared/lib/threads/shared.pm
M       dist/threads-shared/shared.xs
-----------------------------------------------------------------------

Summary of changes:
 Porting/Maintainers.pl                    |  4 ++--
 dist/threads-shared/lib/threads/shared.pm |  4 ++--
 dist/threads-shared/shared.xs             |  2 ++
 dist/threads/lib/threads.pm               |  4 ++--
 dist/threads/t/exit.t                     | 10 +++++-----
 dist/threads/t/thread.t                   |  2 +-
 dist/threads/threads.xs                   |  2 ++
 7 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl
index 007e8d0570..2b72707d4a 100755
--- a/Porting/Maintainers.pl
+++ b/Porting/Maintainers.pl
@@ -1245,7 +1245,7 @@ use File::Glob qw(:case);
     },
 
     'threads' => {
-        'DISTRIBUTION' => 'JDHEDDEN/threads-2.09.tar.gz',
+        'DISTRIBUTION' => 'JDHEDDEN/threads-2.12.tar.gz',
         'FILES'        => q[dist/threads],
         'EXCLUDED'     => [
             qr{^examples/},
@@ -1257,7 +1257,7 @@ use File::Glob qw(:case);
     },
 
     'threads::shared' => {
-        'DISTRIBUTION' => 'JDHEDDEN/threads-shared-1.53.tar.gz',
+        'DISTRIBUTION' => 'JDHEDDEN/threads-shared-1.54.tar.gz',
         'FILES'        => q[dist/threads-shared],
         'EXCLUDED'     => [
             qw( examples/class.pl
diff --git a/dist/threads-shared/lib/threads/shared.pm 
b/dist/threads-shared/lib/threads/shared.pm
index 1bcf69d5f1..d42981b86b 100644
--- a/dist/threads-shared/lib/threads/shared.pm
+++ b/dist/threads-shared/lib/threads/shared.pm
@@ -7,7 +7,7 @@ use warnings;
 
 use Scalar::Util qw(reftype refaddr blessed);
 
-our $VERSION = '1.53'; # Please update the pod, too.
+our $VERSION = '1.54'; # Please update the pod, too.
 my $XS_VERSION = $VERSION;
 $VERSION = eval $VERSION;
 
@@ -195,7 +195,7 @@ threads::shared - Perl extension for sharing data 
structures between threads
 
 =head1 VERSION
 
-This document describes threads::shared version 1.53
+This document describes threads::shared version 1.54
 
 =head1 SYNOPSIS
 
diff --git a/dist/threads-shared/shared.xs b/dist/threads-shared/shared.xs
index 2f3dd912d8..dab5e362e0 100644
--- a/dist/threads-shared/shared.xs
+++ b/dist/threads-shared/shared.xs
@@ -656,8 +656,10 @@ Perl_sharedsv_cond_timedwait(perl_cond *cond, perl_mutex 
*mut, double abs)
     abs -= (NV)ts.tv_sec;
     ts.tv_nsec = (long)(abs * 1000000000.0);
 
+#if defined(__clang__) || defined(__clang)
     CLANG_DIAG_IGNORE(-Wthread-safety);
     /* warning: calling function 'pthread_cond_timedwait' requires holding 
mutex 'mut' exclusively [-Wthread-safety-analysis] */
+#endif
 
     switch (pthread_cond_timedwait(cond, mut, &ts)) {
 
diff --git a/dist/threads/lib/threads.pm b/dist/threads/lib/threads.pm
index 9217439b8a..14bf92040f 100644
--- a/dist/threads/lib/threads.pm
+++ b/dist/threads/lib/threads.pm
@@ -5,7 +5,7 @@ use 5.008;
 use strict;
 use warnings;
 
-our $VERSION = '2.10';
+our $VERSION = '2.12';
 my $XS_VERSION = $VERSION;
 $VERSION = eval $VERSION;
 
@@ -134,7 +134,7 @@ threads - Perl interpreter-based threads
 
 =head1 VERSION
 
-This document describes threads version 2.09
+This document describes threads version 2.12
 
 =head1 WARNING
 
diff --git a/dist/threads/t/exit.t b/dist/threads/t/exit.t
index 9e9b7f5b5f..c50bf98e4d 100644
--- a/dist/threads/t/exit.t
+++ b/dist/threads/t/exit.t
@@ -48,7 +48,7 @@ my $rc = $thr->join();
 ok(! defined($rc), 'Exited: threads->exit()');
 
 
-run_perl(prog => 'use threads 2.09;' .
+run_perl(prog => 'use threads 2.12;' .
                  'threads->exit(86);' .
                  'exit(99);',
          nolib => ($ENV{PERL_CORE}) ? 0 : 1,
@@ -98,7 +98,7 @@ $rc = $thr->join();
 ok(! defined($rc), 'Exited: $thr->set_thread_exit_only');
 
 
-run_perl(prog => 'use threads 2.09 qw(exit thread_only);' .
+run_perl(prog => 'use threads 2.12 qw(exit thread_only);' .
                  'threads->create(sub { exit(99); })->join();' .
                  'exit(86);',
          nolib => ($ENV{PERL_CORE}) ? 0 : 1,
@@ -108,7 +108,7 @@ run_perl(prog => 'use threads 2.09 qw(exit thread_only);' .
     is($?>>8, 86, "'use threads 'exit' => 'thread_only'");
 }
 
-my $out = run_perl(prog => 'use threads 2.09;' .
+my $out = run_perl(prog => 'use threads 2.12;' .
                            'threads->create(sub {' .
                            '    exit(99);' .
                            '});' .
@@ -124,7 +124,7 @@ my $out = run_perl(prog => 'use threads 2.09;' .
 like($out, qr/1 finished and unjoined/, "exit(status) in thread");
 
 
-$out = run_perl(prog => 'use threads 2.09 qw(exit thread_only);' .
+$out = run_perl(prog => 'use threads 2.12 qw(exit thread_only);' .
                         'threads->create(sub {' .
                         '   threads->set_thread_exit_only(0);' .
                         '   exit(99);' .
@@ -141,7 +141,7 @@ $out = run_perl(prog => 'use threads 2.09 qw(exit 
thread_only);' .
 like($out, qr/1 finished and unjoined/, "set_thread_exit_only(0)");
 
 
-run_perl(prog => 'use threads 2.09;' .
+run_perl(prog => 'use threads 2.12;' .
                  'threads->create(sub {' .
                  '   $SIG{__WARN__} = sub { exit(99); };' .
                  '   die();' .
diff --git a/dist/threads/t/thread.t b/dist/threads/t/thread.t
index 4bd96d0c60..466fb13b1b 100644
--- a/dist/threads/t/thread.t
+++ b/dist/threads/t/thread.t
@@ -161,7 +161,7 @@ package main;
 
 # bugid #24165
 
-run_perl(prog => 'use threads 2.09;' .
+run_perl(prog => 'use threads 2.12;' .
                  'sub a{threads->create(shift)} $t = a sub{};' .
                  '$t->tid; $t->join; $t->tid',
          nolib => ($ENV{PERL_CORE}) ? 0 : 1,
diff --git a/dist/threads/threads.xs b/dist/threads/threads.xs
index 56e61ea8eb..579fff37a8 100644
--- a/dist/threads/threads.xs
+++ b/dist/threads/threads.xs
@@ -1016,8 +1016,10 @@ S_ithread_create(
     MUTEX_UNLOCK(&my_pool->create_destruct_mutex);
     return (thread);
 
+#if defined(__clang__) || defined(__clang)
     CLANG_DIAG_IGNORE(-Wthread-safety);
     /* warning: mutex 'thread->mutex' is not held on every path through here 
[-Wthread-safety-analysis] */
+#endif
 }
 #if defined(__clang__) || defined(__clang)
 CLANG_DIAG_RESTORE;

--
Perl5 Master Repository

Reply via email to