aboutsummaryrefslogtreecommitdiff
path: root/src/tcb.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-11-01 12:43:08 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2024-11-01 12:48:17 +0200
commit6d30470de8ba82d2d01fc9ea1860c7e15aa44adf (patch)
tree13f1c13d8845b8237d21eea64fe708b9ff042031 /src/tcb.c
parent3a6dd24312f1fc8eea9f2b8b25daca808a35828f (diff)
downloadkmi-6d30470de8ba82d2d01fc9ea1860c7e15aa44adf.tar.gz
kmi-6d30470de8ba82d2d01fc9ea1860c7e15aa44adf.zip
mark some hot path functions inline
+ Gives a hint to the LTO optimizer to more agressively inline the functions, seems to bring a slight performance increase
Diffstat (limited to 'src/tcb.c')
-rw-r--r--src/tcb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tcb.c b/src/tcb.c
index 06f49db..67e9448 100644
--- a/src/tcb.c
+++ b/src/tcb.c
@@ -344,7 +344,7 @@ void use_tcb(struct tcb *t)
use_vmem(t->rpc.vmem);
}
-struct tcb *get_tcb(id_t tid)
+inline struct tcb *get_tcb(id_t tid)
{
assert(tcbs);