digitalmars.D.learn - How to indicate that a memory block contains no GC pointers?
- =?ISO-8859-1?Q?Alex_R=F8nne_Petersen?= (5/5) Mar 02 2012 Hi,
- =?UTF-8?B?QWxpIMOHZWhyZWxp?= (6/9) Mar 02 2012 Everything about the GC should be in the core.memory module. I think
- =?UTF-8?B?QWxleCBSw7hubmUgUGV0ZXJzZW4=?= (4/15) Mar 02 2012 Ah, exactly what I needed. Thanks!
Hi, Is there any way I can tell the GC that a block of memory does not contain any possible pointers (in)to other GC-managed memory? -- - Alex
Mar 02 2012
On 03/02/2012 12:48 PM, Alex Rønne Petersen wrote:Hi, Is there any way I can tell the GC that a block of memory does not contain any possible pointers (in)to other GC-managed memory?Everything about the GC should be in the core.memory module. I think what you need is removeRange(). Or you can specify the same if you allocate the memory explicitly: int * p = cast(int*)GC.calloc(100, GC.BlkAttr.NO_SCAN); Ali
Mar 02 2012
On 02-03-2012 21:54, Ali Çehreli wrote:On 03/02/2012 12:48 PM, Alex Rønne Petersen wrote:Ah, exactly what I needed. Thanks! -- - AlexHi, Is there any way I can tell the GC that a block of memory does not contain any possible pointers (in)to other GC-managed memory?Everything about the GC should be in the core.memory module. I think what you need is removeRange(). Or you can specify the same if you allocate the memory explicitly: int * p = cast(int*)GC.calloc(100, GC.BlkAttr.NO_SCAN); Ali
Mar 02 2012