mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
Kernel: Add verification promise violations are propagated properly
This change adds a thread member variable to track if we have a pending promise violation on a kernel thread. This ensures that all code properly propagates promise violations up to the syscall handler. Suggested-by: Andreas Kling <kling@serenityos.org>
This commit is contained in:
parent
54b9a4ec1e
commit
018dc4bb5c
3 changed files with 12 additions and 1 deletions
|
@ -1241,6 +1241,9 @@ public:
|
|||
bool is_profiling_suppressed() const { return m_is_profiling_suppressed; }
|
||||
void set_profiling_suppressed() { m_is_profiling_suppressed = true; }
|
||||
|
||||
bool is_promise_violation_pending() const { return m_is_promise_violation_pending; }
|
||||
void set_promise_violation_pending(bool value) { m_is_promise_violation_pending = value; }
|
||||
|
||||
String backtrace();
|
||||
|
||||
private:
|
||||
|
@ -1390,6 +1393,7 @@ private:
|
|||
bool m_in_block { false };
|
||||
bool m_is_idle_thread { false };
|
||||
bool m_is_crashing { false };
|
||||
bool m_is_promise_violation_pending { false };
|
||||
Atomic<bool> m_have_any_unmasked_pending_signals { false };
|
||||
Atomic<u32> m_nested_profiler_calls { 0 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue