Harmony
  1. Harmony
  2. HARMONY-2697

[drlvm] Un-end()-ed deflaters leak native memory

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: DRLVM
    • Labels:
      None
    • Environment:
      Windows XP i686

      Description

      The attached test DeflateInflate.java quickly leaks memory and crashes on DRLVM.
      The test works okay on J9 and HotSpot.
      Note, that JRockit also leaks memory and crashes.

      Effectively, the test creates huge amounts of java objects, which keep pointers to blocks allocated
      in native heap. The native heap is exhausted before java heap is filled, so no garbage collection
      occurs. Should the java collection occur, it would be able to detect unreachable finalizable objects,
      run finalizers, which in turn will free native memory.

      1. DeflateInflate.java
        1.0 kB
        Salikh Zakirov

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Mikhail Markov
              Reporter:
              Salikh Zakirov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development