Skip to content

Commit

Permalink
fix: gc event promotion when there is humongous
Browse files Browse the repository at this point in the history
  • Loading branch information
leveretconey committed Jul 22, 2024
1 parent 98bb26a commit ce5a9a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ private void calculateEventsMemoryInfo() {
if (youngReduction != Constant.UNKNOWN_INT && totalReduction != Constant.UNKNOWN_INT) {
long promotion = youngReduction - totalReduction;
if (humongous != null && humongous.getMemoryReduction() != Constant.UNKNOWN_INT) {
promotion -= humongous.getMemoryReduction();
promotion += humongous.getMemoryReduction();
}
event.setPromotion(zeroIfNegative(promotion));
}
Expand Down

0 comments on commit ce5a9a3

Please sign in to comment.