readonly arrays

Tom Rodriguez tom.rodriguez at oracle.com
Fri Jun 20 17:36:28 UTC 2014


> 
> There's been a few prototypes for good support of this concepts in
> Graal but it's not so well supported currently.
> The problem is that all of the annotation based workaround mentioned
> above all work at the field level while this information should really
> be in the type.
> 
> I think we will need it anyway at some point. First because it would
> probably allow us to unify the 3 different concepts from above. And
> secondly because it may become important to be able to run LambdaForms
> with good performances.

I was kicking around the idea of adding support for stable array contents to Constant so that loads from the char[] of constant Strings can be constant folded.  I was just going to special case Strings but a more general tagging strategy wouldn’t be hard to add.

tom

> 
> -Gilles
> 
> On Fri, Jun 20, 2014 at 12:41 AM, Tom Deneau <tom.deneau at amd.com> wrote:
>> Does graal have any concept of marking an array as having constant primitive values?
>> For instance on hsa such an array could be put in readonly memory and compiled into the kernel rather than accessed thru global memory.
>> 
>> -- Tom



More information about the graal-dev mailing list