You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Pavel Pervov (JIRA)" <ji...@apache.org> on 2008/03/18 09:07:24 UTC

[jira] Commented: (HARMONY-5364) [drlvm][jit]memory leak at init_helper_map at rt_helper_info.cpp while HWA run

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

Pavel Pervov commented on HARMONY-5364:
---------------------------------------

Statics are not memory leak in general. When the module is unloaded, destructors for statics are executed. This is most likely peculiarity of the tool that expects that upon exiting "main" all data allocated during execution of main should be freed.

Anyway, fixing HARMONY-5505 I'm making this map environment local and its content will be cleared during DestroyJavaVM. I'll update this JIRA as soon as HARMONY-5505 will be fixed.

> [drlvm][jit]memory leak at init_helper_map at rt_helper_info.cpp  while HWA run 
> --------------------------------------------------------------------------------
>
>                 Key: HARMONY-5364
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5364
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Ilya Leviev
>            Assignee: Pavel Pervov
>
> memory leak at init_helper_map at rt_helper_info.cpp  while HWA run 
> svn = r607443
> While profiling a simple HWA on Harmony using 
> BoundsChecker, the tool detected following memory leaks. 
> HelperInfoMap are not disposed correctly while HWA run. 
> Here is stack trace: 
> 1)
> Memory Leak allocated by global_operator_new
> Allocation Call Stack - Thread 0 [0x0590]
> _Tree_nod<class std::_Tmap_traitsstruct JIT_RT_Function_Entry *> >,0> >::_Node>	c:\program files\microsoft visual studio .net 2003\vc7\include\xmemory	34
> _Tree_nod<class std::_Tmap_traits<enum VM_RT_SUPPORT,struct JIT_RT_Function_Entry 	c:\program files\microsoft visual studio .net 2003\vc7\include\xmemory	137
> _Tree<class std::_Tmap_traits<enum VM_RT_SUPPORT,struct JIT_RT_Function_Entry... 	c:\program files\microsoft visual studio .net 2003\vc7\include\xtree	1131
> _Tree<class std::_Tmap_traits<enum VM_RT_SUPPORT,struct JIT_RT_Function_Entry... ::_Insert	c:\program files\microsoft visual studio .net 2003\vc7\include\xtree	915
> pair<class std::_Tree<class std::_Tmap_traits<enum VM_RT_SUPPORT,struct JIT_RT_Function_Entry ..>::in	c:\program files\microsoft visual studio .net 2003\vc7\include\xtree	501
> init_helper_map	c:\home\hy\1\trunk\working_vm\vm\vmcore\src\jit\rt_helper_info.cpp	282
>  line 282:  map->insert(HelperInfoMap::value_type(hid, jit_rt_function_entries + i));
> $E1	c:\home\hy\1\trunk\working_vm\vm\vmcore\src\jit\rt_helper_info.cpp	288
>  line 288: static HelperInfoMap *helper_map = init_helper_map();
> _initterm	f:\vs70builds\3077\vc\crtbld\crt\src\crt0dat.c	599
> _CRT_INIT	f:\vs70builds\3077\vc\crtbld\crt\src\crtdll.c	184
> _DllMainCRTStartup	f:\vs70builds\3077\vc\crtbld\crt\src\crtdll.c	266
> 2) 
> Memory Leak allocated by global_operator_new.
> init_helper_map	c:\home\hy\1\trunk\working_vm\vm\vmcore\src\jit\rt_helper_info.cpp	278
>  line 278: HelperInfoMap *map = new HelperInfoMap();
> $E1	c:\home\hy\1\trunk\working_vm\vm\vmcore\src\jit\rt_helper_info.cpp	288
> _initterm	f:\vs70builds\3077\vc\crtbld\crt\src\crt0dat.c	599
> _CRT_INIT	f:\vs70builds\3077\vc\crtbld\crt\src\crtdll.c	184
> _DllMainCRTStartup	f:\vs70builds\3077\vc\crtbld\crt\src\crtdll.c	266

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