time limit for compiled script
Tomáš Zíma
tomas at tzima.cz
Mon Feb 22 23:47:38 UTC 2016
Hello,
is there any recommended way to kill (compiled) unresponsive script? In
a service we're running, pieces of JavaScript code are submitted by
users and introducing some limitations is absolutely necessary. I'd like
to avoid using deprecated stop() method on the thread, which is
currently the only solution I can think of.
I know it's dangerous to forcefully stop the execution as it can leave
the application in an inconsistent or corrupted state (and that's why
stop() is deprecated), but this is something I can't deal with right now.
Thank you.
-tzima
More information about the nashorn-dev
mailing list