Hack to workaround hangs by pinning to one cpu

This commit is contained in:
Jeremy Soller
2024-02-10 09:18:57 -07:00
parent 9331452bdb
commit 98f12fd750
+5
View File
@@ -29,6 +29,11 @@ unsafe fn update_runnable(context: &mut Context, cpu_id: LogicalCpuId) -> bool {
return false;
}
//TODO: HACK TO WORKAROUND HANGS BY PINNING TO ONE CPU
if !context.cpu_id.map_or(true, |x| x == cpu_id) {
return false;
}
// Restore from signal, must only be done from another context to avoid overwriting the stack!
if context.ksig_restore {
let was_singlestep = ptrace::regs_for(context)