Skip to content

Commit

Permalink
perldelta: Document the new SvTYPE() checks added by 2463f19 and rela…
Browse files Browse the repository at this point in the history
…ted work
  • Loading branch information
leonerd committed Jul 26, 2024
1 parent 0209f74 commit a1f85d9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pod/perldelta.pod
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,16 @@ well.

=item *

XXX
When built with the C<-DDEBUGGING> compile option, perl API functions that
take pointers to distinct types of SVs (AVs, HVs or CVs) will check the
C<SvTYPE()> of the passed values to ensure they are valid. Additionally,
internal code within core functions that attempts to extract AVs, HVs or CVs
from reference values passed in will also perform such checks.

While this has been entirely tested by normal Perl CI testing, there may
still be some corner-cases where these constraints are violated in
otherwise-valid calls. These may require further investigation if they are
found, and specific code to be adjusted to account for it.

=back

Expand Down

0 comments on commit a1f85d9

Please sign in to comment.