[Perl/perl5] ba053c: regcomp: switch to BRANCHJ before overflow
[email protected] (Furutsuki via perl5-changes) Wed, 22 Jul 2026 04:32:24 -0700
| Newsgroups | perl.perl5.changes |
|---|---|
| Message-ID | <Perl/perl5/push/refs/heads/blead/[email protected]> |
Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: ba053cae34c5335042150d2d4c2e51f92772e593
https://github.com/Perl/perl5/commit/ba053cae34c5335042150d2d4c2e51f92772e593
Author: theoremoon <[email protected]>
Date: 2026-07-22 (Wed, 22 Jul 2026)
Changed paths:
M regcomp.c
Log Message:
-----------
regcomp: switch to BRANCHJ before overflow
Since bf848a1252, a branch offset overflow can be discovered late in
regexp compilation, after most of a large regexp program has already
been constructed. Compilation is then restarted with BRANCHJ enabled,
increasing compilation time and resident memory.
Select BRANCHJ once the emitted program position exceeds U16_MAX, while
retaining the exact overflow checks in regtail() and regtail_study().
Let the paren-counting pass finish before requesting a restart.
Commit: 1549553d9a7fea926ae67172490bb02d659d80c2
https://github.com/Perl/perl5/commit/1549553d9a7fea926ae67172490bb02d659d80c2
Author: theoremoon <[email protected]>
Date: 2026-07-22 (Wed, 22 Jul 2026)
Changed paths:
M AUTHORS
Log Message:
-----------
Add theoremoon to AUTHORS
Compare: https://github.com/Perl/perl5/compare/8f0cfc33fc3f...1549553d9a7f
To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications