mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09: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
Notes:
sideshowbarker
2024-07-17 21:58:20 +09:00
Author: https://github.com/bgianfo
Commit: 018dc4bb5c
Pull-request: https://github.com/SerenityOS/serenity/pull/11476
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