Fix data race in LexerATNSimulator

There is a potential memory consistency problem.
This commit is contained in:
neko1235 2019-09-10 16:01:16 -07:00 committed by GitHub
parent cd81586d3d
commit e2b1ae7c79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ public class LexerATNSimulator extends ATNSimulator {
protected final SimState prevAccept = new SimState();
public static int match_calls = 0;
public static volatile int match_calls = 0;
public LexerATNSimulator(ATN atn, DFA[] decisionToDFA,
PredictionContextCache sharedContextCache)