diff --git a/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/util/FrameAccess.java b/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/util/FrameAccess.java index 0062471c4..a48064465 100644 --- a/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/util/FrameAccess.java +++ b/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/util/FrameAccess.java @@ -145,7 +145,9 @@ public static Object[] storeParentFrameInArguments(final VirtualFrame parentFram } public static Frame restoreParentFrameFromArguments(final Object[] arguments) { - return (Frame) arguments[ArgumentIndicies.CLOSURE_OR_NULL.ordinal()]; + Object frame = arguments[ArgumentIndicies.CLOSURE_OR_NULL.ordinal()]; + arguments[ArgumentIndicies.CLOSURE_OR_NULL.ordinal()] = null; + return (Frame) frame; } public static Object getReceiver(final Frame frame) {