Skip to content

Commit

Permalink
* fix node costs for g1 post barrier
Browse files Browse the repository at this point in the history
  • Loading branch information
tschatzl committed Dec 11, 2024
1 parent bc2aa0f commit 7761f0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hotspot/share/gc/g1/c2/g1BarrierSetC2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@ uint G1BarrierSetC2::estimated_barrier_size(const Node* node) const {
nodes += 50;
}
if ((barrier_data & G1C2BarrierPost) != 0) {
nodes += 60;
// Approximate the number of nodes needed with the number of Assembly instructions
// since we do not have real nodes.
nodes += 12;
}
return nodes;
}
Expand Down

0 comments on commit 7761f0e

Please sign in to comment.