Skip to content

Commit

Permalink
TRegex: fix race condition when switching to DFA matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
djoooooe committed Oct 15, 2019
1 parent 19cebc1 commit 41b0640
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public RegexProfile getRegexProfile() {
return regexProfile;
}

private void switchToLazyDFA() {
private synchronized void switchToLazyDFA() {
compileLazyDFA();
if (lazyDFANode != LAZY_DFA_BAILED_OUT) {
runnerNode = insert(lazyDFANode);
Expand Down

0 comments on commit 41b0640

Please sign in to comment.