-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Str library: avoid global state in RE engine (#10670)
This will work better with Multicore OCaml. The initial backtrack stack block and the array of registers are now local variables of `re_match`, and therefore reside in the C stack. Backtrack stack blocks were reduced from 500 to 200 entries, so that the C stack frame for `re_match` doesn't get too big (under 4 Kb).
- Loading branch information
1 parent
3eb0ab0
commit 6e053e0
Showing
2 changed files
with
20 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters