Skip to content

Commit

Permalink
Minor edit
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Dec 26, 2023
1 parent 038683f commit aa239d4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,11 @@ protected static final PointersObject doSuspendOtherProcess(final PointersObject
@Cached final AbstractPointersObjectReadNode readNode,
@Cached final AbstractPointersObjectWriteNode writeNode) {
final Object myListOrNil = readNode.execute(node, receiver, PROCESS.LIST);
if (myListOrNil == NilObject.SINGLETON) {
if (!(myListOrNil instanceof final PointersObject myList)) {
CompilerDirectives.transferToInterpreter();
assert myListOrNil == NilObject.SINGLETON;
throw PrimitiveFailed.BAD_RECEIVER;
}
final PointersObject myList = (PointersObject) myListOrNil;
removeProcessNode.executeRemove(receiver, myList, readNode, writeNode, node);
writeNode.execute(node, receiver, PROCESS.LIST, NilObject.SINGLETON);
return myList;
Expand Down

1 comment on commit aa239d4

@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 (aa239d4)

Benchmarks ran on graalvm-jdk-21+35.1.

Steady (after 100 iterations)

Benchmark Name Min Geomean Median Mean Max Total (ms) Total (min)
Bounce 557 566 559.23 558 559.22 111846 1.86
CD 492 503 495.34 493 495.32 99067 1.65
DeltaBlue 284 467 416.84 414.5 415.57 83367 1.39
Havlak 1138 1188 1167.53 1172 1167.46 233506 3.89
Json 372 379 374.25 373 374.24 74850 1.25
List 376 386 377.24 377 377.23 75447 1.26
Mandelbrot 231 239 234.86 236 234.84 46971 0.78
NBody 256 271 259.51 258 259.48 51901 0.87
Permute 154 164 155.6 155 155.59 31120 0.52
Queens 244 260 246.47 245 246.45 49293 0.82
Richards 1209 1260 1214.26 1214 1214.24 242851 4.05
Sieve 177 188 178.06 178 178.05 35612 0.59
Storage 140 151 142.59 141 142.56 28517 0.48
Towers 201 216 203.5 203 203.49 40699 0.68
5831 6238 6025.24 6017.5 6023.76 1205047 20.08

aa239d4-2-steady.svg

Warmup (first 100 iterations)

aa239d4-3-warmup.svg

Please sign in to comment.