Andreas Kling
5ce1cc89a0
Kernel: Add fast-path for sys$gettid()
...
The userspace locks are very aggressively calling sys$gettid() to find
out which thread ID they have.
Since syscalls are quite heavy, this can get very expensive for some
programs. This patch adds a fast-path for sys$gettid(), which makes it
skip all of the usual syscall validation and just return the thread ID
right away.
This cuts Kernel/Process.cpp compile time by ~18%, from ~29 to ~24 sec.
2020-01-19 17:32:05 +01:00
..
2020-01-18 09:45:54 +01:00
2020-01-19 10:33:17 +01:00
2020-01-18 09:45:54 +01:00
2020-01-19 14:01:32 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 23:51:22 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 23:51:22 +01:00
2020-01-19 15:53:43 +01:00
2020-01-18 09:45:54 +01:00
2020-01-15 21:52:09 +01:00
2020-01-15 21:52:09 +01:00
2020-01-09 21:57:52 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-13 11:06:42 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-14 15:38:58 +01:00
2020-01-14 15:38:58 +01:00
2020-01-18 10:24:57 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 23:51:22 +01:00
2020-01-18 09:45:54 +01:00
2020-01-17 22:34:26 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-15 21:52:09 +01:00
2020-01-17 22:34:26 +01:00
2019-11-28 21:30:20 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-19 16:44:37 +01:00
2020-01-19 16:44:37 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-15 23:14:20 +01:00
2020-01-18 11:10:44 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-19 09:18:55 +01:00
2020-01-19 09:18:55 +01:00
2020-01-06 10:43:00 +01:00
2020-01-19 17:32:05 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-19 13:54:09 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00