From: Jim Cromie Date: Sun, 18 Nov 2007 18:01:13 +0000 (-0700) Subject: rc1 patch - delta, comment nits X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e15dad31518e417fb393c47e2ea49139c989feee;p=p5sagit%2Fp5-mst-13.2.git rc1 patch - delta, comment nits Message-ID: <4740E059.30808@gmail.com> p4raw-id: //depot/perl@32401 --- diff --git a/pod/perl5100delta.pod b/pod/perl5100delta.pod index b37a7dc..b3c14d6 100644 --- a/pod/perl5100delta.pod +++ b/pod/perl5100delta.pod @@ -111,10 +111,10 @@ nested balanced angle brackets: $ # end of line /x -Note, users experienced with PCRE will find that the Perl implementation -of this feature differs from the PCRE one in that it is possible to -backtrack into a recursed pattern, whereas in PCRE the recursion is -atomic or "possessive" in nature. (Yves Orton) +PCRE users should note that Perl's recursive regex feature allows +backtracking into a recursed pattern, whereas in PCRE the recursion is +atomic or "possessive" in nature. As in the example above, you can +add (?>) to control this selectively. (Yves Orton) =item Named Capture Buffers @@ -124,7 +124,7 @@ It's possible to backreference to a named buffer with the C<< \k >> syntax. In code, the new magical hashes C<%+> and C<%-> can be used to access the contents of the capture buffers. -Thus, to replace all doubled chars, one could write +Thus, to replace all doubled chars with a single copy, one could write s/(?.)\k/$+{letter}/g @@ -1036,7 +1036,7 @@ released. =item Aho-Corasick start-point optimisation When a pattern starts with a trie-able alternation and there aren't -better optimisations available the regex engine will use Aho-Corasick +better optimisations available, the regex engine will use Aho-Corasick matching to find the start point. (Yves Orton) =back diff --git a/sv.c b/sv.c index 7d3c583..824db49 100644 --- a/sv.c +++ b/sv.c @@ -544,7 +544,8 @@ Perl_sv_clean_all(pTHX) memory in the last arena-set (1/2 on average). In trade, we get back the 1st slot in each arena (ie 1.7% of a CV-arena, less for smaller types). The recovery of the wasted space allows use of - small arenas for large, rare body types, + small arenas for large, rare body types, by changing array* fields + in body_details_by_type[] below. */ struct arena_desc { char *arena; /* the raw storage, allocated aligned */ @@ -555,7 +556,7 @@ struct arena_desc { struct arena_set; /* Get the maximum number of elements in set[] such that struct arena_set - will fit within PERL_ARENA_SIZE, which is probabably just under 4K, and + will fit within PERL_ARENA_SIZE, which is probably just under 4K, and therefore likely to be 1 aligned memory page. */ #define ARENAS_PER_SET ((PERL_ARENA_SIZE - sizeof(struct arena_set*) \