Gitiles
Code Review
Sign In
git01.mediatek.com
/
haproxy
/
refs/tags/v2.4.24
/
src
/
pool.c
tag
5387796d854c723061c389487a7eb9766f62513b
tagger
Willy Tarreau <w@1wt.eu>
Sat Aug 19 11:25:53 2023 +0200
object
d1756705e7928198062b8c5afece6f4407e5c737
HAProxy 2.4.24
7b9b3d2
BUG/MINOR: pool/stats: Use ullong to report total pool usage in bytes in stats
by Christopher Faulet
· 1 year, 7 months ago
3e1bfa7
BUG/MINOR: pool/cli: use ullong to report total pool usage in bytes
by Willy Tarreau
· 1 year, 8 months ago
857357e
BUG/MINOR: pools: make sure to also destroy shared pools in pool_destroy_all()
by Willy Tarreau
· 2 years, 2 months ago
a891e57
BUILD: pools: fix backport of no-memory-trimming on non-linux OS
by Willy Tarreau
· 2 years, 4 months ago
85dd521
MINOR: pools: add a new global option "no-memory-trimming"
by Willy Tarreau
· 2 years, 4 months ago
337899f
BUG/MEDIUM: pools: fix ha_free() on area in the process of being freed
by Willy Tarreau
· 2 years, 4 months ago
ceee238
BUG/MINOR: pool: always align pool_heads to 64 bytes
by Willy Tarreau
· 2 years, 4 months ago
674843a
DEBUG: pools: let's add reverse mapping from cache heads to thread and pool
by Willy Tarreau
· 2 years, 5 months ago
9a3cd53
DEBUG: pools: add extra sanity checks when picking objects from a local cache
by Willy Tarreau
· 2 years, 5 months ago
9043da7
BUG/MINOR: pools: always flush pools about to be destroyed
by Willy Tarreau
· 2 years, 5 months ago
c241843
DEBUG: pools: add new build option DEBUG_POOL_INTEGRITY
by Willy Tarreau
· 2 years, 6 months ago
619a511
MINOR: pools: work around possibly slow malloc_trim() during gc
by Willy Tarreau
· 2 years, 7 months ago
3bf7569
MINOR: pools: use mallinfo2() when available instead of mallinfo()
by Willy Tarreau
· 2 years, 10 months ago
562bf20
MINOR: pools: automatically disable malloc_trim() with external allocators
by Willy Tarreau
· 2 years, 10 months ago
33298de
CLEANUP: pools: factor all malloc_trim() calls into trim_all_pools()
by Willy Tarreau
· 2 years, 10 months ago
d0cc376
BUG/MAJOR: pools: fix possible race with free() in the lockless variant
by Willy Tarreau
· 3 years, 1 month ago
a206cf9
MEDIUM: pools: use a single pool_gc() function for locked and lockless
by Willy Tarreau
· 3 years, 1 month ago
46b515c
MINOR: pools: call malloc_trim() under thread isolation
by Willy Tarreau
· 3 years, 1 month ago
af8120a
MINOR: pools: do not maintain the lock during pool_flush()
by Willy Tarreau
· 3 years, 1 month ago
11e7af3
BUG/MINOR: pools: make DEBUG_UAF always write to the to-be-freed location
by Willy Tarreau
· 3 years, 1 month ago
caf6555
BUG/MINOR: pools: fix a possible memory leak in the lockless pool_flush()
by Willy Tarreau
· 3 years, 1 month ago
b205bfd
CLEANUP: cli/tree-wide: properly re-align the CLI commands' help messages
by Willy Tarreau
· 3 years, 2 months ago
1ab6c0b
MINOR: pools/debug: slightly relax DEBUG_DONT_SHARE_POOLS
by Willy Tarreau
· 3 years, 2 months ago
2b71810
CLEANUP: lists/tree-wide: rename some list operations to avoid some confusion
by Willy Tarreau
· 3 years, 3 months ago
942b89f
BUILD: pools: fix build with DEBUG_FAIL_ALLOC
by Willy Tarreau
· 3 years, 3 months ago
b2a853d
CLEANUP: pools: uninline pool_put_to_cache()
by Willy Tarreau
· 3 years, 3 months ago
fa19d20
MEDIUM: pools: make pool_put_to_cache() always call pool_put_to_local_cache()
by Willy Tarreau
· 3 years, 3 months ago
8721203
MINOR: pools: evict excess objects using pool_evict_from_local_cache()
by Willy Tarreau
· 3 years, 3 months ago
b8498e9
MEDIUM: pools: make CONFIG_HAP_POOLS control both local and shared pools
by Willy Tarreau
· 3 years, 3 months ago
45e4e28
MINOR: pools: factor the release code into pool_put_to_os()
by Willy Tarreau
· 3 years, 3 months ago
2b5579f
MINOR: pools: always use atomic ops to maintain counters
by Willy Tarreau
· 3 years, 3 months ago
1384364
MINOR: pools: split the OS-based allocator in two
by Willy Tarreau
· 3 years, 3 months ago
207c095
MINOR: pools: move the fault injector to __pool_alloc()
by Willy Tarreau
· 3 years, 3 months ago
20f88ab
MINOR: pools: use cheaper randoms for fault injections
by Willy Tarreau
· 3 years, 3 months ago
635cced
CLEANUP: pools: rename __pool_free() to pool_put_to_shared_cache()
by Willy Tarreau
· 3 years, 3 months ago
8c77ee5
CLEANUP: pools: rename pool_*_{from,to}_cache() to *_local_cache()
by Willy Tarreau
· 3 years, 3 months ago
8fe726f
CLEANUP: pools: re-merge pool_refill_alloc() and __pool_refill_alloc()
by Willy Tarreau
· 3 years, 3 months ago
eb3cc29
MEDIUM: pools: unify pool_refill_alloc() across all models
by Willy Tarreau
· 3 years, 3 months ago
64383b8
MINOR: pools: make the basic pool_refill_alloc()/pool_free() update needed_avg
by Willy Tarreau
· 3 years, 3 months ago
53a7fe4
MINOR: pools: enable the fault injector in all allocation modes
by Willy Tarreau
· 3 years, 3 months ago
2d6f628
MINOR: pools: rename CONFIG_HAP_LOCAL_POOLS to CONFIG_HAP_POOLS
by Willy Tarreau
· 3 years, 3 months ago
d5140e7
MINOR: pool: remove the size field from pool_cache_head
by Willy Tarreau
· 3 years, 3 months ago
9f3129e
MEDIUM: pools: move the cache into the pool header
by Willy Tarreau
· 3 years, 3 months ago
3e970b1
MINOR: pools: drop the unused static history of artificially failed allocs
by Willy Tarreau
· 3 years, 3 months ago
932dd19
BUG/MINOR: pools: maintain consistent ->allocated count on alloc failures
by Willy Tarreau
· 3 years, 3 months ago
4781b15
CLEANUP: atomic/tree-wide: replace single increments/decrements with inc/dec
by Willy Tarreau
· 3 years, 3 months ago
3b1c9a3
CLEANUP: mark defproxy as const on parse tune.fail-alloc
by Amaury Denoyelle
· 3 years, 4 months ago
0bae075
MEDIUM: pools: add CONFIG_HAP_NO_GLOBAL_POOLS and CONFIG_HAP_GLOBAL_POOLS
by Willy Tarreau
· 3 years, 4 months ago
88366c2
MEDIUM: pools: call malloc_trim() from pool_gc()
by Willy Tarreau
· 3 years, 8 months ago
20dc3cd
MINOR: pools: move the LRU cache heads to thread_info
by Willy Tarreau
· 4 years ago
47d1718
CLEANUP: assorted typo fixes in the code and comments
by Ilya Shipitsin
· 4 years, 1 month ago
b255105
CLEANUP: include: tree-wide alphabetical sort of include files
by Willy Tarreau
· 4 years, 1 month ago
36979d9
REORG: include: move the error reporting functions to from log.h to errors.h
by Willy Tarreau
· 4 years, 1 month ago
6be7849
REORG: include: move cfgparse.h to haproxy/cfgparse.h
by Willy Tarreau
· 4 years, 1 month ago
aeed4a8
REORG: include: move log.h to haproxy/log{,-t}.h
by Willy Tarreau
· 4 years, 1 month ago
f1d32c4
REORG: include: move channel.h to haproxy/channel{,-t}.h
by Willy Tarreau
· 4 years, 1 month ago
5e539c9
REORG: include: move stream_interface.h to haproxy/stream_interface{,-t}.h
by Willy Tarreau
· 4 years, 1 month ago
83487a8
REORG: include: move cli.h to haproxy/cli{,-t}.h
by Willy Tarreau
· 4 years, 1 month ago
2eec9b5
REORG: include: move stats.h to haproxy/stats{,-t}.h
by Willy Tarreau
· 4 years, 1 month ago
3f0f82e
REORG: move applet.h to haproxy/applet{,-t}.h
by Willy Tarreau
· 4 years, 1 month ago
f268ee8
REORG: include: split global.h into haproxy/global{,-t}.h
by Willy Tarreau
· 4 years, 1 month ago
48fbcae
REORG: tools: split common/standard.h into haproxy/tools{,-t}.h
by Willy Tarreau
· 4 years, 1 month ago
a04ded5
REORG: include: move activity to haproxy/
by Willy Tarreau
· 4 years, 1 month ago
d0ef439
REORG: include: move common/memory.h to haproxy/pool.h
by Willy Tarreau
· 4 years, 1 month ago
[Renamed (99%) from src/memory.c]
ed891fd
MEDIUM: memory: make local pools independent on lockless pools
by Willy Tarreau
· 4 years, 1 month ago
fb117e6
MEDIUM: memory: don't let pool_put_to_cache() free the objects itself
by Willy Tarreau
· 4 years, 1 month ago
24aa1ee
REORG: memory: move the OS-level allocator to haproxy/pool-os.h
by Willy Tarreau
· 4 years, 1 month ago
606135a
CLEANUP: pool: include freq_ctr.h and remove locally duplicated functions
by Willy Tarreau
· 4 years, 1 month ago
af613e8
CLEANUP: thread: rename __decl_hathreads() to __decl_thread()
by Willy Tarreau
· 4 years, 1 month ago
3f567e4
REORG: include: split hathreads into haproxy/thread.h and haproxy/thread-t.h
by Willy Tarreau
· 4 years, 1 month ago
853b297
REORG: include: split mini-clist into haproxy/list and list-t.h
by Willy Tarreau
· 4 years, 1 month ago
58017ee
REORG: include: move the BUG_ON() code to haproxy/bug.h
by Willy Tarreau
· 4 years, 1 month ago
4c7e4b7
REORG: include: update all files to use haproxy/api.h or api-t.h if needed
by Willy Tarreau
· 4 years, 1 month ago
21072b9
CLEANUP: pools: use the regular lock for the flush operation on lockless pools
by Willy Tarreau
· 4 years, 1 month ago
a1e4f8c
MINOR: pools: compute an estimate of each pool's average needed objects
by Willy Tarreau
· 4 years, 2 months ago
cece694
BUG/MINOR: pools: use %u not %d to report pool stats in "show pools"
by Willy Tarreau
· 4 years, 2 months ago
c0e2ff2
MEDIUM: memory: make pool_gc() run under thread isolation
by Willy Tarreau
· 4 years, 3 months ago
899fb8a
MINOR: memory: Change the flush_lock to a spinlock, and don't get it in alloc.
by Olivier Houchard
· 4 years, 4 months ago
51d9339
BUG/MEDIUM: pools: Always update free_list in pool_gc().
by Olivier Houchard
· 4 years, 4 months ago
52bf839
BUG/MEDIUM: random: implement a thread-safe and process-safe PRNG
by Willy Tarreau
· 4 years, 4 months ago
0fbf28a
Revert "BUG/MEDIUM: random: implement per-thread and per-process random sequences"
by Willy Tarreau
· 4 years, 4 months ago
1c306aa
BUG/MEDIUM: random: implement per-thread and per-process random sequences
by Willy Tarreau
· 4 years, 4 months ago
04f5fe8
BUG/MEDIUM: memory: Add a rwlock before freeing memory.
by Olivier Houchard
· 4 years, 5 months ago
8af97eb
MINOR: memory: Only init the pool spinlock once.
by Olivier Houchard
· 4 years, 5 months ago
b6fa08b
BUG/MEDIUM: memory_pool: Update the seq number in pool_flush().
by Olivier Houchard
· 4 years, 5 months ago
8286754
MINOR: pools: always pre-initialize allocated memory outside of the lock
by Willy Tarreau
· 5 years ago
3e853ea
MINOR: pools: release the pool's lock during the malloc/free calls
by Willy Tarreau
· 5 years ago
2f6d3c0
BUG/MINOR: memory: Set objects size for pools in the per-thread cache
by Christopher Faulet
· 5 years ago
a8b2ce0
MINOR: activity: report the number of failed pool/buffer allocations
by Willy Tarreau
· 5 years ago
64a47b9
CLEANUP: memory: make the fault injection code use the OTHER_LOCK label
by Willy Tarreau
· 5 years ago
6a38b32
BUILD: threads: fix again the __ha_cas_dw() definition
by Willy Tarreau
· 5 years ago
2087276
MEDIUM: memory: Use the new _HA_ATOMIC_* macros.
by Olivier Houchard
· 5 years ago
9c4f08a
BUG/MINOR: tune.fail-alloc: Don't forget to initialize ret.
by Olivier Houchard
· 5 years ago
dc21ff7
MINOR: debug: Add an option that causes random allocation failures.
by Olivier Houchard
· 5 years ago
7f0165e
MEDIUM: memory: make the pool cache an array and not a thread_local
by Willy Tarreau
· 6 years ago
2455ceb
MEDIUM: memory: use pool_destroy_all() to destroy all pools on deinit()
by Willy Tarreau
· 6 years ago
7107c8b
MINOR: memory: add a callback function to create a pool
by Willy Tarreau
· 6 years ago
0108d90
MEDIUM: init: convert all trivial registration calls to initcalls
by Willy Tarreau
· 6 years ago
db39843
MINOR: stream-int: replace si_cant_put() with si_rx_room_{blk,rdy}()
by Willy Tarreau
· 6 years ago
0cd3bd6
MINOR: stream-int: rename si_applet_{want|stop|cant}_{get|put}
by Willy Tarreau
· 6 years ago
Next »