The default collector in HotSpot has two generations: the young generation and the tenured generation. Most allocations are done in the young generation. The young generation is optimized for objects that have a short lifetime relative to the interval between collections. Objects that survive several collections in the young generation are moved to the tenured generation. The young generation is typically smaller and is collected more often. The tenured generation is typically larger and collected less often.
The young generation collector is a copying collector. The young generation is divided into 3 spaces: eden-space, to-space, and from-space. Allocations are done from eden-space and from-space. When those are full a young generation is collection is done. The expectation is that most of the objects are garbage and any surviving objects can be copied to to-space. If there are more surviving objects than can fit into to-space, the remaining objects are copied into the tenured generation. There is an option to collect the young generation in parallel.
年轻代回收器是基于复制的。年轻代被分为三个空间：eden-space, to-space, and from-space.分配的动作就在eden-space和from-space中完成。年轻代经过回收以后，我们期望的结果是大部分的对象将会被回收，而那些没有被回收的对象就被复制到to-space中，加入存活下来的对象不能所有都装进to-space，那么剩下的对象直接将被送进年老代。当然，也可以选择在年轻代中并行收集（也就是使用多个线程同时进行垃圾回收的工作）。
The tenured generation is collected with a mark-sweep-compact collection. There is an option to collect the tenured generation concurrently.