comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/UnexpectedResultException.java @ 22411:047a3382617c

transfer to interpreter and invalidate in UnexpectedResultException constructor
author Andreas Woess <andreas.woess@oracle.com>
date Mon, 23 Nov 2015 19:12:11 +0100
parents dc83cc1f94f2
children
comparison
equal deleted inserted replaced
22410:ee2f300d47be 22411:047a3382617c
41 * the return type. 41 * the return type.
42 * 42 *
43 * @param result the alternative result 43 * @param result the alternative result
44 */ 44 */
45 public UnexpectedResultException(Object result) { 45 public UnexpectedResultException(Object result) {
46 CompilerDirectives.transferToInterpreter(); 46 CompilerDirectives.transferToInterpreterAndInvalidate();
47 this.result = result; 47 this.result = result;
48 } 48 }
49 49
50 /** 50 /**
51 * @return the unexpected result 51 * @return the unexpected result