VM* SharedState::new_vm() { VM* vm = new VM(*this); cf_locations_.push_back(vm->call_frame_location()); threads_.push_back(vm); this->ref(); // If there is no root vm, then the first on created becomes it. if(!root_vm_) root_vm_ = vm; return vm; }
VM* SharedState::new_vm() { VM* vm = new VM(*this); cf_locations_.push_back(vm->call_frame_location()); this->ref(); return vm; }