mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-10 13:11:50 +09:00
working proof-of-concept hypervisor using Parallel
This commit is contained in:
@@ -293,6 +293,7 @@ class Parallel(private val vm: VM) {
|
||||
thread.interrupt()
|
||||
vm.contexts.remove(thread)
|
||||
}
|
||||
fun isRunning(thread: Thread) = thread.isAlive
|
||||
fun getThreadPool() = vm.contexts
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ object VMRunnerFactory {
|
||||
"js" -> {
|
||||
object : VMRunner(extension) {
|
||||
private val ringOneParallel = Parallel(vm)
|
||||
private val ringTwoParallel = ParallelDummy()
|
||||
private val ringTwoParallel = Parallel(vm)//ParallelDummy()
|
||||
|
||||
private val context = Context.newBuilder("js")
|
||||
.allowHostAccess(HostAccess.ALL)
|
||||
|
||||
Reference in New Issue
Block a user