This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
OPSLOT: replace opslot_next with opslot_size
authorDavid Mitchell <davem@iabyn.com>
Tue, 16 Jul 2019 15:14:58 +0000 (16:14 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 5 Aug 2019 10:31:12 +0000 (11:31 +0100)
commit8c47b5bce7a3d69f27ab4e998ed5827d0c9964de
treec970e410ec2a08b1ef67bf9b524f43a2d7d2baa6
parentc63fff64d7aa23894e5fa68504e177f77b72fce9
OPSLOT: replace opslot_next with opslot_size

Currently, each allocated opslot has a pointer to the opslot that was
allocated immediately above it. Replace this with a U16 opslot_size field
giving the size of the opslot. The next opslot can then be found by
adding slot->opslot_size * sizeof(void*) to slot.

This saves space.
op.c
op.h