[OpenJDK 2D-Dev] Segment fault when loading sun.font.StrikeCache at first

Andrew Brygin andrew.brygin at oracle.com
Tue Mar 13 08:23:33 UTC 2012


Hi Charles,

   The fix looks fine to me.

Thanks,
Andrew

On 13.03.2012 11:16, Charles Lee wrote:
> Hi guys,
>
> I have create a sunbug @ 
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7153293
>
> It is mainly about:
> When loading sun.font.StrikeCache before sun.font.SunFontManager (or 
> something else), there will be an UnsatisfiedLinkError thrown. The 
> reason is there is a native call in its static initialize block, but 
> the native library is not loaded in yet.
> The problem will do harm, if user load SunFontManager after failing on 
> loading StrkeCache. You will see a VM crash occurred.
> The problem will do more harm, because user can never load 
> StrikeCache, SunLayoutEngine successfully.
>
> The patch is @ http://cr.openjdk.java.net/~littlee/7153293/webre.00/ 
> <http://cr.openjdk.java.net/%7Elittlee/7153293/webre.00/>
> It is straightforward. Just loading the native library at the 
> beginning of static initializer of StrikeCache.
>
> Would anyone help to review this?
>




More information about the 2d-dev mailing list