This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_opslab_force_free() adjust loop test
authorDavid Mitchell <davem@iabyn.com>
Tue, 16 Jul 2019 15:30:42 +0000 (16:30 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 5 Aug 2019 10:32:05 +0000 (11:32 +0100)
commitdae3d2d55d7ff2ff2c79e397cf2e23ecead9ddff
tree7dde3587e4f413d5e23c14f96400cf1e28792623
parent8c47b5bce7a3d69f27ab4e998ed5827d0c9964de
Perl_opslab_force_free() adjust loop test

Formerly, slots were allocated within a slab, but leaving the very top
word in the slab as a NULL pointer which appeared as a fake slot so that
a 'while (slot->opslot_next)' loop would stop. Since opslot_next has
been eradicated and the NULL is no longer allocated, the loop condition
for scanning all slots can be simplified slightly (with no change in
functionality).
op.c