5 #ifndef CVMFS_SQLITEMEM_H_
6 #define CVMFS_SQLITEMEM_H_
17 #include "gtest/gtest_prod.h"
165 static void xFree(
void *ptr);
166 static void *
xRealloc(
void *ptr,
int new_size);
167 static int xSize(
void *ptr);
169 static int xInit(
void *app_data);
206 #endif // CVMFS_SQLITEMEM_H_
static const unsigned kArenaSize
static const unsigned kBufferSize
struct sqlite3_mem_methods sqlite3_mem_vanilla_
static const unsigned kScratchSize
static const unsigned kScratchNoSlots
static const unsigned kPageCacheSlotSize
static const unsigned kPageCacheNoSlots
static const unsigned kNoBitmaps
struct sqlite3_mem_methods mem_methods_
static int xInit(void *app_data)
static int xSize(void *ptr)
static const unsigned kArenaSize
void * GetLookasideBuffer()
static void xShutdown(void *app_data)
static const unsigned kBuffersPerArena
void PutMemory(void *ptr)
static void CleanupInstance()
bool Contains(void *buffer)
void AssignGlobalArenas()
int GetMemorySize(void *ptr)
static bool HasInstance()
static const unsigned kLookasideSlotsPerDb
void * GetMemory(int size)
static const unsigned kPageCacheSize
static SqliteMemoryManager * instance_
static void * xRealloc(void *ptr, int new_size)
static SqliteMemoryManager * GetInstance()
static void xFree(void *ptr)
void * page_cache_memory_
static const unsigned kLookasideSlotSize
FRIEND_TEST(T_Sqlitemem, LookasideBuffer)
static int xRoundup(int size)
static const unsigned kScratchSlotSize
void PutLookasideBuffer(void *buffer)
std::vector< LookasideBufferArena * > lookaside_buffer_arenas_
void PutBuffer(void *buffer)
static void * xMalloc(int size)
void ReleaseLookasideBuffer(void *buffer)
void * AssignLookasideBuffer(sqlite3 *db)
std::vector< MallocArena * > malloc_arenas_