Field access optimisations inside loops (question).

Ulf Zibis Ulf.Zibis at
Fri Jan 8 04:07:13 PST 2010

Am 08.01.2010 11:07, Dawid Weiss schrieb:
>> 1. I'm wondering, why there is only moved a byte (MOV8) to the 'value'
>> variable instead of a int. (what is the element size in list?)
> The buffer is byte[], the variable is an int -- it's just an example,
> the same thing happens regardless of
> the array type/ variable combination.

Hm ???

final int [] buffer = list.buffer;

... should result in compile error, if list.buffer is byte[] !!!


More information about the hotspot-compiler-dev mailing list