07.04.2014 20:47, Dimitry Sibiryakov wrote:
>
> Are there rules which memory pool must be used in a code?
>
> For example, I see that VIO_verb_cleanup() uses default global pool when 
> calling
> VIO_Data() instead of transaction pool. What may be a reason for this?

tdbb_default is not a global pool, it's a context pool. 
VIO_verb_cleanup() sets the transaction pool as a context pool for 
duration of its execution.

Of course, tra_pool could also be used explicitly there. However, the 
basic rule is to use tdbb_default for most of runtime allocations, 
especially for temporary ones.


Dmitry


------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees_APR
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to