Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/ThreadSafetyTest.java @ 22003:5bc7f7b867ab
Making debugger always on for each TruffleVM execution. Introducing EventConsumer to process such debugger events. Requesting each RootNode to be associated with a TruffleLanguage, so debugger can find out proper context for each Node where executions gets suspended.
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Sat, 18 Jul 2015 18:03:36 +0200 |
parents | 9c8c0937da41 |
children | dc83cc1f94f2 |
comparison
equal
deleted
inserted
replaced
22002:324997830dc9 | 22003:5bc7f7b867ab |
---|---|
82 static class TestRootNode extends RootNode { | 82 static class TestRootNode extends RootNode { |
83 | 83 |
84 @Child private ValueNode child; | 84 @Child private ValueNode child; |
85 | 85 |
86 public TestRootNode(ValueNode child) { | 86 public TestRootNode(ValueNode child) { |
87 super(null); | 87 super(TestingLanguage.class, null, null); |
88 this.child = child; | 88 this.child = child; |
89 } | 89 } |
90 | 90 |
91 @Override | 91 @Override |
92 public Object execute(VirtualFrame frame) { | 92 public Object execute(VirtualFrame frame) { |