Commit a904ab0d authored by Isaac Oscar Gariano's avatar Isaac Oscar Gariano

Use current threadlocal?

parent 6d57a6df
......@@ -25,7 +25,7 @@ else
export CC=clang
export CXX=clang++
export RUST_TEST_THREADS=1
export RUST_BACKTRACE=1
export RUST_BACKTRACE=full
export PYTHONPATH=$CI_HOME/mu-client-pypy:$CI_HOME/RPySOM/src
export RPYSOM=$CI_HOME/RPySOM
......
......@@ -305,7 +305,9 @@ pub extern "C" fn mu_resume(
dumped_vm: *mut Arc<VM>
) -> *mut CMuVM {
// resume the VM and wrap it into a C API object
to_CMuVM(resume_runtime(stm, htm, edata, dumped_vm))
let vm = resume_runtime(stm, htm, edata, dumped_vm);
unsafe { thread::MuThread::current_thread_as_mu_thread(Address::zero(), vm.clone()); }
to_CMuVM(vm)
}
fn resume_runtime(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment