-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Match_Timeout_Repetition_Throws(engine: NonBacktracking) timing out #65991
Comments
Tagging subscribers to this area: @dotnet/area-system-text-regularexpressions Issue DetailsThis outer loop test is now running for a very long time and eventually the test suite times out. I expect this is due to 83e5cbc, and that it's doing exactly what it tried to do, which is keep execution in the inner loop as long as possible. That would mean, however, that we wouldn't exit out into the outer loop frequently enough to hit the timeout check: Lines 786 to 821 in d9eafd0
cc: @olsaarik
|
Ok seems we'll need to introduce some equivalent of the previous "leeway" thing to pop out of the inner loop occasionally. The check for "did we reach the end of input" could just additionally check if the inner loop was actually given the full length of the input and if not just loop back (but skip the NFA promotion). |
I'll be making changes to these matching loops in the PR after #66038, so I can fix it at the same time. |
This outer loop test is now running for a very long time and eventually the test suite times out. I expect this is due to 83e5cbc, and that it's doing exactly what it tried to do, which is keep execution in the inner loop as long as possible. That would mean, however, that we wouldn't exit out into the outer loop frequently enough to hit the timeout check:
runtime/src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/Symbolic/SymbolicRegexMatcher.cs
Lines 786 to 821 in d9eafd0
cc: @olsaarik
The text was updated successfully, but these errors were encountered: