There is a mistake in my question.
Manu Somasekhar wrote:
2. If a minor garbage collection occurs in Eden space, a garbage object is moved to survivor 0.
This is wrong. In fact, during minor GC a dirty object is copied from one heap area to another if it is still in use. The reason for dividing heap memory
may be(I am not sure
) the following.
Different objects may have different life spans. So placing them in a single heap space and running GC may not be an efficient idea. Instead, the heap is divided into segments and different GC algorithms with different execution costs are applied to each segments.
Please correct me if I am wrong.