Files
Alan Somers c7d8a572ac libc/libc/rpc: refactor some global variables
* Combine dg_fd_locks and dg_cv into one array.
* Similarly for vc_fd_locks and vc_cv
* Turn some macros into inline functions

This is a mostly cosmetic change to make refactoring these strutures in
a future commit easier.

Sponsored by:	Axcient
Reviewed by:	kib
Differential Revision: https://reviews.freebsd.org/D42597

(cherry picked from commit a5c2f4e939)

lib/libc/rpc: switch the per-fd structs in clnt_{dg,vc}.c to RB Trees

This saves oodles of memory, especially when "ulimit -n" is large.  It
also prevents a buffer overflow if getrlimit should fail.

Also replace per-fd condvars with mutexes to simplify the code.

PR:		274968
Sponsored by:	Axcient
Reviewed by:	kib
Differential Revision: https://reviews.freebsd.org/D42597

(cherry picked from commit 24938f9311)
2023-12-01 14:15:45 -07:00
..
2020-04-15 00:18:19 +00:00
2019-09-02 08:20:02 +00:00
2020-12-30 12:44:23 +02:00
2020-05-22 13:14:21 +00:00
…
…
2017-12-08 22:06:18 +00:00
2022-02-07 05:55:10 -08:00
2020-05-28 01:53:35 +00:00
2020-05-26 13:35:41 +00:00
2017-11-27 17:18:31 +00:00
2019-01-28 02:26:05 +00:00
2020-02-29 21:42:34 +00:00
2020-06-17 10:50:55 +00:00
…
2020-02-13 03:13:29 +00:00
2020-12-30 12:44:23 +02:00
2020-07-21 08:12:53 +00:00