Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Pool for pointe...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 24504 of 27272
Post > Topic >>

Pool for pointers

by vardhan <vardhanw@[EMAIL PROTECTED] > Feb 4, 2008 at 09:27 AM

Hi,

Im not sure if this is the righ forum for this question. Pls redirect
me to the correct forum in that case.

I have a requirement to implement a memory pool meant for storing
pointers only (which constiture an iterator over an array type data
structure). Heap allocations are to be kept to a minimum (e.g. only
while expanding the pool size). Memory for an instance of an iterator
should be contiguous ideally, but since this may not always be
possible a block based allocation could be thought of. This however
adds an overhead to maintain a linked list, free list etc. Also no
list of pointers should be created outside the pool as this
constitutes heap allocation. Is there some literature which can
address this specific problem in terms of the possible approaches?
Maybe more generically - methods for contiguous dynamic memory
allocation, given a certain usage profile?

thanks for your advice,
Vardhan
 




 2 Posts in Topic:
Pool for pointers
vardhan <vardhanw@[EMA  2008-02-04 09:27:47 
Re: Pool for pointers
Morris Dovey <mrdovey@  2008-02-04 11:53:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Aug 27 18:07:15 CDT 2008.