[OpenJDK Rasterizer] Fwd: Re: Fwd: RFR: Marlin renderer #3
Jim Graham
james.graham at oracle.com
Thu Aug 13 20:35:28 UTC 2015
On 8/10/2015 2:15 PM, Laurent Bourgès wrote:
> Renderer.java, line 792: Do you need to copy ERR_STEP_MAX into a
> local? It is a statically initialized final int - that should
> already be a constant that gets copied into the code.
>
>
> I always copy constants used in loops to avoid repeated constant lookups.
I was under the understanding that if a constant is declared final and
static, then it is compiled directly into the code and there is no
constant lookup. Check the bytecodes and you should see a hard-coded
literal 0x7fffffff everywhere it is used...
...jim
More information about the graphics-rasterizer-dev
mailing list