Skip to content

Commit

Permalink
[GR-18889] TRegex: fix race condition when switching to DFA matcher.
Browse files Browse the repository at this point in the history
PullRequest: graal/4621
  • Loading branch information
djoooooe committed Oct 15, 2019
2 parents f17c377 + 41b0640 commit 0c17081
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 0c17081

Please sign in to comment.