History

Fix some issues when building on mac

elinor fung committed 9 years ago

Commit 34cadb21 parent db76c0c12 files · +47 −44Browse files

Showing the changes to src/vm/vm.cpp (1 of 12 files). Show all

Unified · Split

src/vm/vm.cpp+1−1
@@ -70,7 +70,7 @@ namespace · 69 unmodified lines
70{70{
71 std::unique_ptr<runtime::vm_thread_t> _create_thread_safe(std::unique_ptr<runtime::vm_module_ref_t> &entry_module_ref)71 std::unique_ptr<runtime::vm_thread_t> _create_thread_safe(std::unique_ptr<runtime::vm_module_ref_t> &entry_module_ref)
72 {72 {
73 auto thread = std::make_unique<vm_thread_t>(*entry_module_ref, vm_t::root_vm_thread_id);73 auto thread = std::make_unique<vm_thread_t>(*entry_module_ref, disvm::vm_t::root_vm_thread_id);
74 74
75 // Now that the thread has been created and has inherited ownership of the pointer, relinquish the smart pointer's ownership.75 // Now that the thread has been created and has inherited ownership of the pointer, relinquish the smart pointer's ownership.
76 entry_module_ref->release(); // decrement the vm alloc ref count76 entry_module_ref->release(); // decrement the vm alloc ref count