This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Using libgcj with different memory management library.
abhishek desai wrote:
>> I don't understand how this can work. The gc is a memory manager; how
>> can it use some other memory manager to do its own work? You'll have
>> to explain a little more.
>
> From what I understand GC uses GC_unix_get_mem to allocate memory
> which calls mmap on /dev/zero on my system. This memory is managed by
> GC for object allocation and also for GC internal working. I hope this
> is correct. What I want to do is replace the mmap with my_malloc call
> which will return a pointer to the allocated memory. my_malloc will
> allocate memory from an internal fixed memory pool.
That will work fine.
Andrew.