Re: [Firebird-devel] Memory pools using

2014-04-07 Thread Dmitry Yemanov
07.04.2014 21:21, Dimitry Sibiryakov wrote: > IIRC at the time of FB 1.5 this context things and call of SET_TDBB() at the > beginning > of every routine were considered as a temporary stubs till proper code > cleanup for proper > encapsulation and getting rid of side effects. Is my memory wrong

Re: [Firebird-devel] Memory pools using

2014-04-07 Thread Dimitry Sibiryakov
07.04.2014 18:57, Dmitry Yemanov wrote: > 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_d

Re: [Firebird-devel] Memory pools using

2014-04-07 Thread Dmitry Yemanov
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 po