You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Varlamov (JIRA)" <ji...@apache.org> on 2008/05/26 08:23:55 UTC

[jira] Commented: (HARMONY-5844) [drlvm] class unloading wastes memory

    [ https://issues.apache.org/jira/browse/HARMONY-5844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12599766#action_12599766 ] 

Alexey Varlamov commented on HARMONY-5844:
------------------------------------------

Typical backtrace of OOM crash, just for reference:
Stack trace:
  0: memset (:-1)
  1: gc_alloc (c:\apache-dev\harmony\trunk\working_vm\vm\gc_gen\src\thread\mutator_alloc.cpp:94)
  2: vm_anewarray_resolved_array_type (c:\apache-dev\harmony\trunk\working_vm\vm\vmcore\src\object\vm_arrays.cpp:86)
  3: vm_new_vector (c:\apache-dev\harmony\trunk\working_vm\vm\vmcore\src\object\vm_arrays.cpp:157)
  4: vm_multianewarray_recursive (c:\apache-dev\harmony\trunk\working_vm\vm\vmcore\src\object\vm_arrays.cpp:317)
  5: vm_rt_multianewarray_recursive (c:\apache-dev\harmony\trunk\working_vm\vm\vmcore\src\jit\jit_runtime_support.cpp:89)
  6: rth_multianewarrayhelper (c:\apache-dev\harmony\trunk\working_vm\vm\vmcore\src\util\ia32\base\jit_runtime_support_ia32.cpp:679)
  7: stub::unknown
  8: org/apache/harmony/vm/test/lazyresolution/data/AllocationTest::testNewMultiArray6 (()V): AllocationTest.java:258

> [drlvm] class unloading wastes memory
> -------------------------------------
>
>                 Key: HARMONY-5844
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5844
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Alexey Varlamov
>
> Simple class unloading scenario shows that DRLVM leaks memory (and finally crashes). To reproduce, run StressTest of lazy.test suite and watch that process gradually consumes more and more memory. If compared to RI, the last keeps memory flat during very long runs.
> Memory leaks roughly in the same rate for any execution mode, compiled or interpreted.
> For convenience, there is standalone launcher org.apache.harmony.vm.test.lazyresolution.StressTest which can vary stress load, e.g.: 
> working_vm$ cd build\windows_x86_msvc_release\tests\lazy.tests\classes 
> classes$ java -cp .;junit.jar -Dlazy.test.iterations=100 -Dlazy.test.threads=10 org.apache.harmony.vm.test.lazyresolution.StressTest

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