Chuck F. said:
Dag-Erling Smørgrav wrote:
I think you need to go back and read the thread. The point
was the possible inefficiency that can arise from forcing
copying of existing data. I pointed out that some reallocs go
to lengths to avoid it, and offered my package as an example.
And I objected to the manner in which you "offered your package
as an example". In the context of the discussion, it seemed
that you were promoting your implementation as a superior
alternative to glibc's, and the basis for that comparison is
flawed.
Since nmalloc is tied to DJGPP and would require at least some
effort to port elsewhere [...]
Precisely; just as glibc is fairly strongly tied to Linux + gcc
(it also runs on Hurd, but with a different malloc()
implementation). It does however attempt to remain portable to
platforms which do not have the same facilities (mremap(2), in
this case) as Linux.