但是,由于在新生代收集(Minor collections)中,在幸存区之间的复制成本增加,幸存区(survivor spaces)大小的增加和在延长在晋升之前在新生代收集(Minor collections)(–XX:MaxTenuringThreshold= 基于26个网页-相关网页
In theory, this means that half of the nursery space (that is, the survivor space) is unused at any point in time.
理论上,这意味着托儿所空间的一半(即幸存者空间)在任何时点上都未使用。
In practice, the amount of memory set aside for survivor space is adjusted on the fly depending on the percentage of objects that survive each collection.
实际上,预留为幸存者空间的内存量会根据在每次收集中幸存下来的对象的百分比进行实时调整。
All of your objects are either immediately ready for collection or are never ready, so if they make it to a survivor space, they'll quickly graduate from it.
所有对象要么是立即准备收集的,要么是从未准备收集的,所以,如果它们到了Survivor空间,就将很快改变这种状态。
应用推荐