summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2019-07-13 18:53:08 +0100
committerDavid Mitchell <davem@iabyn.com>2019-08-05 11:30:29 +0100
commitaa034fa00bac53c08ef0dd886ebf864da25d155a (patch)
tree288dfc6894241b08b698fc3e4d3c65b99a58e8b8 /op.h
parent17b8f3a1378b3c300c2e4ab298a8418f720a6b84 (diff)
downloadperl-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/op.h b/op.h
index 9a6d6fb25a..e97683efae 100644
--- a/op.h
+++ b/op.h
@@ -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 */