[OpenJDK 2D-Dev] Review Reqeust for Bug 100068 - SunGraphics2D exposes a reference to itself while non fully initialised
linuxhippy at gmail.com
Tue Jun 23 10:41:16 UTC 2009
> - Accessors can be inlined if they are final, but these aren't. As it turns
> out, SG2D itself is final and so I believe that is enough for them to be
> inlined, but I tend to make methods final as well to underscore that they
> are intended to be inlined, and also in case we eventually decide to make
> the class non-final.
The client-compiler can inline virtual methods since 1.4, however it
inserts a conditional to trap if the target is not of the expected
type - so setting stuff final at least can't hurt ;)
I really hope tiered compiulation will make it into Java7.
More information about the 2d-dev