perlhacktips: Update PERL_DEBUG_READONLY_OPS
authorFather Chrysostomos <sprout@cpan.org>
Sun, 24 Jun 2012 00:47:33 +0000 (17:47 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 29 Jun 2012 07:20:58 +0000 (00:20 -0700)
pod/perlhacktips.pod

index 6c33550..dba0d40 100644 (file)
@@ -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