Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4965694

Too many char[] allocations with sun.text.resources.LocaleElements

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 5.0
    • core-libs
    • None

      Recently we integrated xsltc into Tiger and some of our tests throw OutOfMemory
      error. I profiled the test using OptimizeIt and have found that sun.text.resources.LocaleElements.java has 887 allocations which is 38.24% of the allocations of the 2319 char[] allocations . The source code history shows that that bug 4819436 was fixed and integrated in tiger-beta b28. I am attaching the profiled information. This seems like a bug in the getContents().

      http://javaweb.sfbay.sun.com/~bhakti/jaxp/data.html
      Filing the bug as per discussion with Yuka.

      ===

      Hi:
        Santiago narrowed down the problem to java.text.DecimalFormat class with a test program. He was able to reproduce the problem with small program. I am attaching that test program and raising priority to P2. Please change sub-category if needed.

      -Ramesh

            naoto Naoto Sato
            bhamehta Bhakti Mehta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: