From: Vincent Pit Date: Mon, 9 Sep 2013 17:07:53 +0000 (+0200) Subject: Preserve lexicals across dounwind() calls on perl 5.19.4 and above X-Git-Tag: v0.24~1 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=75dce157fb6b369c19c2dabc7de370feb0a79ae5;hp=75dce157fb6b369c19c2dabc7de370feb0a79ae5;p=perl%2Fmodules%2FScope-Upper.git Preserve lexicals across dounwind() calls on perl 5.19.4 and above unwind() used to rely on the stack being preserved when dounwind() is called. However, starting with change 25375124, dounwind() can now call leave_scope() which will clean up lexicals in the unwinded scopes. We can work around this by temporarily bumping the refcount of possibly problematic scalars before calling dounwind(). See also https://rt.perl.org/rt3/Ticket/Display.html?id=119681. ---