Closed itgenie98 closed 4 years ago
Ahh. It appears the coroutine threads are still kicking around, and so the VM doesn't terminate until the thread-pool kills them.
I guess we should probably set them up to run as daemon threads instead, but might be worthwhile explicitly shutting down the thread pool when the process terminates.
Ahh. It appears the coroutine threads are still kicking around, and so the VM doesn't terminate until the thread-pool kills them.
I guess we should probably set them up to run as daemon threads instead, but might be worthwhile explicitly shutting down the thread pool once the input program has finished.
Problem
Cobalt needs very long to end his process if the class
org.squiddev.cobalt.cmd.lua
is used. Even with simple hello world scripts:Measurements
Windows:
WSL
System Information
Cobalt commit 080368883a4b958315746896101578328b6c139f Java version: