Can't figure out VerifyFrameDoesNotEscape

Timothy Baldridge tbaldridge at gmail.com
Thu Oct 3 12:00:16 PDT 2013


That fixed it, thanks!

Timothy


On Thu, Oct 3, 2013 at 11:50 AM, Andreas Woess <andreas.woess at jku.at> wrote:

> Thanks for your interest in Truffle. You need to annotate
> BlockNode.execute with @ExplodeLoop to force loop unrolling.
>
> - andreas
>
> On 03.10.2013 19:44, Timothy Baldridge wrote:
> > I've been playing around with a simple BF interpreter written in Truffle.
> > Last night I got this error for the first time:
> >
> > [thread:1] scope:
> >   [thread:1] scope: Truffle
> >     [thread:1] scope: Truffle.createGraph
> >       [thread:1] scope: Truffle.createGraph.VerifyFrameDoesNotEscape
> >         [thread:1] scope:
> > Truffle.createGraph.VerifyFrameDoesNotEscape.InterceptException
> >         Exception occurred in scope:
> > Truffle.createGraph.VerifyFrameDoesNotEscape.InterceptException
> >         Context obj com.oracle.graal.nodes.util.GraphUtil$2: Frame
> escapes
> > at: 67|MethodCallTarget#HotSpotMethod<BFNode.execute(VirtualFrame,
> byte[],
> > int)>
> >
> > My AST is available here :
> >
> https://bitbucket.org/cint/trufflebf/src/274c7f80c83936d4bf705197f97c825cd40d0fc0/src/trufflebf/nodes?at=master
> >
> > As you can see, all my children are marked with @Child and are private
> > final. What am I doing wrong?
> >
> > Thanks!
> >
> > Timothy Baldridge
> >
>
>


-- 
“One of the main causes of the fall of the Roman Empire was that–lacking
zero–they had no way to indicate successful termination of their C
programs.”
(Robert Firth)


More information about the graal-dev mailing list