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

test java/awt/FontClass/TestFontCache/TestFontCache.java failed on 1.3.1_23-b01 due to memory leak

XMLWordPrintable

    • sparc
    • solaris_9

      test java/awt/FontClass/TestFontCache/TestFontCache.java failed on 1.3.1_23-b01 but passed on previous one 1.3.1_22-b03

      test checks next one:
       * @summary invoke deriveFont on a font 10,000 times, and look at the memory consumption.
       * Since the derived fonts are being discarded little memory should be consumed. If too
       * much (determined empirically) has been consumed, report an error. Most likely cause
       * is a bad cache.
      a little memory is consumed for 1.3.1_22-b03
      Start : Memory used = 779848
      Derive font : Memory used = 929824 change = 149976
      ----------System.err:(1/15)----------
      STATUS:Passed.

      but there is a real memory leak for 1.3.1_23-b01
      Start : Memory used = 779832
      Derive font : Memory used = 1590160 change = 810328
      ----------System.err:(10/507)----------
      java.lang.Exception: excess memory consumed by deriveFont
        at TestFontCache.main(TestFontCache.java:49)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:83)
        at java.lang.Thread.run(Thread.java:479)

      *)test got from WS in the /net/jdk.sfbay/export/jpse04/Regression/1.3.1/bundles/1.3.1_23-b01-20080401.tar.gz

      **)Test failed on Solaris, but passed on windows (according to results of execution on Windows)

      ***)Bug opened for category where original bug was.
      .

            mbankal Mala Bankal (Inactive)
            edrobitk Eugene Drobitko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: