skip to main content
10.1145/1244002.1244161acmconferencesArticle/Chapter ViewAbstractPublication PagessacConference Proceedingsconference-collections
Article

Exploiting the efficiency of generational algorithms for hardware-supported real-time garbage collection

Published:11 March 2007Publication History

ABSTRACT

Generational garbage collectors are more efficient than their non-generational counterparts. Unfortunately, however, generational algorithms require both write barriers and write barrier handlers and therefore degrade worst-case performance.

In this paper, we present novel hardware support for generational garbage collection. In contrast to previous work, we introduce a hardware write barrier that does not only detect inter-generational pointers, but also executes all related book-keeping operations entirely in hardware. For the first time, write barrier detection and handling occur completely in parallel to instruction execution, so that the runtime overhead of generational garbage collection is reduced to near zero.

For evaluation purposes, we extended a system with hardware-supported real-time garbage collection with our hardware support for generational garbage collection. Measurements of Java programs on an FPGA-based prototype show that the generational extensions reduce the total duration of garbage collection activities by a factor of 5 and the memory traffic caused by the collector by a factor of 4 on average.

References

  1. Altera. STRATIX II device family data sheet, 2006.Google ScholarGoogle Scholar
  2. H. G. Baker. List processing in real-time on a serial computer. Communications of the ACM, 21(4):280--94, 1978. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. H. G. Baker. The treadmill: real-time garbage collection without motion sickness. ACM Sigplan Notices, 27(3), 1992. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. H. Lieberman and C. E. Hewitt. A real-time garbage collector based on the lifetimes of objects. Communications of the ACM, 26(6):419--429, 1983. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. M. Meyer. A novel processor architecture with exact tag-free pointers. IEEE Micro, 24(3):46--55, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. M. Meyer. An on-chip garbage collection coprocessor for embedded real-time systems. In 11th IEEE International Conference on Embedded and Real-Time Computing Systems and Applications, Hong Kong, Aug. 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. M. Meyer. A true hardware read barrier. In ISMM'06 Proceedings of the Fifth International Symposium on Memory Management, Ottawa, June 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. D. A. Moon. Architecture of the Symbolics 3600. In Proceedings of the 12th Annual International Symposium on Computer Architecture, pages 76--83, Boston, MA, June 1985. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. K. D. Nilsen and W. J. Schmidt. A high-performance hardware-assisted real time garbage collection system. Journal of Programming Languages, 2(1), 1994.Google ScholarGoogle Scholar
  10. M. Pfeffer. Ein echtzeitfähiges Java-System für einen mehrfädigen Java-Mikrocontroller. PhD thesis, University of Augsburg, Germany, Feb. 2004.Google ScholarGoogle Scholar
  11. M. Pfeffer, T. Ungerer, S. Fuhrmann, J. Kreuzinger, and U. Brinkschulte. Real-time garbage collection for a multithreaded Java microcontroller. Real-Time Systems, 26(1):89--106, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. A. D. Samples, D. M. Ungar, and P. Hilfinger. SOAR: Smalltalk without bytecodes. In OOPSLA'86 ACM Conference on Object-Oriented Systems, Languages and Applications, volume 21(11), pages 107--118, Oct. 1986. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. W. J. Schmidt and K. D. Nilsen. Performance of a hardware-assisted real-time garbage collector. In International Conference on Architectural Support for Programming Languages and Operating Systems, pages 76--85, Oct. 1994. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. D. Ungar, R. Blau, P. Foley, D. Samples, and D. Patterson. Architecture of soar: Smalltalk on a risc. In ISCA '84: Proceedings of the 11th International Symposium on Computer Architecture, pages 188--197, New York, NY, USA, June 1984. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. D. M. Ungar. Generation scavenging: A non-disruptive high performance storage reclamation algorithm. ACM SIGPLAN Notices, 19(5): 157--167, Apr. 1984. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. P. R. Wilson. Uniprocessor garbage collection techniques. Technical report, University of Texas, Jan. 1994.Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Exploiting the efficiency of generational algorithms for hardware-supported real-time garbage collection

Recommendations

Comments

Login options

Check if you have access through your login credentials or your institution to get full access on this article.

Sign in
  • Published in

    cover image ACM Conferences
    SAC '07: Proceedings of the 2007 ACM symposium on Applied computing
    March 2007
    1688 pages
    ISBN:1595934804
    DOI:10.1145/1244002

    Copyright © 2007 ACM

    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    • Published: 11 March 2007

    Permissions

    Request permissions about this article.

    Request Permissions

    Check for updates

    Qualifiers

    • Article

    Acceptance Rates

    Overall Acceptance Rate1,650of6,669submissions,25%

PDF Format

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader