Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

A new GC for Java 7

DZone's Guide to

A new GC for Java 7

· Java Zone
Free Resource

Bitbucket is for the code that takes us to Mars, decodes the human genome, or drives your next car. What will your code do? Get started with Bitbucket today, it's free.

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.

[img_assist|nid=657|title=|desc=Visit Jon's blog...|link=url|url=http://blogs.sun.com/jonthecollector/entry/our_collectors|align=left|width=280|height=271]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.

Are you using Bitbucket to accomplish your company's mission? Share your company’s mission with #Forthecode for a chance to be featured on our homepage, our social media channels, or win a free t-shirt!

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}