You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ilya Leviev (JIRA)" <ji...@apache.org> on 2007/12/25 17:24:43 UTC
[jira] Created: (HARMONY-5344) [drlvm][gc] memory leak at
mspace_initialize at mspace.cpp while EIOffice run
[drlvm][gc] memory leak at mspace_initialize at mspace.cpp while EIOffice run
-----------------------------------------------------------------------------
Key: HARMONY-5344
URL: https://issues.apache.org/jira/browse/HARMONY-5344
Project: Harmony
Issue Type: Bug
Components: DRLVM
Environment: win32
Reporter: Ilya Leviev
memory leak at mspace_initialize at mspace.cpp while EIOffice run
svn = r605216
While profiling a simple EIOffice application on Harmony using
BoundsChecker, the tool detected following memory leaks.
"mspace->space_statistic" not disposed correctly while EIOffice run.
The issue also reproduced while HWA run.
Here is stack trace:
Memory Leak allocated by malloc.
mspace_initialize c:\home\os\hy2\trunk\working_vm\vm\gc_gen\src\mark_compact\mspace.cpp 72
line 72: mspace->space_statistic = (Space_Statistics*)STD_MALLOC(sizeof(Space_Statistics));
gc_mos_initialize c:\home\os\hy2\trunk\working_vm\vm\gc_gen\src\gen\gen.cpp 315
gc_gen_initialize c:\home\os\hy2\trunk\working_vm\vm\gc_gen\src\gen\gen.cpp 223
gc_init c:\home\os\hy2\trunk\working_vm\vm\gc_gen\src\common\gc_for_vm.cpp 102
vm_init1 c:\home\os\hy2\trunk\working_vm\vm\vmcore\src\init\vm_init.cpp 789
JNI_CreateJavaVM c:\home\os\hy2\trunk\working_vm\vm\vmcore\src\jni\jni.cpp 499
vmdlldir_parseCmdLine C:\home\os\hy2\trunk\working_vm\build\win_ia32_msvc_debug\deploy\jdk\jre\bin\java.exe!0x0000011d
gpProtectedMain C:\home\os\hy2\trunk\working_vm\build\win_ia32_msvc_debug\deploy\jdk\jre\bin\java.exe!0x000007ed
main C:\home\os\hy2\trunk\working_vm\build\win_ia32_msvc_debug\deploy\jdk\jre\bin\java.exe!0x000000b3
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HARMONY-5344) [drlvm][gc] memory leak at
mspace_initialize at mspace.cpp while EIOffice run
Posted by "Xiao-Feng Li (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiao-Feng Li reassigned HARMONY-5344:
-------------------------------------
Assignee: Xiao-Feng Li
> [drlvm][gc] memory leak at mspace_initialize at mspace.cpp while EIOffice run
> -----------------------------------------------------------------------------
>
> Key: HARMONY-5344
> URL: https://issues.apache.org/jira/browse/HARMONY-5344
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Environment: win32
> Reporter: Ilya Leviev
> Assignee: Xiao-Feng Li
> Attachments: HARMONY-5344.patch
>
>
> memory leak at mspace_initialize at mspace.cpp while EIOffice run
> svn = r605216
> While profiling a simple EIOffice application on Harmony using
> BoundsChecker, the tool detected following memory leaks.
> "mspace->space_statistic" not disposed correctly while EIOffice run.
> The issue also reproduced while HWA run.
> Here is stack trace:
> Memory Leak allocated by malloc.
> mspace_initialize c:\home\os\hy2\trunk\working_vm\vm\gc_gen\src\mark_compact\mspace.cpp 72
> line 72: mspace->space_statistic = (Space_Statistics*)STD_MALLOC(sizeof(Space_Statistics));
> gc_mos_initialize c:\home\os\hy2\trunk\working_vm\vm\gc_gen\src\gen\gen.cpp 315
> gc_gen_initialize c:\home\os\hy2\trunk\working_vm\vm\gc_gen\src\gen\gen.cpp 223
> gc_init c:\home\os\hy2\trunk\working_vm\vm\gc_gen\src\common\gc_for_vm.cpp 102
> vm_init1 c:\home\os\hy2\trunk\working_vm\vm\vmcore\src\init\vm_init.cpp 789
> JNI_CreateJavaVM c:\home\os\hy2\trunk\working_vm\vm\vmcore\src\jni\jni.cpp 499
> vmdlldir_parseCmdLine C:\home\os\hy2\trunk\working_vm\build\win_ia32_msvc_debug\deploy\jdk\jre\bin\java.exe!0x0000011d
> gpProtectedMain C:\home\os\hy2\trunk\working_vm\build\win_ia32_msvc_debug\deploy\jdk\jre\bin\java.exe!0x000007ed
> main C:\home\os\hy2\trunk\working_vm\build\win_ia32_msvc_debug\deploy\jdk\jre\bin\java.exe!0x000000b3
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (HARMONY-5344) [drlvm][gc] memory leak at
mspace_initialize at mspace.cpp while EIOffice run
Posted by "Xiao-Feng Li (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiao-Feng Li closed HARMONY-5344.
---------------------------------
Resolution: Fixed
fixed in r614520.
> [drlvm][gc] memory leak at mspace_initialize at mspace.cpp while EIOffice run
> -----------------------------------------------------------------------------
>
> Key: HARMONY-5344
> URL: https://issues.apache.org/jira/browse/HARMONY-5344
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Environment: win32
> Reporter: Ilya Leviev
> Assignee: Xiao-Feng Li
> Attachments: HARMONY-5344.patch
>
>
> memory leak at mspace_initialize at mspace.cpp while EIOffice run
> svn = r605216
> While profiling a simple EIOffice application on Harmony using
> BoundsChecker, the tool detected following memory leaks.
> "mspace->space_statistic" not disposed correctly while EIOffice run.
> The issue also reproduced while HWA run.
> Here is stack trace:
> Memory Leak allocated by malloc.
> mspace_initialize c:\home\os\hy2\trunk\working_vm\vm\gc_gen\src\mark_compact\mspace.cpp 72
> line 72: mspace->space_statistic = (Space_Statistics*)STD_MALLOC(sizeof(Space_Statistics));
> gc_mos_initialize c:\home\os\hy2\trunk\working_vm\vm\gc_gen\src\gen\gen.cpp 315
> gc_gen_initialize c:\home\os\hy2\trunk\working_vm\vm\gc_gen\src\gen\gen.cpp 223
> gc_init c:\home\os\hy2\trunk\working_vm\vm\gc_gen\src\common\gc_for_vm.cpp 102
> vm_init1 c:\home\os\hy2\trunk\working_vm\vm\vmcore\src\init\vm_init.cpp 789
> JNI_CreateJavaVM c:\home\os\hy2\trunk\working_vm\vm\vmcore\src\jni\jni.cpp 499
> vmdlldir_parseCmdLine C:\home\os\hy2\trunk\working_vm\build\win_ia32_msvc_debug\deploy\jdk\jre\bin\java.exe!0x0000011d
> gpProtectedMain C:\home\os\hy2\trunk\working_vm\build\win_ia32_msvc_debug\deploy\jdk\jre\bin\java.exe!0x000007ed
> main C:\home\os\hy2\trunk\working_vm\build\win_ia32_msvc_debug\deploy\jdk\jre\bin\java.exe!0x000000b3
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-5344) [drlvm][gc] memory leak at
mspace_initialize at mspace.cpp while EIOffice run
Posted by "Ilya Leviev (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ilya Leviev updated HARMONY-5344:
---------------------------------
Attachment: HARMONY-5344.patch
> [drlvm][gc] memory leak at mspace_initialize at mspace.cpp while EIOffice run
> -----------------------------------------------------------------------------
>
> Key: HARMONY-5344
> URL: https://issues.apache.org/jira/browse/HARMONY-5344
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Environment: win32
> Reporter: Ilya Leviev
> Attachments: HARMONY-5344.patch
>
>
> memory leak at mspace_initialize at mspace.cpp while EIOffice run
> svn = r605216
> While profiling a simple EIOffice application on Harmony using
> BoundsChecker, the tool detected following memory leaks.
> "mspace->space_statistic" not disposed correctly while EIOffice run.
> The issue also reproduced while HWA run.
> Here is stack trace:
> Memory Leak allocated by malloc.
> mspace_initialize c:\home\os\hy2\trunk\working_vm\vm\gc_gen\src\mark_compact\mspace.cpp 72
> line 72: mspace->space_statistic = (Space_Statistics*)STD_MALLOC(sizeof(Space_Statistics));
> gc_mos_initialize c:\home\os\hy2\trunk\working_vm\vm\gc_gen\src\gen\gen.cpp 315
> gc_gen_initialize c:\home\os\hy2\trunk\working_vm\vm\gc_gen\src\gen\gen.cpp 223
> gc_init c:\home\os\hy2\trunk\working_vm\vm\gc_gen\src\common\gc_for_vm.cpp 102
> vm_init1 c:\home\os\hy2\trunk\working_vm\vm\vmcore\src\init\vm_init.cpp 789
> JNI_CreateJavaVM c:\home\os\hy2\trunk\working_vm\vm\vmcore\src\jni\jni.cpp 499
> vmdlldir_parseCmdLine C:\home\os\hy2\trunk\working_vm\build\win_ia32_msvc_debug\deploy\jdk\jre\bin\java.exe!0x0000011d
> gpProtectedMain C:\home\os\hy2\trunk\working_vm\build\win_ia32_msvc_debug\deploy\jdk\jre\bin\java.exe!0x000007ed
> main C:\home\os\hy2\trunk\working_vm\build\win_ia32_msvc_debug\deploy\jdk\jre\bin\java.exe!0x000000b3
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.