Changeset 7364e2d1 in mainline for kernel/generic/src/proc/scheduler.c


Ignore:
Timestamp:
2024-01-21T15:24:36Z (4 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
33e15a0
Parents:
41bfc64
Message:

Don't try to determine internal thread state when requesting stack trace

thread_wakeup() is idempotent, it can be called at an arbitrary time and
it will only wake up a thread when it's sleeping, with no chance of any
races. Checking if istate is present from "outside" the thread is just
an unnecessary and a wrong thing to do.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/scheduler.c

    r41bfc64 r7364e2d1  
    345345                        printf("Thread %" PRIu64 " stack trace:\n", THREAD->tid);
    346346                        stack_trace_istate(istate);
     347                } else {
     348                        printf("Thread %" PRIu64 " interrupt state not available\n", THREAD->tid);
    347349                }
    348350
Note: See TracChangeset for help on using the changeset viewer.