You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Gregory Shimansky (JIRA)" <ji...@apache.org> on 2007/02/09 12:30:05 UTC

[jira] Updated: (HARMONY-2692) [drlvm] throwing exception in mixed mode leaks memory

     [ https://issues.apache.org/jira/browse/HARMONY-2692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky updated HARMONY-2692:
---------------------------------------

    Summary: [drlvm] throwing exception in mixed mode leaks memory  (was: [drlvm][jit] throwing exception in mixed mode leaks memory)

It appears that the bug is not in JIT. Memory leak happens because exception throwing helper allocates new handle for the exception object. Since this helper is called without M2N frame, this local handle is allocated in the same frame which java program uses. When it is done in a loop, these local handles are created infinitely.

> [drlvm] throwing exception in mixed mode leaks memory
> -----------------------------------------------------
>
>                 Key: HARMONY-2692
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2692
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP i686
>            Reporter: Salikh Zakirov
>         Attachments: BufferWrap.java, ExceptionLeakTest.java
>
>
> The function wrap() of nio buffers leaks memory when invoked with illegal arguments.
> When the attached test BufferWrap.java is run on DRLVM, it steadily increases used memory until crash.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.