Re: [Gc] Freeing thread-local storage
Hans Boehm <[email protected]> Thu, 26 Jun 2014 21:47:06 -0700
| Newsgroups | gmane.comp.programming.garbage-collection.boehmgc |
|---|---|
| Message-ID | <CAPUmR1ZW8afy0Ocvu9_mHT8UeLsuxj3BWy32-bEm31PtuRABnw@mail.gmail.com> |
AFAIK, there is currently no such mechanism, though it would probably be easy to add one. I would consider this a somewhat dubious "experts-only" proposition. It's very easy to construct programs that allocate memory in one thread and free it another, leading to unbounded growth of the thread-local free-list in the receiving thread. Currently that's only released if the thread terminates, so it would essentially be an unbounded memory leak. Hans On Mon, Jun 23, 2014 at 2:05 PM, Stefan Kral <[email protected]> wrote: > Hello everyone! > > I have an application that runs the GC multi-threaded with TLS enabled. > > Could you please recommend a scalable way of freeing memory (of some known > size, say, a few granules; type "NORMAL") --- putting it back directly into > the proper TLS free-lists used internally by the GC? > > Regards, > Stefan Kral. > > _______________________________________________ > bdwgc mailing list > [email protected] > https://lists.opendylan.org/mailman/listinfo/bdwgc > _______________________________________________ bdwgc mailing list [email protected] https://lists.opendylan.org/mailman/listinfo/bdwgc