Abstract
Garbage collection in the Java virtual machine is a core component that relieves application programmers of difficulties related to memory man-agement. It should also take into account the characteristics of embedded envi-ronments. In this paper, we propose a garbage collector that meets the require-ments for embedded environments. The proposed garbage collector is primarily based on generational garbage collection where a heap is composed of young and old generations. A semi-space copying collector is employed for a young generation, and an incremental copying collector is employed for an old genera-tion. Owing to its contiguous allocations, the proposed method provides fast al-locations and the locality of references. By adjusting the size of a young genera-tion, the block size, and the number of blocks in a frame, it is able to control the delay time caused by garbage collection, and thus guarantee the real time con-straints. Also, it employs a novel write barrier mechanism for efficiently deter-mining reachable objects in a specific frame. With all these characteristics to-gether, the proposed garbage collector can reclaim all the garbage objects precisely as well as timely. To reveal its superiority, we perform a series of ex-periments.
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
Barrett, D.A., Zorn, B.G.: Using lifetime predictors to improve memory allocation performance. In: Proceedings of SIGPLAN Conference on Programming Languages Design and Implementation(PLDI), June 1993, vol. 24(7), pp. 187–196 (1993)
Blackburn, S.M., Cheng, P., McKinley, K.S.: Myths and reality: The performance impact of garbage collection. In: Proceedings of International Conference on Measurement and Modeling of Computer Systems, June 2004, pp. 25–36 (2004)
Cheney, C.J.: A non-recursive list compacting algorithm. Communications of the ACM 13(11), 677–678 (1970)
Sun Microsystems, Java2 Platform, Micro Edition, Connected Device Configuration(CDC) (2005), http://java.sun.com/products/cdc/index.jsp
Jones, R.E., Lines, R.: Garbage collection: Algorithms for automatic dynamic memory management. Wiley, Chichester (1996)
Lieberman, H., Hewitt, C.E.: A real-time garbage collector based on the lifetimes of objects. Communications of the ACM 26(6), 419–429 (1983)
Ungar, D.M.: Generation scavenging: A non-disruptive high performance storage reclamation algorithm. ACM SIGPLAN Notices 19(5), 157–167 (1984)
Zorn, B.G.: Comparative performance evaluation of garbage collection algorithms, PhD thesis, University of California at Berkeley, Technical Report UCB/CSD 89/544 (March 1989)
Zorn, B.: Barrier methods for garbage collection, University of Colorado, Technical Report CU-CS-494-90 (November 1990)
Lindholm, T., Yellin, F.: The JavaTM Virtual Machine Specification, 2nd edn. Addison-Wesley, Reading (1999)
Chen, G., Shetty, R., Kandemir, M., Vijaykrishnan, N., Irwin, M.J., Wolczko, M.: Tuning Garbage Collection in an Embedded Java Environment. In: High-Performance Computer Architecture, 2002. Proceedings. Eighth International Symposium, February 2002, pp. 92–103 (2002)
CDC reference implementation 1.1 corresponding to JSR 218, http://java.sun.com/products/cdc/index.jsp
Stefanović, D., Hertz, M., Blackburn, S.M., McKinley, K.S., Eliot, J., Moss, B.: Older-first garbage collection in practice: evaluation in a Java Virtual Machine. ACM SIGPLAN Notices MSP 2002 38(2), 25–36 (2002)
Stefanović, D., McKinley, K.S., Eliot, J., Moss, B.: Age-based garbage collection. ACM SIGPLAN Notices, OOPSLA 1999 34(10), 370–381 (1999)
Hansen, L.T., Clinger, W.D.: An experimental study of renewal-older-first garbage collection. ACM SIGPLAN Notices, ICFP 2002 37(9), 247–258 (2002)
Standard Performance Evaluation Corporation. SPECjvm98 Documentation, release 1.03 ed (March 1999)
Hansen, L.T., Clinger, W.D.: An experimental study of renewal-older-first garbage collection. ACM SIGPLAN Notices, ICFP 2002 37(9), 247–258 (2002)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2006 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Cha, CI., Kim, HJ., Hwang, KJ., Kim, SW., Lee, SY., Won, HS. (2006). Garbage Collection in an Embedded Java Virtual Machine. In: Gabrys, B., Howlett, R.J., Jain, L.C. (eds) Knowledge-Based Intelligent Information and Engineering Systems. KES 2006. Lecture Notes in Computer Science(), vol 4251. Springer, Berlin, Heidelberg. https://doi.org/10.1007/11892960_54
Download citation
DOI: https://doi.org/10.1007/11892960_54
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-46535-5
Online ISBN: 978-3-540-46536-2
eBook Packages: Computer ScienceComputer Science (R0)