Skip to content

Commit ce5a9a3

Browse files
committed
fix: gc event promotion when there is humongous
1 parent 98bb26a commit ce5a9a3

File tree

1 file changed

+1
-1
lines changed
  • analysis/gc-log/src/main/java/org/eclipse/jifa/gclog/model

1 file changed

+1
-1
lines changed

Diff for: analysis/gc-log/src/main/java/org/eclipse/jifa/gclog/model/GCModel.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ private void calculateEventsMemoryInfo() {
659659
if (youngReduction != Constant.UNKNOWN_INT && totalReduction != Constant.UNKNOWN_INT) {
660660
long promotion = youngReduction - totalReduction;
661661
if (humongous != null && humongous.getMemoryReduction() != Constant.UNKNOWN_INT) {
662-
promotion -= humongous.getMemoryReduction();
662+
promotion += humongous.getMemoryReduction();
663663
}
664664
event.setPromotion(zeroIfNegative(promotion));
665665
}

0 commit comments

Comments
 (0)