harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov" <alexey.v.varla...@gmail.com>
Subject Re: [drlvm][jitrino]runtime error after escape optpass added
Date Thu, 15 Mar 2007 11:08:51 GMT
Estelle,

2007/3/15, Estelle Liu <lyy1105@gmail.com>:
> hi,
>  I run into such a runtime error recently:
> First, escape optpass is added in the client.emconf file as below:
> -XDjit.CD_OPT.path.optimizer=ssa,devirt,inline,uce,purge,simplify,dce,uce,escape,lazyexc,memopt,simplify,dce,uce,lower,dessa,statprof,markglobals.
> And then bytecode classes  are translated and optimized ,whose source
> code are :
>
> public class Example {
>  static public void main(String[] arg){
>      Example e = new Example();
>      for(long i = 1;i<=20000;i++)
>      {e.count(i) ;}
>     } //main
>  public void count(long i){
>      Long c = new Long(i);
>      System.out .println(c.longValue() );
>     } //count
>  } //Example
>
> It is odd that assertion errors occur when method count runs the 2496th
> time.

This is how the client mode works - optimizing compiler starts working
on hot methods only after hottness threshold is met.

> The assertion errors would be like:
> File: \trunk\working_vm…\CGSupport.cpp
> Line: 253
> Expression: (size_t)key < theVector àsize()
>
Re-implemented version of scalar optimization was checked in today,
your example works for me. Could you please re-check if the problem
still reproducible?

--
Thanks,
Alexey
>
>
> Anything  is wrong here?
>
>
>
> --
> Estelle
>

Mime
View raw message