mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-22 07:37:38 +01:00
Apply UNW_ALIGN more in src/mi/mempool.c
Apply UNW_ALIGN in a few places in src/mi/mempool.c that I missed in
commit c2f757418
("Rename and share `ALIGN' macro from
_UCD_internal.h").
This commit is contained in:
parent
5d0f376b08
commit
b4bde18112
1 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ expand (struct mempool *pool)
|
|||
GET_MEMORY (mem, size);
|
||||
if (!mem)
|
||||
{
|
||||
size = (pool->obj_size + pg_size - 1) & -pg_size;
|
||||
size = UNW_ALIGN(pool->obj_size, pg_size);
|
||||
GET_MEMORY (mem, size);
|
||||
if (!mem)
|
||||
{
|
||||
|
@ -149,7 +149,7 @@ mempool_init (struct mempool *pool, size_t obj_size, size_t reserve)
|
|||
|
||||
pool->obj_size = obj_size;
|
||||
pool->reserve = reserve;
|
||||
pool->chunk_size = (2*reserve*obj_size + pg_size - 1) & -pg_size;
|
||||
pool->chunk_size = UNW_ALIGN(2*reserve*obj_size, pg_size);
|
||||
|
||||
expand (pool);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue