summaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authorStefan Seifert <nine@detonation.org>2019-10-30 16:23:01 +0100
committerTony Cook <tony@develop-help.com>2019-12-12 11:35:20 +1100
commite6c7056ba6f1dca6d04e6d36515a0ffc3a5ec02a (patch)
tree76f720186b490fb6d156db4048883af91258e4af /opcode.h
parent91e49152f27fa00e0cb6d477928f8098a9367c05 (diff)
downloadperl-e6c7056ba6f1dca6d04e6d36515a0ffc3a5ec02a.tar.gz
Move PL_check to the interp vars to fix threading issues
Fixes issue #14816
Diffstat (limited to 'opcode.h')
-rw-r--r--opcode.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/opcode.h b/opcode.h
index c4104dded1..63a9f9d9d7 100644
--- a/opcode.h
+++ b/opcode.h
@@ -1374,15 +1374,8 @@ EXT Perl_ppaddr_t PL_ppaddr[] /* or perlvars.h */
;
#endif
-#ifdef PERL_GLOBAL_STRUCT_INIT
-# define PERL_CHECK_INITED
+#ifdef PERL_IN_PERL_C
static const Perl_check_t Gcheck[]
-#elif !defined(PERL_GLOBAL_STRUCT)
-# define PERL_CHECK_INITED
-EXT Perl_check_t PL_check[] /* or perlvars.h */
-#endif
-#if (defined(DOINIT) && !defined(PERL_GLOBAL_STRUCT)) || defined(PERL_GLOBAL_STRUCT_INIT)
-# define PERL_CHECK_INITED
= {
Perl_ck_null, /* null */
Perl_ck_null, /* stub */
@@ -1782,11 +1775,8 @@ EXT Perl_check_t PL_check[] /* or perlvars.h */
Perl_ck_null, /* lvavref */
Perl_ck_null, /* anonconst */
Perl_ck_isa, /* isa */
-}
+};
#endif
-#ifdef PERL_CHECK_INITED
-;
-#endif /* #ifdef PERL_CHECK_INITED */
#ifndef PERL_GLOBAL_STRUCT_INIT