Skip to content

Commit

Permalink
Support edan and survivor occupancy (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
loyispa authored Oct 11, 2023
1 parent 4966123 commit 8ca0d90
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,18 +296,18 @@ public void heapRegionSize(GCLogTrace trace, String line) {
//[15.316s][debug][gc,heap ] GC(0) region size 1024K, 24 young (24576K), 0 survivors (0K)
//ignore this logging for now
private void youngRegionAllotment(GCLogTrace trace, String line) {
// if (before) {
// forwardReference.setYoungOccupancyBeforeCollection(trace.getLongGroup(3));
// forwardReference.setSurvivorOccupancyBeforeCollection(trace.getLongGroup(5));
// forwardReference.setEdenOccupancyBeforeCollection(trace.getLongGroup(3)-trace.getLongGroup(5));
// forwardReference.setYoungSizeBeforeCollection(trace.getLongGroup(3));
// }
// else {
// forwardReference.setYoungOccupancyAfterCollection(trace.getLongGroup(5));
// forwardReference.setSurvivorOccupancyAfterCollection(trace.getLongGroup(5));
// forwardReference.setEdenOccupancyAfterCollection(0L);
// forwardReference.setYoungSizeAfterCollection(trace.getLongGroup(3));
// }
if (before) {
forwardReference.setYoungOccupancyBeforeCollection(trace.getLongGroup(3));
forwardReference.setSurvivorOccupancyBeforeCollection(trace.getLongGroup(5));
forwardReference.setEdenOccupancyBeforeCollection(trace.getLongGroup(3)-trace.getLongGroup(5));
forwardReference.setYoungSizeBeforeCollection(trace.getLongGroup(3));
}
else {
forwardReference.setYoungOccupancyAfterCollection(trace.getLongGroup(5));
forwardReference.setSurvivorOccupancyAfterCollection(trace.getLongGroup(5));
forwardReference.setEdenOccupancyAfterCollection(0L);
forwardReference.setYoungSizeAfterCollection(trace.getLongGroup(3));
}
}

/**
Expand Down

0 comments on commit 8ca0d90

Please sign in to comment.