Przemyslaw Czerpak wrote:
> Thank you very much for the information. It means that dlmalloc.c
> will have to be updated to use native OS2 API in the future if it
> works as expected for Windows users.
> Probably you are the best person to make it in such case :-)
> 

Przemyslaw,

I was looking at dlmalloc, so I decided to try the test program from Pritpal
(message of september, 18th), on OS/2, latest cvs code, hbrun with vmmt linked
 in I can add nearly 816000 items before I get a realloc error.

    809000
    810000
    811000
    812000
    813000
    814000
    815000
    816000
Unrecoverable error 9009: hb_xrealloc can't reallocate memory
Called from AADD(0)
                   Called from MAIN(6) in pcode.hrb
                                                   Called from HB_HRBRUN(0)

Called from _APPMAIN(114) in ../../hbrun.prg

Now it has to be said that on OS/2 a program can allocate a maximum of 512Mb
(actually you top around 450-500Mb) because this is the virtual address space
assigned to each process.

It is possible to use more memory calling specific APIs, but a pointer to a
block into this memory, called 'high memory', cannot be passed to all OS/2
APIs. So it is of limited use.

That said, I think that porting dlmalloc to OS/2 is a waste of time without,
probably, any real advantage in terms of speed or stability (I see from
dlmalloc.c that it is not well suited for mt programs since it uses a global
lock which can become the bottleneck).

Those above are my two cents :)

Maurilio.

-- 
 __________
|  |  | |__| Maurilio Longo
|_|_|_|____| farmaconsult s.r.l.


_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to