Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
LizBing committed May 4, 2024
1 parent 80eeb44 commit b007eb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void heapRegionIterate(HeapRegionClosure hrcl) {
}
}

public G1HeapRegion heapRegionForAddress(Address addr) {
public G1HeapRegion g1HeapRegionForAddress(Address addr) {
Iterator<G1HeapRegion> iter = g1HeapRegionIterator();
while (iter.hasNext()) {
G1HeapRegion hr = iter.next();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public static PointerLocation find(Address a) {
// If we are using the G1CollectedHeap, find out which region the address is in
if (heap instanceof G1CollectedHeap) {
G1CollectedHeap g1 = (G1CollectedHeap)heap;
loc.hr = g1.heapRegionForAddress(a);
loc.hr = g1.g1HeapRegionForAddress(a);
// We don't assert that loc.hr is not null like we do for the SerialHeap. This is
// because heap.isIn(a) can return true if the address is anywhere in G1's mapped
// memory, even if that area of memory is not in use by a G1HeapRegion. So there
Expand Down

0 comments on commit b007eb0

Please sign in to comment.