Permalink
Browse files

C threads: dynamic CopFILE and CopSTASHPV to fix many coretests

There are too many cv_undef calls in the core tests suite, so pessimize
CopFILE_set and CopSTASHPV_set analog to cop_warnings, with threads only.
  • Loading branch information...
1 parent 3d3da25 commit 086956fd33781931bf1916d693fe9bf53f24e9cf @rurban committed Feb 13, 2014
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/B/C.pm
View
@@ -1775,8 +1775,7 @@ sub B::COP::save {
$init->add(sprintf( "CopFILE_set(&cop_list[$ix], %s);", cstring($file) ));
$init->add(sprintf( "CopSTASHPV_set(&cop_list[$ix], %s);", cstring($op->stashpv) ));
}
- } elsif (!$B::C::const_strings) { # cv_undef e.g. in bproto.t and many more core tests
- # with -O3 avoid cv_undef with threads
+ } else { # cv_undef e.g. in bproto.t and many more core tests with threads
my $stlen = "";
if ($] >= 5.016 and $] <= 5.017) { # 5.16 special-case API
$stlen = ", ".length($op->stashpv);

0 comments on commit 086956f

Please sign in to comment.