|
|
@ -19,8 +19,7 @@ Created December 2006 by Marko Makela |
|
|
|
/************************************************************************** |
|
|
|
Allocate a block. The thread calling this function must hold |
|
|
|
buf_pool_mutex and must not hold buf_pool_zip_mutex or any block->mutex. |
|
|
|
The buf_pool_mutex may only be released and reacquired if |
|
|
|
lru == BUF_BUDDY_USE_LRU. */ |
|
|
|
The buf_pool_mutex may only be released and reacquired if lru != NULL. */ |
|
|
|
UNIV_INTERN |
|
|
|
void* |
|
|
|
buf_buddy_alloc_low( |
|
|
@ -70,10 +69,10 @@ buf_buddy_get_slot( |
|
|
|
Allocate a block. The thread calling this function must hold |
|
|
|
buf_pool_mutex and must not hold buf_pool_zip_mutex or any |
|
|
|
block->mutex. The buf_pool_mutex may only be released and reacquired |
|
|
|
if lru == BUF_BUDDY_USE_LRU. This function should only be used for |
|
|
|
allocating compressed page frames or control blocks (buf_page_t). |
|
|
|
Allocated control blocks must be properly initialized immediately |
|
|
|
after buf_buddy_alloc() has returned the memory, before releasing |
|
|
|
if lru != NULL. This function should only be used for allocating |
|
|
|
compressed page frames or control blocks (buf_page_t). Allocated |
|
|
|
control blocks must be properly initialized immediately after |
|
|
|
buf_buddy_alloc() has returned the memory, before releasing |
|
|
|
buf_pool_mutex. */ |
|
|
|
UNIV_INLINE |
|
|
|
void* |
|
|
|