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

Java_sun_font_CFont_getCascadeList leaks memory according to Xcode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 17
    • None
    • client-libs
    • None
    • b10
    • os_x

    Description

      Running J2Demo.jar in Xcode Instruments leak profile shows ~37.5KiB memory leak in Java_sun_font_CFont_getCascadeList in these frames:

       Malloc 7.50 KiB 1 0x7fde7d938200 7.50 KiB libawt_lwawt.dylib Java_sun_font_CFont_getCascadeList

         0 libsystem_malloc.dylib malloc_zone_malloc
         1 libsystem_malloc.dylib malloc
         2 CoreFoundation -[__NSArrayM insertObject:atIndex:]
         3 CoreFoundation __CFLocaleCopyCStringsAsArray
         4 libawt_lwawt.dylib Java_sun_font_CFont_getCascadeList /Volumes/Work/review/2403/jdk/src/java.desktop/macosx/native/libawt_lwawt/font/AWTFont.m:557
         5 0x11ab08d48

      and

       NSArray 1 0x7fddfd4f7530 336 Bytes libawt_lwawt.dylib Java_sun_font_CFont_getCascadeList

         0 libsystem_malloc.dylib malloc_zone_calloc
         1 libsystem_malloc.dylib calloc
         2 libobjc.A.dylib class_createInstance
         3 CoreFoundation __CFAllocateObject
         4 CoreFoundation __NSArrayI_new
         5 CoreFoundation -[NSArray initWithArray:range:copyItems:]
         6 CoreText CTFontCopyDefaultCascadeListForLanguages
         7 libawt_lwawt.dylib Java_sun_font_CFont_getCascadeList /Volumes/Work/review/2403/jdk/src/java.desktop/macosx/native/libawt_lwawt/font/AWTFont.m:562
         8 0x11ab08d48

      Attachments

        Issue Links

          Activity

            People

              prr Philip Race
              gziemski Gerard Ziemski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: