Re: [xml] Memory overlap with apr
- From: Daniel Veillard <veillard redhat com>
- To: Marco Spinetti <spinmar interfree it>
- Cc: xml gnome org
- Subject: Re: [xml] Memory overlap with apr
- Date: Thu, 2 Aug 2007 08:41:54 -0400
On Thu, Aug 02, 2007 at 01:36:24PM +0200, Marco Spinetti wrote:
Could I use xmlMemSetup to overwrite the memory
allocation from apr ones? The problem is that the functions like
xmlMallocFunc doesn't get as parametrs any pointer to for example apr pools.
Any ideas?
You would have to use xmlMemSetup as first call to libxml2, which in
a Apache context where other modules may use libxml2 is not garanteed
to work. You could use global variables to point into the apr pool.
Sorry Apache memeory management is way too different from normal
standardized interfaces, I would not rewrite all libxml2 code just to
add an argument (coming from where ?) to all xmlMalloc/xmlFree calls.
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]