File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package B::PV;
2
2
3
3
use strict;
4
4
5
- use B qw/ SVf_IsCOW SVf_ROK SVf_POK SVp_POK SVs_GMG SVt_PVGV SVf_READONLY/ ;
5
+ use B qw/ SVf_IsCOW SVf_ROK SVf_POK SVp_POK SVs_GMG SVt_PVGV SVf_READONLY SVf_FAKE / ;
6
6
use B::C::Debug qw/ debug/ ;
7
7
use B::C::Save qw/ savecowpv/ ;
8
8
use B::C::Save::Hek qw/ save_shared_he get_sHe_HEK/ ;
@@ -41,7 +41,7 @@ sub do_save {
41
41
42
42
# static pv, do not destruct. test 13 with pv0 "3".
43
43
if ( !$shared_hek and $flags & SVf_READONLY and !$len ) {
44
- $flags &= ~0x01000000;
44
+ $flags ^= SVf_FAKE; # turn off SVf_FAKE
45
45
debug( pv => " turn off SVf_FAKE %s %s \n " , $pv , $fullname );
46
46
}
47
47
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package B::C::Section;
2
2
use strict;
3
3
4
4
# use warnings
5
+ use B qw/ SVf_FAKE/ ;
5
6
6
7
use B::C::Helpers::Symtable ();
7
8
my %sections ;
@@ -24,7 +25,7 @@ sub new {
24
25
25
26
# if sv add a dummy sv_arenaroot to support global destruction
26
27
if ( $section eq ' sv' ) {
27
- $self -> add(" NULL, 0, SVTYPEMASK|0x01000000 , {0}" ); # SVf_FAKE
28
+ $self -> add(" NULL, 0, SVTYPEMASK|" .SVf_FAKE. " , {0}" );
28
29
$self -> debug(" PL_sv_arenaroot" );
29
30
}
30
31
You can’t perform that action at this time.
0 commit comments