知识库--Garbage Collection Types(71)

翻译 2017年01月04日 00:02:43

When the young generation fills up, a young generation of just that generation is performed. When the old or permanent generation fills up, what is known as a full collection is typically done. That is, all generations are collected. Commonly, the young generation is collected first, using the collection algorithm designed specifically for that generation, because it is usually the most efficient algorithm for identifying garbage in the young generation. Then what is referred to below as the old generation collection algorithm for a given collector is run on both the old and permanent generation. If compaction occurs, each generation is compacted separately.

Sometimes the old generation is too full to accept all the objects that would be likely to be promoted from the young generation to the old generation if the young generation was collected first. In that case, for all but the CMS collector, the young generation collection algorithm is not run. Instead, the old generation collection algorithm is used on the entire heap.

The CMS old generation algorithm is a special case because it cannot collect the young generation.
//full GC 一般收集算法会对整个堆进行old generation collection algorithm, 但是CMS的old generation algorithm 不能对年轻代使用,因为不能收集年轻代空间

举报

相关文章推荐

基本垃圾回收算法

原文地址:ITeye 基本垃圾回收算法 可以从不同的的角度去划分垃圾回收算法: 按照基本回收策略分 引用计数(Reference Counting): 比较古老的回收算法。原理...

Garbage Collection

A garbage collector is a dynamic storage allocator that automatically frees allocated blocks that ar...

我是如何成为一名python大咖的?

人生苦短,都说必须python,那么我分享下我是如何从小白成为Python资深开发者的吧。2014年我大学刚毕业..

Garbage Collection

JVM的自动垃圾收集(Garbage Collection)使得开发人员无需关注垃圾收集的细节,不过,当内存问题成为系统瓶颈的时候,我们就需要了解一下JVM的垃圾收集机制了。 应用程序中生成的对...

Better Understanding PHP’s Garbage Collection

It’s interesting how just a few years can make a difference in the names that are given to things. I...

JVM Garbage Collection

概述:JVM的自动垃圾收集(Garbage Collection)使得开发人员无需关注垃圾收集的细节,不过,当内存问题成为系统瓶颈的时候,我们就需要了解一下JVM的垃圾收集机制了。应用程序中生成的对象...

Understanding Java Garbage Collection

There is a term that you should know before learning about GC. The term is “stop-the-world.” Stop-th...

The DotNet Garbage Collection

The Garbage Collection is a very important part of DotNet platform.Today we will talk about it. Thin...

Understanding Java Garbage Collection

What are the benefits of knowing how garbage collection (GC) works in Java? Satisfying the intellect...

Garbage collection in Java

Automatic Garbage Collection: is the process of looking at heap memory, identifying which

JAVA Garbage Collection

 Introduction Today, we are going to look at how Java manages memory in the computer system. So ...
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)