diff options
author | Karl Williamson <khw@cpan.org> | 2020-09-05 18:04:39 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-09-05 18:09:43 -0600 |
commit | 4f7dafea39b73f82307e04061cb36ac6865108b9 (patch) | |
tree | 15e098ef0a389856607c9889ba1de7600f4cac4c /util.c | |
parent | 8de16cf63a494da6b361ce55148e6c06cf18461c (diff) | |
download | perl-4f7dafea39b73f82307e04061cb36ac6865108b9.tar.gz |
perlapi: Clarify croak_no_modify()
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1914,9 +1914,12 @@ Perl_croak(pTHX_ const char *pat, ...) /* =for apidoc croak_no_modify -Exactly equivalent to C<Perl_croak(aTHX_ "%s", PL_no_modify)>, but generates -terser object code than using C<Perl_croak>. Less code used on exception code -paths reduces CPU cache pressure. +This encapsulates a common reason for dying, generating terser object code than +using the generic C<Perl_croak>. It is exactly equivalent to +C<Perl_croak(aTHX_ "%s", PL_no_modify)> (which expands to something like +"Modification of a read-only value attempted"). + +Less code used on exception code paths reduces CPU cache pressure. =cut */ |