Alex Miller lives in St. Louis. He writes code for a living and currently work for Terracotta Tech on the Terracotta open-source Java clustering product. Prior to Terracotta he worked at BEA Systems and was Chief Architect at MetaMatrix. His main language for the last decade has been Java, although Alex have been paid to program in several languages over the years (C++, Python, Pascal, etc). Alex has posted 43 posts at DZone. You can read more from them at their website. View Full User Profile

A new GC for Java 7

02.02.2008
| 10460 views |
  • submit to reddit

Jon Masamitsu wrote up a great post summarizing the current collectors in the Sun JDK and also how combinations of these young and old collectors are triggered by different JVM switches.

Visit Jon's blog...Visit Jon's blog...Jon also details a new collector (G1 for "garbage first") that entails a single collector to divide the entire space into regions and allow a set of regions to be collected, rather than split the space into an arbitrary young and old generation. They intend to make this new collector the default in Java 7.

Some of the goal and throughput oriented thinking remind me a lot of the various real-time Java systems and the guarantees they can make around the amount of GC pause per some unit of time. Given the amount of time Java developers spend tuning and optimizing GC, better and better GC is something we can all use. Of course, the GC demands of any set of systems vary widely so it's a fine art to build a system that balances those needs.

Published at DZone with permission of its author, Alex Miller.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)