This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Ensure stack is in consistent state while restoring SAVEt_HINTS
SAVEt_HINTS has a non-constant savestack structure. If the
HINT_LOCALIZE_HH flag was set it pushes an additional pointer. In some
complex code scenarios it is possible reënter Perl code while destroying
nested PL_hintgv hashes (for example, if any stored objects contain
`free` magic). Because of this, it is important that we pop the extra
value from the save stack before any other code can be invoked, so if
they need to inspect or alter the save stack, they can do so in a
consistent manner.
See also
https://github.com/Perl/perl5/issues/17895