harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Leviev (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5363) [drlvm][classloader] memory leak, apr_pool are not disposed correctly while HWA run
Date Mon, 31 Dec 2007 18:28:42 GMT
[drlvm][classloader] memory leak, apr_pool are not disposed correctly while HWA run 
------------------------------------------------------------------------------------

                 Key: HARMONY-5363
                 URL: https://issues.apache.org/jira/browse/HARMONY-5363
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Ilya Leviev


memory leak, apr_pool are not disposed correctly while HWA run 

svn = r607443

While profiling a simple HWA on Harmony using 
BoundsChecker, the tool detected following memory leaks. 


apr_pool are not disposed correctly while HWA run. 

Here is stack trace: 

Memory Leak allocated by malloc


allocator_alloc	c:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\semis\extra\apr\src\memory\unix\apr_pools.c
300

      if ((node = malloc(size)) == NULL)

apr_palloc	c:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\semis\extra\apr\src\memory\unix\apr_pools.c
616
apr_pollset_create	c:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\semis\extra\apr\src\poll\unix\select.c
202
apr_file_open	c:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\semis\extra\apr\src\file_io\win32\open.c
406
resolve_ident	c:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\semis\extra\apr\src\file_io\win32\filestat.c
160
apr_stat	c:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\semis\extra\apr\src\file_io\win32\filestat.c
485
SetBCPElement	c:\home\hy\1\trunk\working_vm\vm\vmcore\src\class_support\classloader.cpp	1164

line 1164: if(apr_stat(&finfo, new_path->bytes, APR_FINFO_SIZE, tmp_pool) != APR_SUCCESS)
{

SetClasspathFromString	c:\home\hy\1\trunk\working_vm\vm\vmcore\src\class_support\classloader.cpp
1142
Initialize	c:\home\hy\1\trunk\working_vm\vm\vmcore\src\class_support\classloader.cpp	1471
bootstrap_initial_java_classes	c:\home\hy\1\trunk\working_vm\vm\vmcore\src\init\vm_init.cpp
358
preload_classes	c:\home\hy\1\trunk\working_vm\vm\vmcore\src\init\vm_init.cpp	400
vm_init1	c:\home\hy\1\trunk\working_vm\vm\vmcore\src\init\vm_init.cpp	835


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


Mime
View raw message