summaryrefslogtreecommitdiff
path: root/makedef.pl
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-03-09 11:27:28 -0700
committerKarl Williamson <khw@cpan.org>2018-03-12 10:22:01 -0600
commit423a80b7c64953ef2d8696dae9f0bd751f996893 (patch)
tree8fca4e5eca03c8560d22ac39742438bd441e9953 /makedef.pl
parent8d72e74e3dc5017c5a3fade48e0c74109c297ebc (diff)
downloadperl-423a80b7c64953ef2d8696dae9f0bd751f996893.tar.gz
Don't create unneeded mutexes
These mutexes are needed only for unsafe threaded-locale operations.
Diffstat (limited to 'makedef.pl')
-rw-r--r--makedef.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/makedef.pl b/makedef.pl
index 06c647fc2c..626d990744 100644
--- a/makedef.pl
+++ b/makedef.pl
@@ -436,6 +436,11 @@ unless ($define{'PERL_IMPLICIT_CONTEXT'}) {
);
}
+if (${^SAFE_LOCALES}) {
+ ++$skip{PL_locale_mutex};
+ ++$skip{PL_lc_numeric_mutex};
+}
+
unless ($define{'PERL_OP_PARENT'}) {
++$skip{$_} foreach qw(
Perl_op_parent