[MLton-devel] Minimizing heap copying

Stephen Weeks MLton@mlton.org
Fri, 23 Aug 2002 10:57:52 -0700


> There are a few places where the active heap is moved around. For
> instance in resizeHeap the entire active heap is copied if
> grow=true.
...
> I was wondering if this copying could perhaps be avoided
> completely using the mremap() system call ?
> 
> void * mremap(void * old_address, size_t old_size ,
>               size_t new_size, unsigned long flags);  

An excellent idea.  I will look into it soon.  I'll keep around the
old copying code for other OSes (like Cygwin and Solaris).


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel