This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #113060] Save cop_stashlen threaded even with shared cop pv
[perl5.git] / scope.h
diff --git a/scope.h b/scope.h
index aa04a79..38da244 100644 (file)
--- a/scope.h
+++ b/scope.h
@@ -237,7 +237,8 @@ scope has the given name. Name must be a literal string.
 #ifdef USE_ITHREADS
 #  define SAVECOPSTASH(c)      (SAVEPPTR(CopSTASHPV(c)), \
                                 SAVEI32(CopSTASH_len(c)))
-#  define SAVECOPSTASH_FREE(c) SAVESHAREDPV(CopSTASHPV(c))
+#  define SAVECOPSTASH_FREE(c) (SAVESHAREDPV(CopSTASHPV(c)), \
+                                SAVEI32(CopSTASH_len(c)))
 #  define SAVECOPFILE(c)       SAVEPPTR(CopFILE(c))
 #  define SAVECOPFILE_FREE(c)  SAVESHAREDPV(CopFILE(c))
 #else