Skip to content

Commit

Permalink
Fix minor loop explosion problem
Browse files Browse the repository at this point in the history
(add numCopied to list of guards)
  • Loading branch information
fniephaus committed Dec 21, 2018
1 parent d79a836 commit e6875e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static GetBlockFrameArgumentsNode create() {

public abstract Object[] execute(BlockClosureObject block, Object senderOrMarker, Object[] objects);

@Specialization(guards = {"objects.length == numObjects", "block.getCallTarget() == cachedCallTarget"}, limit = "3", assumptions = "callTargetStable")
@Specialization(guards = {"objects.length == numObjects", "block.getStack().length == numCopied", "block.getCallTarget() == cachedCallTarget"}, limit = "3", assumptions = "callTargetStable")
@ExplodeLoop
protected static final Object[] doCached(final BlockClosureObject block, final Object senderOrMarker, final Object[] objects,
@SuppressWarnings("unused") @Cached("block.getCallTarget()") final RootCallTarget cachedCallTarget,
Expand Down

0 comments on commit e6875e7

Please sign in to comment.