From 6d30470de8ba82d2d01fc9ea1860c7e15aa44adf Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 1 Nov 2024 12:43:08 +0200 Subject: 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 --- src/tcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.3