This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
make RC-stack-aware: eval_sv()
authorDavid Mitchell <davem@iabyn.com>
Thu, 19 Jan 2023 14:06:10 +0000 (14:06 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 16 Aug 2023 16:16:59 +0000 (17:16 +0100)
commit00fc1d567b0fefdc90e659aae2c44c33cbeed7b6
treec371bb5addd785d9d1a57db51b60550cda919662
parent5ff0c5f0e40237273b8719ae8bbfab04b2b9805a
make RC-stack-aware: eval_sv()

Similar to the previous commit which fixed up call_sv() and similar,
the commit updates eval_sv() to handle a reference-counted stack
environment.

Note that these functions are slightly unusual in that they can
be called from either a reference-counted or non-RC stack environment,
so must be able to handle either case. This is done mostly by relying on
CALLRUNOPS() to fix things up, but for anything pushed/pulled around
that, by checking rpp_stack_is_rc(): which currently always returns
false, but once ref-counting is enabled in a few commits' time, may
start returning true.
perl.c