This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
rmv context from Perl_croak_no_modify and Perl_croak_xs_usage
authorDaniel Dragan <bulk88@hotmail.com>
Mon, 12 Nov 2012 05:04:00 +0000 (00:04 -0500)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 12 Nov 2012 14:17:36 +0000 (06:17 -0800)
commitcb077ed29694c30e42772d2c1fc2d9a9b3183eca
treed8af4ba26da3f83b7425214465b2c7d6fc28dd3b
parent18c931a3833eccac01983e3e50239ca36de82ec4
rmv context from Perl_croak_no_modify and Perl_croak_xs_usage

Remove the context/pTHX from Perl_croak_no_modify and Perl_croak_xs_usage.
For croak_no_modify, it now has no parameters (and always has been
no return), and on some compilers will now be optimized to a conditional
jump. For Perl_croak_xs_usage one push asm opcode is removed at the caller.
For both funcs, their footprint in their callers (which probably are hot
code) is smaller, which means a tiny bit more room in the cache. My text
section went from 0xC1A2F to 0xC198F after apply this. Also see
http://www.nntp.perl.org/group/perl.perl5.porters/2012/11/msg195233.html .
17 files changed:
av.c
doop.c
embed.fnc
embed.h
ext/Tie-Hash-NamedCapture/NamedCapture.pm
ext/Tie-Hash-NamedCapture/NamedCapture.xs
mg.c
pod/perldelta.pod
pp.c
pp_hot.c
pp_sort.c
pp_sys.c
proto.h
regcomp.c
sv.c
universal.c
util.c