develooper Front page | perl.perl5.porters | Postings from November 2009

[PATCH] Add check for spurious PUSHMARKs by introducingPOPBLOCK_normal.

Thread Next
From:
Gerard Goossen
Date:
November 19, 2009 03:33
Subject:
[PATCH] Add check for spurious PUSHMARKs by introducingPOPBLOCK_normal.
Message ID:
20091119113346.GE27502@ggoossen.net
Add POPBLOCK_normal, which is similar to POPBLOCK, but instead of just
resetting the stack marker, it checks that the current stack marker is identical
to the saved stack marker, as should be the case when a block is normally
exited (without any flow control statement).

This patch detects the spurious PUSHMARKs in Devel::PPPort::Perl_ppaddr_t and
Time::HiRes::stat, and causes assertion failures without the just submitted patches.

Gerard Goossen

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About