Fix data race in LexerATNSimulator
There is a potential memory consistency problem.
This commit is contained in:
parent
cd81586d3d
commit
e2b1ae7c79
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue