summaryrefslogtreecommitdiff
path: root/pod/perlhacktips.pod
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-06-23 17:47:33 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-06-29 00:20:58 -0700
commit7e0f24e59bf40b2be3dc3bcf94ca24a10dac4cae (patch)
tree736734551ab1fbebcaaa362b7f218e14fd04d490 /pod/perlhacktips.pod
parent01995fcc964779c368050e699e454ea876ef63f6 (diff)
downloadperl-7e0f24e59bf40b2be3dc3bcf94ca24a10dac4cae.tar.gz
perlhacktips: Update PERL_DEBUG_READONLY_OPS
Diffstat (limited to 'pod/perlhacktips.pod')
-rw-r--r--pod/perlhacktips.pod7
1 files changed, 4 insertions, 3 deletions
diff --git a/pod/perlhacktips.pod b/pod/perlhacktips.pod
index 6c335507ce..dba0d405ff 100644
--- a/pod/perlhacktips.pod
+++ b/pod/perlhacktips.pod
@@ -1460,10 +1460,11 @@ 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<-DPL_OP_SLAB_ALLOC> to enable the OP slab allocator and
+C<-DPL_OP_SLAB_ALLOC> to enable the old OP slab allocator and
C<-DPERL_DEBUG_READONLY_OPS> to enable code that allocates op memory
-via C<mmap>, and sets it read-only at run time. Any write access to an
-op results in a C<SIGBUS> and abort.
+via C<mmap>, and sets it read-only at run time. (PERL_DEBUG_READONLY_OPS
+has not been rewritten for the new slab allocator, so op trees may leak.)
+Any write access to an op results in a C<SIGBUS> and abort.
This code is intended for development only, and may not be portable
even to all Unix variants. Also, it is an 80% solution, in that it