# HG changeset patch # User Jaroslav Tulach # Date 1439817685 -7200 # Node ID 9e0ac14f941b2cb9138b251dea3e50d47f186740 # Parent 77562c7bc5a6f514064fec5b5f2cd8f2b128815c Verify the thread invocation safetyness even inside of Symbol.invoke diff -r 77562c7bc5a6 -r 9e0ac14f941b truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/vm/TruffleVM.java --- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/vm/TruffleVM.java Mon Aug 17 15:20:42 2015 +0200 +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/vm/TruffleVM.java Mon Aug 17 15:21:25 2015 +0200 @@ -474,6 +474,7 @@ * @throws IOException signals problem during execution */ public Object invoke(Object thiz, Object... args) throws IOException { + checkThread(); Debugger[] fillIn = {debugger}; try (Closeable c = SPI.executionStart(TruffleVM.this, fillIn, null)) { if (debugger == null) {