Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/vm/TruffleVMSingleThreadedTest.java @ 21557:31fc2fce38f3
Merge.
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 27 May 2015 13:32:18 +0200 |
parents | b1530a6cce8c 3286fb5fea4a |
children |
comparison
equal
deleted
inserted
replaced
21556:48c1ebd24120 | 21557:31fc2fce38f3 |
---|---|
32 public class TruffleVMSingleThreadedTest { | 32 public class TruffleVMSingleThreadedTest { |
33 TruffleVM tvm; | 33 TruffleVM tvm; |
34 | 34 |
35 @Before | 35 @Before |
36 public void initInDifferentThread() throws InterruptedException { | 36 public void initInDifferentThread() throws InterruptedException { |
37 final TruffleVM.Builder b = TruffleVM.newVM(); | |
37 Thread t = new Thread("Initializer") { | 38 Thread t = new Thread("Initializer") { |
38 @Override | 39 @Override |
39 public void run() { | 40 public void run() { |
40 tvm = TruffleVM.create(); | 41 tvm = b.build(); |
41 } | 42 } |
42 }; | 43 }; |
43 t.start(); | 44 t.start(); |
44 t.join(); | 45 t.join(); |
45 } | 46 } |