by foobarbazetc · 8y ago · 0 comments
We disable all extensions. We do some instrumentation on string ops as well. We use the mbean API to get the memory and CPU usage of the current thread. We have a monitor thread that checks that for all worker threads. I’ve probably forgotten a bunch of things but it was a huge pain. I’m going to tell our guys about your solution and see if that’s something we can look into.
[]["constructor"]["constructor"]("while (true) { }")()
Or does Nashorn have a mechanism for forcing the code static?