File tree 7 files changed +17
-22
lines changed
7 files changed +17
-22
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use 5.008;
5
5
use strict;
6
6
use warnings;
7
7
8
- our $VERSION = ' 2.36 ' ; # remember to update version in POD!
8
+ our $VERSION = ' 2.37 ' ; # remember to update version in POD!
9
9
my $XS_VERSION = $VERSION ;
10
10
$VERSION = eval $VERSION ;
11
11
@@ -134,7 +134,7 @@ threads - Perl interpreter-based threads
134
134
135
135
=head1 VERSION
136
136
137
- This document describes threads version 2.36
137
+ This document describes threads version 2.37
138
138
139
139
=head1 WARNING
140
140
Original file line number Diff line number Diff line change @@ -205,9 +205,7 @@ S_ithread_set(pTHX_ ithread *thread)
205
205
{
206
206
dMY_CXT ;
207
207
MY_CXT .context = thread ;
208
- #ifdef PERL_SET_NON_tTHX_CONTEXT
209
208
PERL_SET_NON_tTHX_CONTEXT (thread -> interp );
210
- #endif
211
209
}
212
210
213
211
STATIC ithread *
Original file line number Diff line number Diff line change @@ -6153,7 +6153,7 @@ Adhp |SSize_t|PerlIO_write |NULLOK PerlIO *f \
6153
6153
|Size_t count
6154
6154
#endif /* defined(USE_PERLIO) */
6155
6155
#if defined(USE_PERL_SWITCH_LOCALE_CONTEXT)
6156
- CTop |void |switch_locale_context
6156
+ Cop |void |switch_locale_context
6157
6157
#endif
6158
6158
#if defined(USE_QUADMATH)
6159
6159
Tdp |bool |quadmath_format_needed \
Original file line number Diff line number Diff line change @@ -7210,7 +7210,7 @@ S_my_setlocale_debug_string_i(pTHX_
7210
7210
#ifdef USE_PERL_SWITCH_LOCALE_CONTEXT
7211
7211
7212
7212
void
7213
- Perl_switch_locale_context ()
7213
+ Perl_switch_locale_context (pTHX )
7214
7214
{
7215
7215
/* libc keeps per-thread locale status information in some configurations.
7216
7216
* So, we can't just switch out aTHX to switch to a new thread. libc has
@@ -7219,10 +7219,7 @@ Perl_switch_locale_context()
7219
7219
7220
7220
/* Can't use pTHX, because we may be called from a place where that
7221
7221
* isn't available */
7222
- dTHX ;
7223
-
7224
- if (UNLIKELY ( aTHX == NULL
7225
- || PL_veto_switch_non_tTHX_context
7222
+ if (UNLIKELY ( PL_veto_switch_non_tTHX_context
7226
7223
|| PL_phase == PERL_PHASE_CONSTRUCT ))
7227
7224
{
7228
7225
return ;
Original file line number Diff line number Diff line change @@ -6366,20 +6366,20 @@ EXTCONST U8 PL_deBruijn_bitpos_tab64[];
6366
6366
# define PERL_SET_LOCALE_CONTEXT (i ) \
6367
6367
STMT_START { \
6368
6368
if (LIKELY (! PL_veto_switch_non_tTHX_context)) \
6369
- Perl_switch_locale_context (); \
6369
+ Perl_switch_locale_context (i); \
6370
6370
} STMT_END
6371
+
6372
+ /* In some Configurations there may be per-thread information that is
6373
+ * carried in a library instead of perl's tTHX structure. This macro is to
6374
+ * be used to handle those when tTHX is changed. Only locale handling is
6375
+ * currently known to be affected. */
6376
+ # define PERL_SET_NON_tTHX_CONTEXT (i ) \
6377
+ STMT_START { if (i) PERL_SET_LOCALE_CONTEXT (i); } STMT_END
6371
6378
#else
6372
- # define PERL_SET_LOCALE_CONTEXT (i ) NOOP
6379
+ # define PERL_SET_LOCALE_CONTEXT (i ) NOOP
6380
+ # define PERL_SET_NON_tTHX_CONTEXT (i ) NOOP
6373
6381
#endif
6374
6382
6375
- /* In some Configurations there may be per-thread information that is carried
6376
- * in a library instead of perl's tTHX structure. This macro is to be used to
6377
- * handle those when tTHX is changed. Only locale handling is currently known
6378
- * to be affected. */
6379
- #define PERL_SET_NON_tTHX_CONTEXT (i ) \
6380
- STMT_START { PERL_SET_LOCALE_CONTEXT (i); } STMT_END
6381
-
6382
-
6383
6383
#ifndef PERL_GET_CONTEXT
6384
6384
# define PERL_GET_CONTEXT PERL_GET_INTERP
6385
6385
#endif
Original file line number Diff line number Diff line change @@ -3591,7 +3591,7 @@ Perl_set_context(void *t)
3591
3591
}
3592
3592
# endif
3593
3593
3594
- PERL_SET_NON_tTHX_CONTEXT (t );
3594
+ PERL_SET_NON_tTHX_CONTEXT (( PerlInterpreter * ) t );
3595
3595
3596
3596
#else
3597
3597
PERL_UNUSED_ARG (t );
You can’t perform that action at this time.
0 commit comments