Skip to content

Commit

Permalink
Avoid potential deopt loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Aug 9, 2024
1 parent df18e86 commit 9b89cef
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ protected final Object readObject(final VirtualFrame frame) {
*/
CompilerDirectives.transferToInterpreter();
value = frame.getValue(slotIndex);
if (!clearSlotAfterRead) {
frame.setObject(slotIndex, value);
}
} else {
value = frame.getObject(slotIndex);
}
Expand Down

1 comment on commit 9b89cef

@TruffleSqueak-Bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Performance Report (9b89cef)

Benchmarks ran on 22.0.2-graal.

Steady (after 100 iterations)

Benchmark Name Min Geomean Median Mean Max Total (ms) Total (min)
Bounce 516 531 518.65 517 518.64 103729 1.73
CD 492 505 495.04 493 495.02 99007 1.65
DeltaBlue 278 460 407.74 404 405.49 81547 1.36
Havlak 1130 1185 1159.03 1164 1158.95 231806 3.86
Json 352 361 354.51 353 354.5 70902 1.18
List 306 317 307.06 307 307.06 61412 1.02
Mandelbrot 127 138 127.61 127 127.6 25522 0.43
NBody 249 264 252.94 251 252.92 50587 0.84
Permute 154 164 155.59 155 155.57 31117 0.52
Queens 230 243 231.43 231 231.42 46286 0.77
Richards 1216 1230 1220.19 1221 1220.19 244038 4.07
Sieve 177 189 177.99 178 177.97 35597 0.59
Storage 141 175 143.1 142 143.06 28620 0.48
Towers 197 209 199.04 198 199.03 39807 0.66
5565 5971 5749.88 5741 5747.42 1149977 19.17

9b89cef-2-steady.svg

Warmup (first 100 iterations)

9b89cef-3-warmup.svg

Please sign in to comment.