Some C compilers have special intrinsics and such for this, does D have any ability? If not, any hacks? I just need something that works.
Get size of mem to free by free
Mark J Twain via Digitalmars-d-learn Fri, 05 Aug 2016 13:01:19 -0700
I use malloc to allocate some memory, then free it later. For
monitoring purposes, I would like to know how much is free'ed by
free by just knowing the object. Or, rather, given a ptr
allocated by malloc, bet the block size it allocated from the ptr
alone.
- Get size of mem to free by free Mark J Twain via Digitalmars-d-learn
- Re: Get size of mem to free by f... H.Loom via Digitalmars-d-learn
- Re: Get size of mem to free ... Mark J Twain via Digitalmars-d-learn
- Re: Get size of mem to f... H.Loom via Digitalmars-d-learn
- Re: Get size of mem ... H.Loom via Digitalmars-d-learn
- Re: Get size of mem to free by f... Ali Çehreli via Digitalmars-d-learn
- Re: Get size of mem to free ... H.Loom via Digitalmars-d-learn
- Re: Get size of mem to f... Ali Çehreli via Digitalmars-d-learn