# HG changeset patch # User Doug Simon # Date 1391180793 -3600 # Node ID 36226874c1462585b2a0dc9cddc5cbc91bda455c # Parent b97e2515d392c6eeae8efb62dc9544d29e73c436 removed handling of pending exception from PTX wrapper as a stub does that diff -r b97e2515d392 -r 36226874c146 graal/com.oracle.graal.hotspot.ptx/src/com/oracle/graal/hotspot/ptx/PTXWrapperBuilder.java --- a/graal/com.oracle.graal.hotspot.ptx/src/com/oracle/graal/hotspot/ptx/PTXWrapperBuilder.java Fri Jan 31 16:05:37 2014 +0100 +++ b/graal/com.oracle.graal.hotspot.ptx/src/com/oracle/graal/hotspot/ptx/PTXWrapperBuilder.java Fri Jan 31 16:06:33 2014 +0100 @@ -253,11 +253,7 @@ ForeignCallNode result = append(new ForeignCallNode(providers.getForeignCalls(), CALL_KERNEL, launchArgsArray)); result.setDeoptimizationState(fs); - ConstantNode isObjectResultArg = ConstantNode.forBoolean(returnKind == Kind.Object, getGraph()); - InvokeNode handlePendingException = createInvoke(getClass(), "handlePendingException", args.get(Thread), isObjectResultArg); - handlePendingException.setStateAfter(fs); InvokeNode getObjectResult = null; - ValueNode returnValue; switch (returnKind) { case Void: @@ -357,19 +353,6 @@ } /** - * Snippet invoked upon return from the kernel to handle any pending exceptions. - */ - @Snippet - private static void handlePendingException(Word thread, boolean isObjectResult) { - if (clearPendingException(thread)) { - if (isObjectResult) { - getAndClearObjectResult(thread); - } - DeoptimizeNode.deopt(DeoptimizationAction.None, RuntimeConstraint); - } - } - - /** * Snippet invoked upon return from the kernel to retrieve an object return value from the * thread local used for communicating object return values from VM calls. */