diff options
author | Father Chrysostomos <sprout@cpan.org> | 2013-12-29 16:43:03 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2013-12-29 16:43:03 -0800 |
commit | 91fc0422e3a3e3aa6b0c35bb1d4d18d03fd35f30 (patch) | |
tree | 46ff1b421c9ab82a90b6929122e5845e56a09034 /pod/perlhacktips.pod | |
parent | 22d36020eee5daeca31211c83f903b5ad55305f7 (diff) | |
download | perl-91fc0422e3a3e3aa6b0c35bb1d4d18d03fd35f30.tar.gz |
perlhacktips: -Accflags for PERL_DEBUG_READONLY_OPS
It is not clear to all that this has to be specified as
-Accflags=-D... when used on the Configure command line.
Diffstat (limited to 'pod/perlhacktips.pod')
-rw-r--r-- | pod/perlhacktips.pod | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pod/perlhacktips.pod b/pod/perlhacktips.pod index e3ef6f9bbe..2f19c04b83 100644 --- a/pod/perlhacktips.pod +++ b/pod/perlhacktips.pod @@ -1391,7 +1391,8 @@ L<perlclib>. Under ithreads the optree is read only. If you want to enforce this, to check for write accesses from buggy code, compile with -C<-DPERL_DEBUG_READONLY_OPS> to enable code that allocates op memory +C<-Accflags=-DPERL_DEBUG_READONLY_OPS> +to enable code that allocates op memory via C<mmap>, and sets it read-only when it is attached to a subroutine. Any write access to an op results in a C<SIGBUS> and abort. |