[pcre-dev] [Bug 1362] JIT Exec Allocator never frees last em…

トップ ページ
このメッセージを削除
著者: Zoltan Herczeg
日付:  
To: pcre-dev
題目: [pcre-dev] [Bug 1362] JIT Exec Allocator never frees last empty chunk
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1362




--- Comment #3 from Zoltan Herczeg <hzmester@???> 2013-06-03 12:03:03 ---
> it. Since I am coding an ActiveX/COM object model around PCRE (which uses
> Windows Unicode and so basically relies on the 16 bit library), calling the
> wrong free function was not too obvious at first glance. So, actually, my
> memory was freed by the 8 bit library, but the memory allocator of the 16 bit
> library was still thinking that it has some blocks available in free_blocks.


Just as I suspected that this will happen eventually. I originally proposed a
common JIT compiler for all modes, since the code is the same in all cases, and
currently the same binary is stored 3 times. But people said that this is adds
an unnecessary complexity to the library (since it requires another, shared
library), and I abandoned this idea.

Adding an error checking mechanism could help, but it would be an unecessary
overhead in most cases.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email