summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-08-27 14:40:56 -0600
committerKarl Williamson <khw@cpan.org>2022-08-28 10:41:55 -0600
commitf916ffc593f16ac4999d174110e61265ea7d8251 (patch)
treeba69c3dd64072a792bedc0cf848327bf1796e559 /perl.h
parent33a05a755569173075bd45cdc296a71392b203b7 (diff)
downloadperl-f916ffc593f16ac4999d174110e61265ea7d8251.tar.gz
Use LIFO in Destroying locale subsystem
I noticed this in code reading. I don't know if it is currently a problem, but at destruction time, the last created should be the first destroyed, as nothing should be depending on it (since everything else was created before it), but it and its destruction could be depending on things created earlier.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl.h b/perl.h
index cfdaacd162..791262dd3d 100644
--- a/perl.h
+++ b/perl.h
@@ -7247,9 +7247,9 @@ the plain locale pragma without a parameter (S<C<use locale>>) is in effect.
} STMT_END
# define LOCALE_TERM STMT_START { \
- MUTEX_DESTROY(&PL_locale_mutex); \
- LOCALE_TERM_LC_NUMERIC_; \
LOCALE_TERM_POSIX_2008_; \
+ LOCALE_TERM_LC_NUMERIC_; \
+ MUTEX_DESTROY(&PL_locale_mutex); \
} STMT_END
#endif