This chapter is an introduction to automatic and adaptive memory management in the Java runtime. It provides a background on techniques for garbage collection and looks at the history of automatic memory management. It also discusses the advantages and disadvantages of automatic memory management compared to static solutions.
You will learn the following from this chapter:
The concepts of automatic and adaptive memory management and understanding the problems and possibilities associated with these
How a garbage collector works, including algorithms for garbage collection and implementation details
How a garbage collector must be implemented in order to perform well and be scalable
About the latency versus throughput equation
The problems of object allocation in a runtime and algorithms for doing efficient object allocation
The most important Java APIs for memory management, for example, the
java.lang.ref
packageHow the JRockit Real Time product and deterministic...