kern: codegen tweaks, now that we're no longer -Os

This commit is contained in:
Michael Scire 2022-03-22 23:58:39 -07:00 committed by SciresM
parent 1ca2f61527
commit 383fc2cc99
10 changed files with 77 additions and 70 deletions

View file

@ -45,7 +45,7 @@ namespace ams::kern {
return m_owner_thread == GetCurrentThreadPointer();
}
NOINLINE void Lock() {
MESOSPHERE_ALWAYS_INLINE_IF_RELEASE void Lock() {
MESOSPHERE_ASSERT_THIS();
if (this->IsLockedByCurrentThread()) {
@ -67,7 +67,7 @@ namespace ams::kern {
}
}
NOINLINE void Unlock() {
MESOSPHERE_ALWAYS_INLINE_IF_RELEASE void Unlock() {
MESOSPHERE_ASSERT_THIS();
MESOSPHERE_ASSERT(this->IsLockedByCurrentThread());
MESOSPHERE_ASSERT(m_lock_count > 0);