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

          Salikh Zakirov created issue -
          Salikh Zakirov made changes -
          Field Original Value New Value
          Attachment DeflateInflate.java [ 12347192 ]
          Gregory Shimansky made changes -
          Summary [drlvm][zip] Un-end()-ed deflaters leak native memory [drlvm] Un-end()-ed deflaters leak native memory
          Mikhail Markov made changes -
          Link This issue relates to HARMONY-2530 [ HARMONY-2530 ]
          Mikhail Markov made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Assignee Mikhail Markov [ mmarkov ]
          Resolution Duplicate [ 3 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development