Re: [gdome]memory management



On Sat, 8 Sep 2001, Tobias Peters wrote:

> I thought I could possibly help implementing the new memory management
> model as suggested by Paolo in message
> <Pine LNX 4 21 0107101739540 24500-100000 ferrando cs unibo it>, so I did
> some investigation last night.

I thank you for your help and I'm sorry for the late. I got married the
8th September and yesterday I've finisced my wedding travel.
I apologize for the empass in the implementation and the maintaining of
the project. 

For the first days of October I'll implement the new memory management
system and I'm sure your work will be very useful!

> [...]
> functions, and modified gdome_xml_n_mkref accordingly -- or at least I
> thought so. The attached archive contains a patch
> "doc_livenodes_memory_management_patch" against the current CVS archive
> that compiles ok but does not solve the memory leak problem. Maybe you can
> make some use of it.

I've already implemented a buggy version of those functions, but I
think I've made some mistakes... My intention is to restart from the CVS
release using also your code.

> Then I tried the another approach, this time without modifying the data
> structure, using the refcnt field of Gdome_xml_Document for counting the
> sum of document references and existing live nodes. This was easier to
> implement, only gdome_xml_n_mkref and gdome_xml_n_unref were changed, and
> it works. There is a patch "doc_refcnt_memory_management_patch" against
> the libgdome-0.6.9 release in the attached archive.
Yes, this a way I've considered but I think it's a little less clear. I'll
try it.

Thanx,
   paolo.
--
Paolo Casarini - casarini cs unibo it





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]