diff options
author | Holmes Chou <holmeschou@google.com> | 2023-03-08 06:55:54 +0000 |
---|---|---|
committer | Holmes Chou <holmeschou@google.com> | 2023-03-08 06:57:03 +0000 |
commit | b382a8c7de9889977fdac486d236b6b9a9918fa9 (patch) | |
tree | c73cd030e9da703a4e79c6f87b2813c708608114 /lwis_allocator.h | |
parent | f8b79e38bbfac9ecab1b8ce4c3253dc43146e9c5 (diff) | |
download | lwis-b382a8c7de9889977fdac486d236b6b9a9918fa9.tar.gz |
LWIS: Extend the allocator to support small size of memory
The current LWIS allocator does not cover the memory size less than
4096 bytes. We can extend it to support the small size of memory to
make the allocator more flexible.
Bug: 272180645
Test: GCA, CTS
Change-Id: I02691f336bfa9e2d7d252bc2a2c82a5edc9a2b5c
Signed-off-by: Holmes Chou <holmeschou@google.com>
Diffstat (limited to 'lwis_allocator.h')
-rw-r--r-- | lwis_allocator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lwis_allocator.h b/lwis_allocator.h index c85f88b..3809b60 100644 --- a/lwis_allocator.h +++ b/lwis_allocator.h @@ -34,6 +34,7 @@ struct lwis_allocator_block_pool { struct lwis_allocator_block_mgr { spinlock_t lock; + struct lwis_allocator_block_pool pool_4k; struct lwis_allocator_block_pool pool_8k; struct lwis_allocator_block_pool pool_16k; struct lwis_allocator_block_pool pool_32k; |