Can't figure out VerifyFrameDoesNotEscape
Andreas Woess
andreas.woess at jku.at
Thu Oct 3 10:50:07 PDT 2013
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
>
More information about the graal-dev
mailing list