Single CPU sched_yield seems fine.
Fix a bug due to ENV->env_status when falling into trap.
Multi CPU condition perhaps is fine.