8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 14:03:07 +01:00

Let's use default memory pool in production builds. I cannot see a reason to allocate 100K for small structures of the scheduler.

This commit is contained in:
dimitr 2003-01-20 11:07:45 +00:00
parent 4aab11feca
commit 6c2d810678

View File

@ -102,7 +102,11 @@ void ThreadPriorityScheduler::Init(void)
specific_key = TlsAlloc();
// memory pool for thps allocation
#ifdef DEV_BUILD
pool = MemoryPool::createPool();
#else
pool = getDefaultMemoryPool();
#endif
// mutex to sync linked list operations
THD_mutex_init(&mutex);
@ -344,7 +348,9 @@ start_label:
break;
}
// cleanup
#ifdef DEV_BUILD
MemoryPool::deletePool(pool);
#endif
THD_mutex_destroy(&mutex);
TlsFree(specific_key);
return 0;