summaryrefslogtreecommitdiff
path: root/docs/envvars.html
diff options
context:
space:
mode:
authorNathan Kidd <nkidd@opentext.com>2019-11-15 02:35:11 +0100
committerRoland Scheidegger <sroland@vmware.com>2019-11-15 02:43:22 +0100
commit9a80b7fd8f282d4b448f826ff88c8770c079fb72 (patch)
treedff9b56cea5bd85c9bfcfc3814d89d54419993fe /docs/envvars.html
parent9c3be6d21fa6a45852045d0286b80fb420f82fe3 (diff)
llvmpipe: Check thread creation errors
In the case of glibc, pthread_t is internally a pointer. If lp_rast_destroy() passes a 0-value pthread_t to pthread_join(), the latter will SEGV dereferencing it. pthread_create() can fail if either the user's ulimit -u or Linux kernel's /proc/sys/kernel/threads-max is reached. Choosing to continue, rather than fail, on theory that it is better to run with the one main thread, than not run at all. Keeping as many threads as we got, since lack of threads severely degrades llvmpipe performance. Signed-off-by: Nathan Kidd <nkidd@opentext.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'docs/envvars.html')
0 files changed, 0 insertions, 0 deletions