haproxy/include/common
Willy Tarreau fb117e6a8e MEDIUM: memory: don't let pool_put_to_cache() free the objects itself
Just as for the allocation path, the release path was not symmetrical.
It was not logical to have pool_put_to_cache() free the objects itself,
it was pool_free's job. In addition, just because of a variable export
issue, it the insertion of the object to free back into the local cache
couldn't be inlined while it was very cheap.

This patch just slightly reorganizes this code path by making pool_free()
decide whether or not to put the object back into the cache via
pool_put_to_cache() otherwise place it back to the global pool using
__pool_free().  Then pool_put_to_cache() adds the item to the local
cache and only calls pool_evict_from_cache() if the cache is too big.
2020-06-11 10:18:56 +02:00
..
buffer.h CLEANUP: thread: rename __decl_hathreads() to __decl_thread() 2020-06-11 10:18:56 +02:00
cfgparse.h REORG: include: split mini-clist into haproxy/list and list-t.h 2020-06-11 10:18:56 +02:00
chunk.h REORG: include: split buf.h into haproxy/buf-t.h and haproxy/buf.h 2020-06-11 10:18:56 +02:00
fcgi.h CLEANUP: include: remove excessive includes of common/standard.h 2020-06-11 10:18:56 +02:00
h1.h CLEANUP: include: remove excessive includes of common/standard.h 2020-06-11 10:18:56 +02:00
h2.h REORG: include: move ist.h from common/ to import/ 2020-06-11 10:18:56 +02:00
hpack-dec.h REORG: include: update all files to use haproxy/api.h or api-t.h if needed 2020-06-11 10:18:42 +02:00
hpack-enc.h REORG: include: split buf.h into haproxy/buf-t.h and haproxy/buf.h 2020-06-11 10:18:56 +02:00
hpack-huff.h BUILD: use inttypes.h instead of stdint.h 2019-04-01 07:44:56 +02:00
hpack-tbl.h REORG: include: move ist.h from common/ to import/ 2020-06-11 10:18:56 +02:00
http-hdr.h REORG: include: move ist.h from common/ to import/ 2020-06-11 10:18:56 +02:00
http.h REORG: include: split buf.h into haproxy/buf-t.h and haproxy/buf.h 2020-06-11 10:18:56 +02:00
htx.h CLEANUP: include: remove excessive includes of common/standard.h 2020-06-11 10:18:56 +02:00
memory.h MEDIUM: memory: don't let pool_put_to_cache() free the objects itself 2020-06-11 10:18:56 +02:00
namespace.h REORG: ebtree: move the include files from ebtree to include/import/ 2020-06-11 09:31:11 +02:00
net_helper.h CLEANUP: include: remove excessive includes of common/standard.h 2020-06-11 10:18:56 +02:00
regex.h REORG: include: split hathreads into haproxy/thread.h and haproxy/thread-t.h 2020-06-11 10:18:56 +02:00
standard.h REORG: include: move integer manipulation functions from standard.h to intops.h 2020-06-11 10:18:56 +02:00
ticks.h CLEANUP: include: remove excessive includes of common/standard.h 2020-06-11 10:18:56 +02:00
uri_auth.h REORG: include: update all files to use haproxy/api.h or api-t.h if needed 2020-06-11 10:18:42 +02:00
xref.h CLEANUP: threads: remove a few needless includes of hathreads.h 2020-06-11 10:18:56 +02:00