Dynamic system memory use

Andreas Raab Andreas.Raab at gmx.de
Sat Feb 2 00:07:09 UTC 2002


Daniel,

> 	There is no way to guarantee all the memory you 
> allocate from Malloc is actual ram, and not disk space,
> if this is what you are asking....

Not quite. The keyword of this discussion is "lazy" not virtual. I don't
exactly care where the memory is (that's exactly what the manager is
for). But I _do_ care that if I call malloc() and get a non-null pointer
back then I should in fact be able to use that memory block. According
to the explanations I've heard here that is _not_ the case. In other
words the "lazy" malloc()ator may give me a pointer from malloc() but at
the point where I actually start writing to that memory it may say
"Oops. Sorry. I promised you that memory but I lied. I don't actually
have any. You loose. Core dumped."

Cheers,
  - Andreas





More information about the Squeak-dev mailing list