mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 18:03:02 +01:00
Fixed memory pool usage.
This commit is contained in:
parent
4aec77b29c
commit
8c1ae9003d
@ -102,7 +102,7 @@ void ThreadPriorityScheduler::Init(void)
|
|||||||
specific_key = TlsAlloc();
|
specific_key = TlsAlloc();
|
||||||
|
|
||||||
// memory pool for thps allocation
|
// memory pool for thps allocation
|
||||||
pool = FB_NEW(*(getDefaultMemoryPool())) MemoryPool;
|
pool = MemoryPool::createPool();
|
||||||
|
|
||||||
// mutex to sync linked list operations
|
// mutex to sync linked list operations
|
||||||
THD_mutex_init(&mutex);
|
THD_mutex_init(&mutex);
|
||||||
@ -344,7 +344,7 @@ start_label:
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// cleanup
|
// cleanup
|
||||||
delete pool;
|
MemoryPool::deletePool(pool);
|
||||||
THD_mutex_destroy(&mutex);
|
THD_mutex_destroy(&mutex);
|
||||||
TlsFree(specific_key);
|
TlsFree(specific_key);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user