Merge pull request #2644 from neko1235/patch-1

Fix data race in LexerATNSimulator
This commit is contained in:
Terence Parr 2019-10-10 10:44:30 -07:00 committed by GitHub
commit dda171b118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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 {