Skip to content

Commit

Permalink
[scheduler] Downgrade missing thread to warning for get/set affinity …
Browse files Browse the repository at this point in the history
…mask.
  • Loading branch information
gaomy3832 committed Dec 23, 2016
1 parent 51c4672 commit 2f83732
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/scheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,9 @@ class Scheduler : public GlobAlloc, public Callee {
futex_lock(&schedLock);
uint32_t gid = getGid(pid, tid);
if(gidMap.find(gid) == gidMap.end()) {
panic("Scheduler::getMask(): can't find thread info pid=%d, tid=%d", pid, tid);
warn("Scheduler::getMask(): can't find thread info pid=%d, tid=%d", pid, tid);
mask.resize(zinfo->numCores, true);
return mask;
}
ThreadInfo* th = gidMap[gid];
mask = th->mask;
Expand All @@ -572,7 +574,8 @@ class Scheduler : public GlobAlloc, public Callee {
futex_lock(&schedLock);
uint32_t gid = getGid(pid, tid);
if(gidMap.find(gid) == gidMap.end()) {
panic("Scheduler::updateMask(): can't find thread info pid=%d, tid=%d", pid, tid);
warn("Scheduler::updateMask(): can't find thread info pid=%d, tid=%d", pid, tid);
return;
}
ThreadInfo* th = gidMap[gid];
//info("Scheduler::updateMask(): update thread mask pid=%d, tid=%d", pid, tid);
Expand Down

0 comments on commit 2f83732

Please sign in to comment.