Fix performance warnings

Stefan Marr java at stefan-marr.de
Fri May 29 17:05:13 UTC 2015


Hi Renze:

To figure out what’s causing the recursion/stack overflow, you could try to pass the ‘-d’ flag to mx, and then connect with your IDE to that port. In Eclipse that’s debugging a remote Java application.

You probably want to set a breakpoint here at com.oracle.graal.replacements.PEGraphDecoder.tryInline(PEGraphDecoder.java:430)

perhaps with a counter of 100 or so. And then, it should break when your problem occurs. The runtime data structures at that point will probably give you enough information to figure out which methods it tries to inline.

Best regards
Stefan


> On 29 May 2015, at 18:35, Renze Torensma <renzetorensma at gmail.com> wrote:
> 
> This is the extra output:
> 
> [thread:10] scope: 
>  [thread:10] scope: Truffle
>    [thread:10] scope: Truffle.CreateGraph
>      [thread:10] scope: Truffle.CreateGraph.InterceptException
>      Exception occurred in scope: Truffle.CreateGraph.InterceptException
>      Context obj java.lang.StackOverflowError
>      Context obj StructuredGraph:3{Rootnode : realTime, HotSpotMethod<OptimizedCallTarget.callRoot(Object[])>}
> [thread:11] scope: 
>  [thread:11] scope: Truffle
>    [thread:11] scope: Truffle.CreateGraph
>      [thread:11] scope: Truffle.CreateGraph.InterceptException
>      Exception occurred in scope: Truffle.CreateGraph.InterceptException
>      Context obj java.lang.StackOverflowError
>      Context obj StructuredGraph:4{Rootnode : println, HotSpotMethod<OptimizedCallTarget.callRoot(Object[])>}
> Could not connect to the IGV on 127.0.0.1:4445 : java.net.ConnectException: Connection refused
>      Context obj Truffle<Rootnode_:_println_2()>

-- 
Stefan Marr
Johannes Kepler Universität Linz
http://stefan-marr.de/research/





More information about the graal-dev mailing list