kotlinx / ast

Generic AST parsing library for kotlin multiplatform
Apache License 2.0
316 stars 22 forks source link

org.antlr.v4.kotlinruntime.atn.ATNConfig object has a large number of instance counts, OOM #102

Open LiuShiYi1027 opened 1 year ago

LiuShiYi1027 commented 1 year ago
image

When I use kotlinx.ast in a server process, the process Out Of Memory, I found that org.antlr.v4.kotlinruntime.atn.ATNConfig object has a large number of instance counts, and the process would be crashed.

so how can l clear it.

I found there is a same problem: https://stackoverflow.com/questions/28017135/why-antlr4-parsers-accumulates-atnconfig-objects

but I do not know how i fixed it.