diff options
author | Sergey Bugaev <bugaevc@serenityos.org> | 2020-05-20 14:59:31 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-20 14:11:13 +0200 |
commit | d2b500fbcb741f080450e5d0a48ae4ea9e076de3 (patch) | |
tree | 34909c514018ced85c23a7af361c303e6bd8f587 /Kernel/Thread.h | |
parent | 36dcbce16161a34a222f7e7abded549d5d2d6d2c (diff) | |
download | serenity-d2b500fbcb741f080450e5d0a48ae4ea9e076de3.zip |
AK+Kernel: Help the compiler inline a bunch of trivial methods
If these methods get inlined, the compiler is able to statically eliminate most
of the assertions. Alas, it doesn't realize this, and believes inlining them to
be too expensive. So give it a strong hint that it's not the case.
This *decreases* the kernel binary size.
Diffstat (limited to 'Kernel/Thread.h')
-rw-r--r-- | Kernel/Thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Thread.h b/Kernel/Thread.h index 74ebee2cee..d1959ddc63 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -362,7 +362,7 @@ public: ShouldUnblockThread dispatch_one_pending_signal(); ShouldUnblockThread dispatch_signal(u8 signal); - bool has_unmasked_pending_signals() const; + bool has_unmasked_pending_signals() const { return m_pending_signals & ~m_signal_mask; } void terminate_due_to_signal(u8 signal); bool should_ignore_signal(u8 signal) const; bool has_signal_handler(u8 signal) const; |