4 ms·
From Wikipedia: "Memory is usually managed with garbage collection, but specific objects can be finalized immediately when they go out of scope. Explicit memor
by albertzeyer 13y ago
From Wikipedia:
"Memory is usually managed with garbage collection, but specific objects can be finalized immediately when they go out of scope. Explicit memory management is possible using the overloaded operators new and delete, and by simply calling C's malloc and free directly. Garbage collection can be controlled: programmers can add and exclude memory ranges from being observed by the collector, can disable and enable the collector and force a generational or a full collection cycle. The manual gives many examples of how to implement different highly optimized memory management schemes for when garbage collection is inadequate in a program."
I wonder if the GC is stop-the-world.
- steveklabnik 13y agoFrom http://dlang.org/garbage.html http://dlang.org/garbage.html : > Stopping all other threads than the thread currently trying to allocate GC memory.
- pcwalton 13y agoIn D the garbage collector is stop-the-world and conservative, last I looked.