This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Assert that backreferences array is not freed rather than handling it
authorDave Mitchell <davem@fdisolutions.com>
Wed, 20 Aug 2008 23:43:01 +0000 (23:43 +0000)
committerDave Mitchell <davem@fdisolutions.com>
Wed, 20 Aug 2008 23:43:01 +0000 (23:43 +0000)
commit41fae7a143a727427be3286c0c9dea8033177568
treebdf765294281ec2f316ceb7d02b041997e0f8169
parentb17f5ab768c4daa8faac6c85c0c20d3895f406e1
Assert that backreferences array is not freed rather than handling it

In several places where the weakrefs backreferences array is used
or freed, the code checks whether the array has already been freed
and if so skips. Since the array already being freed is a bad bug,
lets instead assert that this never happens, based on the
assumptions that (a) such premature freeing bugs are likely ironed
out by now, (b) if they aren't then we want to know about them and
fix them rather than silently skip.

p4raw-id: //depot/perl@34210
sv.c