Mercurial > hg > truffle
changeset 22085:9e0ac14f941b
Verify the thread invocation safetyness even inside of Symbol.invoke
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Mon, 17 Aug 2015 15:21:25 +0200 |
parents | 77562c7bc5a6 |
children | 93bfc9602271 |
files | truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/vm/TruffleVM.java |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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) {