diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-02-12 18:53:10 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-02-12 18:53:10 +0100 |
commit | a15b0f57b6fd2b9db8ac9543b95b3bfe23de083e (patch) | |
tree | 21fe61f55b4609a42bd232ec205ae1f65e5689e7 /contributing.mdwn | |
parent | 49b7702eff34f48e65369718d908cd32292c1205 (diff) | |
download | web-a15b0f57b6fd2b9db8ac9543b95b3bfe23de083e.tar.gz web-a15b0f57b6fd2b9db8ac9543b95b3bfe23de083e.tar.bz2 web-a15b0f57b6fd2b9db8ac9543b95b3bfe23de083e.zip |
thread_set_name was done
Diffstat (limited to 'contributing.mdwn')
-rw-r--r-- | contributing.mdwn | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contributing.mdwn b/contributing.mdwn index 45c73228..f20b6b98 100644 --- a/contributing.mdwn +++ b/contributing.mdwn @@ -91,7 +91,7 @@ with". Make sure to check out the most up-to-date version on <https://darnassus.sceen.net/~hurd-web/contributing> * Teach rsync to use `*getxattr` and friends on GNU/Hurd too, to enable the -X option, so as to preserve translator entries. -* Add a `name` field to `thread` structure in Mach, and `thread_set_name` (like `task_set_name`), and use it to add `pthread_setname_np` to glibc. +* Use `thread_set_name` to add `pthread_setname_np` to glibc. * Avoid GCC trampolines: as discussed in <https://gcc.gnu.org/onlinedocs/gccint/Trampolines.html> these happen when we pass the address of a nested function to another function. This can be seen by running `readelf -S file.o | grep GNU-stack | grep X`, for instance that happens in libdiskfs/file-exec.c, libdiskfs/io-revoke.c. We can't really use -fno-trampoline, we should instead add `void *data` parameters to iterators such as `ports_class_iterate` or `fshelp_exec_reauth`, so that the nested functions can be made mere static functions that get their information from the `void *data` parameter. * Implement `pthread_setschedparam` and `sched_setscheduler` in glibc by calling mach's `thread_policy` and `thread_priority`. * Strengthen httpfs: it should append '/' to URL automatically, it should not fallback index.html itself, etc. probably a lot more small easy issues. |