File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,9 @@ class Scheduler : public GlobAlloc, public Callee {
560
560
futex_lock (&schedLock);
561
561
uint32_t gid = getGid (pid, tid);
562
562
if (gidMap.find (gid) == gidMap.end ()) {
563
- panic (" Scheduler::getMask(): can't find thread info pid=%d, tid=%d" , pid, tid);
563
+ warn (" Scheduler::getMask(): can't find thread info pid=%d, tid=%d" , pid, tid);
564
+ mask.resize (zinfo->numCores , true );
565
+ return mask;
564
566
}
565
567
ThreadInfo* th = gidMap[gid];
566
568
mask = th->mask ;
@@ -572,7 +574,8 @@ class Scheduler : public GlobAlloc, public Callee {
572
574
futex_lock (&schedLock);
573
575
uint32_t gid = getGid (pid, tid);
574
576
if (gidMap.find (gid) == gidMap.end ()) {
575
- panic (" Scheduler::updateMask(): can't find thread info pid=%d, tid=%d" , pid, tid);
577
+ warn (" Scheduler::updateMask(): can't find thread info pid=%d, tid=%d" , pid, tid);
578
+ return ;
576
579
}
577
580
ThreadInfo* th = gidMap[gid];
578
581
// info("Scheduler::updateMask(): update thread mask pid=%d, tid=%d", pid, tid);
You can’t perform that action at this time.
0 commit comments