File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/parser Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 29
29
30
30
import java .util .HashMap ;
31
31
import java .util .Map ;
32
+ import java .util .concurrent .ConcurrentHashMap ;
32
33
import java .util .regex .Pattern ;
33
34
34
35
import org .antlr .v4 .runtime .CharStreams ;
52
53
import com .oracle .truffle .api .source .SourceSection ;
53
54
54
55
public final class PythonParserImpl implements PythonParser {
55
- private static final Map <String , ParserRuleContext > cachedParseTrees = new HashMap <>();
56
+ private static final Map <String , ParserRuleContext > cachedParseTrees = new ConcurrentHashMap <>();
56
57
57
58
private static Python3Parser getPython3Parser (CodePointCharStream fromString ) {
58
59
Python3Parser parser = new Builder .Parser (fromString ).build ();
You can’t perform that action at this time.
0 commit comments