How to release memory? (D2.0.30)
Tom S
h3r3tic at remove.mat.uni.torun.pl
Sun Jul 5 06:52:04 PDT 2009
AxelS wrote:
> @downs:
>
> That's what I even had before....just allocate and release memory is not difficult - just if you want to access the data the GC copies all the memory into its heap...
Can you recommend a good crack dealer? ;)
Seriously, there are no GC calls associated with memory accesses.
Perhaps malloc causes the OS to assign some virtual memory to the
process, but only accessing it causes a page fault which the OS handles
by committing physical memory.
--
Tomasz Stachowiak
http://h3.team0xf.com/
h3/h3r3tic on #D freenode
More information about the Digitalmars-d-learn
mailing list