- 浏览: 2789 次
- 性别:
- 来自: 埃及
-
最新评论
-
LeafInWind:
tracybryant 写道mark_phase1中使用的st ...
hotspot串行GC之full gc分析 -
tracybryant:
mark_phase1中使用的stack是新创建的吗?与cop ...
hotspot串行GC之full gc分析
文章列表
1.概述
hotspot串行GC之full gc主要包括四个步骤,依次是:
1.从根引用出发,标记所有可达对象(如图灰色部分)
2.为每个可达对象计算full gc后将移动到的新位置(图中虚线框其实与contigCompatableSpace是重叠的,分开只是为了 ...
class Object {
bool _gc_mark = false;
Object* _forwardee; // null for normal objects non-null for forwarded objects
void forward_to(address new_addr) {
_forwardee = new_addr;
}
Object* forwardee() {
return _forwardee;
}
bool forwarded() {
return _forwardee ...