History

Add a way to set the number of system threads the VM will use for disvm-exec. Update banner in disvm-exec to indicate DisVM version.

arr committed 10 years ago

Commit 093cfc11 parent 265a2bf3 files · +45 −12Browse files

Showing the changes to src/include (1 of 3 files). Show all

Unified · Split

src/include/disvm.h+5−0
@@ -57,6 +57,11 @@ namespace disvm · 56 unmodified lines
5757 public: // static
5858 static const auto root_vm_thread_id = uint32_t{ 0 };
5959
60+ static const auto default_system_thread_count = uint32_t{ 1 };
61+
62+ // The Inferno implementation defined the thread quanta as 2048 (include/interp.h)
63+ static const auto default_thread_quanta = uint32_t{ 2048 };
64+
6065 public:
6166 explicit vm_t(
6267 create_vm_interface_callback_t<runtime::vm_scheduler_t> create_scheduler = nullptr,