harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Beliaev (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2692) [drlvm][nio] buffer's wrap() method leaks memory
Date Tue, 06 Feb 2007 14:36:06 GMT

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

Vladimir Beliaev commented on HARMONY-2692:

I have few minor comments related to this issue.

1. it is not reproducible with J9 machine (so one needs to start looking at it with DRLVM)

2. it takes about 7 minutes to get the failure (about 8'500'000 iterations passed by that
time) on mentioned configuration

3. the stack traces shows it is out of C heap (memory leak - as given in description):

harmonyvm.dll!_assert(const char * expr=0x007e9dd8, const char * filename=0x007e9d88, unsigned
int lineno=251)  Line 295	C
harmonyvm.dll!si_create_from_native(VM_thread * thread=0x011e1aa0)  Line 251 + 0x1a	C++
harmonyvm.dll!st_get_trace(VM_thread * p_vmthread=0x011e1aa0, unsigned int * res_depth=0x0013f200,
StackTraceFrame * * stfs=0x0013f1f4)  Line 154 + 0x9	C++
harmonyvm.dll!Java_org_apache_harmony_vm_VMStack_getStackState(JNIEnv_External * jenv=0x011e1bd8,
_jobject * __formal=0x0013f220)  Line 255 + 0x1d	C++

And asserting part of code is:
    StackIterator* res = (StackIterator*)STD_MALLOC(sizeof(StackIterator));

Hope this can safe a bit of your time if you take this issue.


> [drlvm][nio] buffer's wrap() method 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
> 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.

View raw message