A quick question about immortal buckets. In all the examples I've seen, they are used with data that has static storage duration. However, the requirement for using them appears to be just that the data will live for "at least as long as the brigade". I'm wondering about the borderline case, where the data has the same lifetime as the brigade.
In my use case the data is either allocated from the request pool, as is the brigade, or is allocated from the heap but freed in a cleanup registered with the request pool. If I use pool buckets I'm concerned that sometimes the pool buckets will be converted to heap buckets when the request pool goes away, only to be immediately discarded anyway because the brigade is also on that pool. On the other hand, I'm not quite sure my data satisfies the conditions for an immortal bucket. Can anyone help? Tom _______________________________________________ This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unless specifically indicated, this e-mail is not an offer to buy or sell or a solicitation to buy or sell any securities, investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Barclays. Any views or opinions presented are solely those of the author and do not necessarily represent those of Barclays. This e-mail is subject to terms available at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the foregoing. Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays Group. _______________________________________________