Merge pull request #2644 from neko1235/patch-1
Fix data race in LexerATNSimulator
This commit is contained in:
commit
dda171b118
|
@ -224,6 +224,7 @@ YYYY/MM/DD, github id, Full name, email
|
|||
2019/08/23, akaJes, Oleksandr Mamchyts, akaJes@gmail.com
|
||||
2019/09/10, ImanHosseini, Iman Hosseini, hosseini.iman@yahoo.com
|
||||
2019/09/03, João Henrique, johnnyonflame@hotmail.com
|
||||
2019/09/10, neko1235, Ihar Mokharau, igor.mohorev@gmail.com
|
||||
2019/09/10, yar3333, Yaroslav Sivakov, yar3333@gmail.com
|
||||
2019/09/10, marcospassos, Marcos Passos, marcospassos.com@gmail.com
|
||||
2019/09/10, amorimjuliana, Juliana Amorim, juu.amorim@gmail.com
|
||||
|
|
|
@ -78,8 +78,6 @@ public class LexerATNSimulator extends ATNSimulator {
|
|||
|
||||
protected final SimState prevAccept = new SimState();
|
||||
|
||||
public static int match_calls = 0;
|
||||
|
||||
public LexerATNSimulator(ATN atn, DFA[] decisionToDFA,
|
||||
PredictionContextCache sharedContextCache)
|
||||
{
|
||||
|
@ -103,7 +101,6 @@ public class LexerATNSimulator extends ATNSimulator {
|
|||
}
|
||||
|
||||
public int match(CharStream input, int mode) {
|
||||
match_calls++;
|
||||
this.mode = mode;
|
||||
int mark = input.mark();
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue