[Java] Garbage collection strategy for the new generation and the old age

Source: Internet
Author: User

First, the new generation: the adoption of replication strategy

Eden block, even a survival block

During recycling, the surviving objects in Eden and the currently used survival block are transferred to another survival, emptying the Eden and the survival blocks currently in use.

Second, old generation: Tag moving algorithm

Since the changes are not very large, and most of them are long-lived objects or large objects, the use of survival blocks in the Cenozoic cannot be accommodated. This is the strategy for moving with tags.

[1] http://www.admin10000.com/document/1671.html

[Java] Garbage collection strategy for the new generation and the old age

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.