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

sun.java2d.SunGraphics2D#dispose() method does not enough clear native memory

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • CPU:
      x86
    • OS:
      generic

      Description

      C Heap size is increased when sun.java2d.SunGraphics2D instances are created/removed repeatedly and HotSpot does not execute Full GC. Then OutOfMemoryError or HotSpot crash may be happened depending on Java Heap Size on Windows 32bit environment especially.

      C Heap increasing is also seen on other platform, for example Linux.

      Reproduced on:
      - 1.7.0_151:
        Java(TM) SE Runtime Environment (build 1.7.0_151-b33)
        Java HotSpot(TM) Client VM (build 24.151-b33, mixed mode, sharing)
      - 1.8.0_144:
        Java(TM) SE Runtime Environment (build 1.8.0_144-b32)
        Java HotSpot(TM) Client VM (build 25.144-b32, mixed mode, sharing)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              aivanov Alexey Ivanov
              Reporter:
              shadowbug Shadow Bug
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: