Garbage collection in generic libraries
Autor: | Gor V. Nishanov, Sibylle Schupp |
---|---|
Rok vydání: | 1998 |
Předmět: | |
Zdroj: | ACM SIGPLAN Notices. 34:86-96 |
ISSN: | 1558-1160 0362-1340 |
DOI: | 10.1145/301589.286870 |
Popis: | This paper demonstrates a unified and garbage-collector independent way to describe the information required for precise collection. Thereby it is possible to construct, a library that can be used with various garbage collectors, without modifying the code of the library or the collector itself. The library design presented applies the adaptor idiom of generic programming which guarantees no overhead incurred if the library is used with manual allocators or with garbage collectors that do not require programmer cooperation. As an illustration of our approach we provide sample adaptors for Bartlett's and CMM primary collectors. We also show that the Standard Template Library (STL) can be easily modified to become garbage-collector aware. |
Databáze: | OpenAIRE |
Externí odkaz: |