You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libc/config/config.json
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,16 @@
59
59
"LIBC_CONF_FREELIST_MALLOC_BUFFER_SIZE": {
60
60
"value": 1073741824,
61
61
"doc": "Default size for the constinit freelist buffer used for the freelist malloc implementation (default 1o 1GB)."
62
+
},
63
+
},
64
+
"unistd": {
65
+
"LIBC_CONF_ENABLE_TID_CACHE": {
66
+
"value": true,
67
+
"doc": "Enable caching mechanism for gettid to avoid syscall (only effective in fullbuild mode, default to true). Please refer to Undefined Behavior documentation for implications."
68
+
},
69
+
"LIBC_CONF_ENABLE_PID_CACHE": {
70
+
"value": true,
71
+
"doc": "Enable caching mechanism for getpid to avoid syscall (default to true). Please refer to Undefined Behavior documentation for implications."
Copy file name to clipboardExpand all lines: libc/docs/configure.rst
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -43,3 +43,6 @@ to learn about the defaults for your platform and target.
43
43
* **"string" options**
44
44
- ``LIBC_CONF_MEMSET_X86_USE_SOFTWARE_PREFETCHING``: Inserts prefetch for write instructions (PREFETCHW) for memset on x86 to recover performance when hardware prefetcher is disabled.
45
45
- ``LIBC_CONF_STRING_UNSAFE_WIDE_READ``: Read more than a byte at a time to perform byte-string operations like strlen.
46
+
* **"unistd" options**
47
+
- ``LIBC_CONF_ENABLE_PID_CACHE``: Enable caching mechanism for getpid to avoid syscall (default to true). Please refer to Undefined Behavior documentation for implications.
48
+
- ``LIBC_CONF_ENABLE_TID_CACHE``: Enable caching mechanism for gettid to avoid syscall (only effective in fullbuild mode, default to true). Please refer to Undefined Behavior documentation for implications.
0 commit comments