diff options
author | David Mitchell <davem@iabyn.com> | 2019-07-13 18:53:08 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2019-08-05 11:30:29 +0100 |
commit | aa034fa00bac53c08ef0dd886ebf864da25d155a (patch) | |
tree | 288dfc6894241b08b698fc3e4d3c65b99a58e8b8 /op.h | |
parent | 17b8f3a1378b3c300c2e4ab298a8418f720a6b84 (diff) | |
download | perl-aa034fa00bac53c08ef0dd886ebf864da25d155a.tar.gz |
OPSLAB: always have opslab_size field
Currently this struct only has the opslab_size field on debugging
builds. Change it so that this field is always present. This will make
it easier to not need a fake partial OPSLOT at the end of the slab with
a NULL opslot_next field, which will in turn simplify converting
opslot_next into U16 size field shortly.
Diffstat (limited to 'op.h')
-rw-r--r-- | op.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -701,8 +701,9 @@ struct opslab { OPSLAB * opslab_head; /* first slab in chain */ OP * opslab_freed; /* chain of freed ops */ size_t opslab_refcnt; /* number of ops (head slab only) */ + U16 opslab_size; /* size of slab in pointers, + including header */ # ifdef PERL_DEBUG_READONLY_OPS - U16 opslab_size; /* size of slab in pointers */ bool opslab_readonly; # endif OPSLOT opslab_slots; /* slots begin here */ |