Re: Boxed types and constat propagation

2012-04-25 Thread Christian Thalinger
On Apr 23, 2012, at 4:29 PM, Rémi Forax wrote: > On 04/24/2012 12:57 AM, Kohsuke Kawaguchi wrote: >> On 04/23/2012 11:18 AM, Rémi Forax wrote: So again, I don't see how shifting from method handle tree to byte code generation would somehow make this non-issue. >>> >>> In fact, it's eas

Re: Boxed types and constat propagation

2012-04-25 Thread Rémi Forax
On 04/25/2012 06:38 PM, Christian Thalinger wrote: > On Apr 23, 2012, at 4:29 PM, Rémi Forax wrote: > >> On 04/24/2012 12:57 AM, Kohsuke Kawaguchi wrote: >>> On 04/23/2012 11:18 AM, Rémi Forax wrote: > So again, I don't see how shifting from method handle tree to byte > code generation woul

Re: Boxed types and constat propagation

2012-04-25 Thread Fredrik Öhrström
>> That's a lot of optimization that I otherwise wouldn't have to do, if >> only boxed types and constant propagation worked well, but yeah, I see >> how it can work now. Clearly the C1/C2 compiler needs to be improved. In the meantime you have to work around their limitations. > BTW, I've patche

Re: Boxed types and constat propagation

2012-04-25 Thread Kohsuke Kawaguchi
On 04/25/2012 10:23 AM, Fredrik Öhrström wrote: >>> That's a lot of optimization that I otherwise wouldn't have to do, if >>> only boxed types and constant propagation worked well, but yeah, I see >>> how it can work now. > > Clearly the C1/C2 compiler needs to be improved. In the meantime > you

Re: Boxed types and constat propagation

2012-04-25 Thread Rémi Forax
On 04/25/2012 07:23 PM, Fredrik Öhrström wrote: >>> That's a lot of optimization that I otherwise wouldn't have to do, if >>> only boxed types and constant propagation worked well, but yeah, I see >>> how it can work now. > Clearly the C1/C2 compiler needs to be improved. In the meantime > you have

Re: Boxed types and constat propagation

2012-04-25 Thread Mark Roos
>From Christian Although something that John and I talked about yesterday could help here: immutable (or stable) arrays. We might add some optimization for this soon since we'd need it for bound arguments in our new JSR 292 implementation. I also have a somewhat large ( 5K) cache of my boxe

Re: Boxed types and constat propagation

2012-04-25 Thread Christian Thalinger
On Apr 25, 2012, at 11:03 AM, Mark Roos wrote: > From Christian > > Although something that John and I talked about yesterday could help here: > immutable (or stable) arrays. We might add some optimization for this soon > since we'd need it for bound arguments in our new JSR 292 implementat

Re: Boxed types and constat propagation

2012-04-25 Thread Mark Roos
Hi Christian you mention the only way I can think of to make this available to users is an annotation. Since I am writing my own bytecodes/classes I am not limited to how the java language might do this. If there is a way for me to tweak the class file to pass the request to hotspot th