blackdrag commented on PR #3347:
URL: https://github.com/apache/groovy/pull/3347#issuecomment-7094172313
@daniellansun The issue was about a memory leak if you use `groovy -l`. Your
solution approach is to reuse the class we compiled before. But the PR confuses
me. How is there a file to reuse if the script comes in as expression? Also
what happens if we send a different script each time? For example with `groovy
-e "def n =0; while (true) { n++; new Socket('localhost',5000).outputStream <<
n+'\n'}"` Then you will not be reusing the existing script anymore, and if the
issue still holds, this will run out of memory.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]