develooper Front page | perl.perl5.porters | Postings from February 2017

Re: Apparent 4 avail bits in SV flags

Thread Previous | Thread Next
February 13, 2017 04:50
Re: Apparent 4 avail bits in SV flags
Message ID:
Father Chrysostomos wrote:
> Karl Williamson wrote:
>> It looks to me, and others on #p5p that there are 4 unused bits in the
>> flags for an SV.
>> The types take up 4 bits, but then the actual flags, like SVf_IOK, start
>> at 0x100.  That apparently means bits  matching the mask 0xF0 are
>> available.  Are we wrong?
> 0xFF is a type.  It means the SV is freed.  (But that is not to say we
> could not change it.  Rather, there might be another reason not to
> change it.)

I've thought about SV types from 0x10 to 0xFF being used for allocate 
non-SV/AV/HV/CV body memory blocks from the SV arena allocator, like GP 
structs which are currently malloced.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About