My Oracle Support Banner

Intermittent High CPU Issue Involving SunLayoutEngine.getEngine and java.util.HashMap.get (Doc ID 1473441.1)

Last updated on OCTOBER 23, 2019

Applies to:

Java Platform, Standard Edition - Version 5.0 to 7 [Release 5.0 to 7]
Information in this document applies to any platform.


If you are experiencing high CPU load and see a stack trace similar to that which follows...

Spinning thread in an application running with the HotSpot VM:


"GlyphLayout Thread 1" prio=10 tid=<TID> nid=<NID> runnable [0x00007f5851af4000]
   java.lang.Thread.State: RUNNABLE
        at java.util.HashMap.get(
        at sun.font.SunLayoutEngine.getEngine(
        at sun.font.GlyphLayout$EngineRecord.init(
        at sun.font.GlyphLayout.nextEngineRecord(
        at sun.font.GlyphLayout.layout(
        at sun.font.ExtendedTextSourceLabel.createGV(
        at sun.font.ExtendedTextSourceLabel.getGV(
        at sun.font.ExtendedTextSourceLabel.createCharinfo(
        at sun.font.ExtendedTextSourceLabel.getCharinfo(
        at sun.font.ExtendedTextSourceLabel.getLineBreakIndex(
        at java.awt.font.TextMeasurer.calcLineBreak(
        at java.awt.font.TextMeasurer.getLineBreakIndex(
        at java.awt.font.LineBreakMeasurer.nextOffset(
        at java.awt.font.LineBreakMeasurer.nextLayout(
        at java.awt.font.LineBreakMeasurer.nextLayout(

Spinning thread in an application running with the JRockit VM:


"GlyphLayout Thread 1" id=<ID> idx=0x38 tid=<TID> prio=5 alive, native_blocked
    at java/util/HashMap.get(
    at sun/font/SunLayoutEngine.getEngine(
    at sun/font/GlyphLayout$EngineRecord.init(
    at sun/font/GlyphLayout.nextEngineRecord(
    at sun/font/GlyphLayout.layout(
    at sun/font/ExtendedTextSourceLabel.createGV(
    at sun/font/ExtendedTextSourceLabel.getGV(
    at sun/font/ExtendedTextSourceLabel.createCharinfo(
    at sun/font/ExtendedTextSourceLabel.getCharinfo(
    at sun/font/ExtendedTextSourceLabel.getLineBreakIndex(
    at java/awt/font/TextMeasurer.calcLineBreak(
    at java/awt/font/TextMeasurer.getLineBreakIndex(
    at java/awt/font/LineBreakMeasurer.nextOffset(
    at java/awt/font/LineBreakMeasurer.nextLayout(
    at java/awt/font/LineBreakMeasurer.nextLayout(
    at java/lang/
    at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
    -- end of trace


You are facing a problem with accessing an HashMap concurrently.  The specific instance cited above is a defect in Java code.




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.