agent/src/share/classes/sun/jvm/hotspot/gc_implementation/g1/HeapRegionManager.java
Print this page
rev 6540 : 8054819: Rename HeapRegionSeq to HeapRegionManager
Reviewed-by: jwilhelm, jmasa
*** 1,7 ****
/*
! * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 35,47 ****
import sun.jvm.hotspot.types.AddressField;
import sun.jvm.hotspot.types.CIntegerField;
import sun.jvm.hotspot.types.Type;
import sun.jvm.hotspot.types.TypeDataBase;
! // Mirror class for HeapRegionSeq. It essentially encapsulates the G1HeapRegionTable.
! public class HeapRegionSeq extends VMObject {
// G1HeapRegionTable _regions
static private long regionsFieldOffset;
// uint _committed_length
static private CIntegerField numCommittedField;
--- 35,47 ----
import sun.jvm.hotspot.types.AddressField;
import sun.jvm.hotspot.types.CIntegerField;
import sun.jvm.hotspot.types.Type;
import sun.jvm.hotspot.types.TypeDataBase;
! // Mirror class for HeapRegionManager.
! public class HeapRegionManager extends VMObject {
// G1HeapRegionTable _regions
static private long regionsFieldOffset;
// uint _committed_length
static private CIntegerField numCommittedField;
*** 52,62 ****
}
});
}
static private synchronized void initialize(TypeDataBase db) {
! Type type = db.lookupType("HeapRegionSeq");
regionsFieldOffset = type.getField("_regions").getOffset();
numCommittedField = type.getCIntegerField("_num_committed");
}
--- 52,62 ----
}
});
}
static private synchronized void initialize(TypeDataBase db) {
! Type type = db.lookupType("HeapRegionManager");
regionsFieldOffset = type.getField("_regions").getOffset();
numCommittedField = type.getCIntegerField("_num_committed");
}
*** 80,88 ****
public Iterator<HeapRegion> heapRegionIterator() {
return regions().heapRegionIterator(length());
}
! public HeapRegionSeq(Address addr) {
super(addr);
}
}
--- 80,88 ----
public Iterator<HeapRegion> heapRegionIterator() {
return regions().heapRegionIterator(length());
}
! public HeapRegionManager(Address addr) {
super(addr);
}
}