Changes to vvp/vthread.cc
"child->delay_delete = 1;" was added, for when building with "Microsoft Visual Studio Express 2015 RC Web" in DEBUG mode, so that pr2909555.v would pass with -strict, otherwise it would cause memory access error will trying to access the previously deleted "child" variable.
This commit is contained in:
parent
afd225a44d
commit
c35f2f8334
|
|
@ -5818,6 +5818,7 @@ bool of_EXEC_UFUNC(vthread_t thr, vvp_code_t cp)
|
|||
child->rd_context = child_context;
|
||||
|
||||
child->is_scheduled = 1;
|
||||
child->delay_delete = 1;
|
||||
vthread_run(child);
|
||||
running_thread = thr;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue