Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit b99d9ed

Browse files
committed
threads-shared-1.58
1 parent dc1faeb commit b99d9ed

File tree

6 files changed

+24
-12
lines changed

6 files changed

+24
-12
lines changed

Porting/Maintainers.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ package Maintainers;
14861486
},
14871487

14881488
'threads::shared' => {
1489-
'DISTRIBUTION' => 'JDHEDDEN/threads-shared-1.57.tar.gz',
1489+
'DISTRIBUTION' => 'JDHEDDEN/threads-shared-1.58.tar.gz',
14901490
'FILES' => q[dist/threads-shared],
14911491
'EXCLUDED' => [
14921492
qw( examples/class.pl

dist/Module-CoreList/lib/Module/CoreList.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17834,6 +17834,7 @@ our %delta :const = (
1783417834
'Test::Harness' => '3.42_01',
1783517835
'Thread::Queue' => '3.13',
1783617836
'threads' => '2.22_01',
17837+
'threads::shared' => '1.58',
1783717838
'Time::HiRes' => '1.9758_01',
1783817839
'Time::Local' => '1.28',
1783917840
'Time::Piece' => '1.33',

dist/threads-shared/Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
Revision history for Perl extension threads::shared.
22

3+
1.58 Mon Jan 22 20:09:07 EST 2018
4+
- Fix CLANG macros.
5+
- Sync with blead.
6+
37
1.57 Sun May 7 22:48:33 2017
48
- Fix Clang macro backward compatibility per patch by Andy Grundman
59

dist/threads-shared/lib/threads/shared.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use warnings;
77

88
use Scalar::Util qw(reftype refaddr blessed);
99

10-
our $VERSION = '1.57'; # Please update the pod, too.
10+
our $VERSION = '1.58'; # Please update the pod, too.
1111
my $XS_VERSION = $VERSION;
1212
$VERSION = eval $VERSION;
1313

@@ -195,7 +195,7 @@ threads::shared - Perl extension for sharing data structures between threads
195195
196196
=head1 VERSION
197197
198-
This document describes threads::shared version 1.57
198+
This document describes threads::shared version 1.58
199199
200200
=head1 SYNOPSIS
201201

dist/threads-shared/shared.xs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,15 @@
128128
# include "shared.h"
129129
#endif
130130

131+
#ifndef CLANG_DIAG_IGNORE
132+
# define CLANG_DIAG_IGNORE(x)
133+
# define CLANG_DIAG_RESTORE
134+
#endif
135+
#ifndef CLANG_DIAG_IGNORE_STMT
136+
# define CLANG_DIAG_IGNORE_STMT(x) CLANG_DIAG_IGNORE(x) NOOP
137+
# define CLANG_DIAG_RESTORE_STMT CLANG_DIAG_RESTORE NOOP
138+
#endif
139+
131140
#ifdef USE_ITHREADS
132141

133142
/* Magic signature(s) for mg_private to make PERL_MAGIC_ext magic safer */
@@ -656,17 +665,10 @@ Perl_sharedsv_cond_timedwait(perl_cond *cond, perl_mutex *mut, double abs)
656665
abs -= (NV)ts.tv_sec;
657666
ts.tv_nsec = (long)(abs * 1000000000.0);
658667

659-
#if defined(CLANG_DIAG_IGNORE)
660-
CLANG_DIAG_IGNORE(-Wthread-safety);
668+
CLANG_DIAG_IGNORE_STMT(-Wthread-safety);
661669
/* warning: calling function 'pthread_cond_timedwait' requires holding mutex 'mut' exclusively [-Wthread-safety-analysis] */
662-
#endif
663-
664670
switch (pthread_cond_timedwait(cond, mut, &ts)) {
665-
666-
/* perl.h defines CLANG_DIAG_* but only in 5.24+ */
667-
#if defined(CLANG_DIAG_RESTORE)
668-
CLANG_DIAG_RESTORE;
669-
#endif
671+
CLANG_DIAG_RESTORE_STMT;
670672

671673
case 0: got_it = 1; break;
672674
case ETIMEDOUT: break;

pod/perlcdelta.pod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,11 @@ returning values from threads, and no longer warns about creating threads
426426
in C<BEGIN> blocks.
427427
L<[perl #96538]|https://rt.perl.org/Ticket/Display.html?id=96538>
428428

429+
=item L<threads::shared> 1.58
430+
431+
Fix Clang macro backward compatibility per patch by Andy Grundman.
432+
RT #131124 Memory allocation fix.
433+
429434
=item L<Time::HiRes> 1.9758_01
430435

431436
Updated from upstream since 1.9752:

0 commit comments

Comments
 (0)