-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thread safety and event loops #468
Comments
new java.lang.Thread(() -> { |
Don't do that. You can have Java run |
I wonder if java.lang.Thread is started in JS, how does it work, is it a new scheduler thread? It's very uncomfortable to break the event loop like this, it's easy to be maliciously injected into such code and the execution of the code can't be terminated, I wonder how the started thread is running in V8, can it be detected and forcibly interrupted? |
In a pure environment, you can use System.exit to force quit, but android can't, once you quit, the whole app is closed. |
I need to file a dangerous problem, at the same time that the JVM is open to JS, there are some APIs that can break the JS event loop, java.lang.Thread, if I start a Java thread in the engine, the JS engine terminates, but the thread will still run, if it is injected with malicious code, the consequences are unimaginable, is there a way to force termination.
The text was updated successfully, but these errors were encountered: