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-5365) [drlvm][classloader] memory leaks at Initialize and InsertClass at classloader.cpp while HWA run
Date Mon, 31 Dec 2007 19:11:43 GMT
[drlvm][classloader] memory leaks at Initialize and InsertClass at classloader.cpp  while HWA
run 
--------------------------------------------------------------------------------------------------

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


memory leak at Initialize and InsertClass at classloader.cpp  while HWA run 

svn = r607443

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


m_initiatedClasses are not disposed correctly while HWA run. 

Here is stack trace: 

1)
Memory Leak allocated by global_operator_new

_Allocate<struct std::_Tree_nod<class std:: >::_Node>	c:\program files\microsoft
visual studio .net 2003\vc7\include\xmemory	34
allocator<struct std::_Tree_nod<class std::::_Node>::allocate	c:\program files\microsoft
visual studio .net 2003\vc7\include\xmemory	137
_Tree<class std::_Tmap_traits<struct>::_Buynode	c:\program files\microsoft visual
studio .net 2003\vc7\include\xtree	1131
_Tree<class std::_Tmap_traits<struct  >::_Insert	c:\program files\microsoft visual
studio .net 2003\vc7\include\xtree	915
_Tree<class std::_Tmap_traits<struct ::insert	c:\program files\microsoft visual studio
.net 2003\vc7\include\xtree	501
Insert	c:\home\hy\1\trunk\working_vm\vm\vmcore\include\hashtable.h	264

InsertClass	c:\home\hy\1\trunk\working_vm\vm\vmcore\src\class_support\classloader.cpp	1748

   line 1748: m_initiatedClasses->Insert(clss->get_name(), clss);

DefineClass	c:\home\hy\1\trunk\working_vm\vm\vmcore\src\class_support\classloader.cpp	329
LoadFromJarFile	c:\home\hy\1\trunk\working_vm\vm\vmcore\src\class_support\classloader.cpp
1925
LoadFromFile	c:\home\hy\1\trunk\working_vm\vm\vmcore\src\class_support\classloader.cpp	1821
DoLoadClass	c:\home\hy\1\trunk\working_vm\vm\vmcore\src\class_support\classloader.cpp	1546
LoadClass	c:\home\hy\1\trunk\working_vm\vm\vmcore\src\class_support\classloader.cpp	1501


2)

Memory Leak  allocated by global_operator_new.

Initialize	c:\home\hy\1\trunk\working_vm\vm\vmcore\src\class_support\classloader.cpp	80

line 80:  m_initiatedClasses = new ClassTable();

Initialize	c:\home\hy\1\trunk\working_vm\vm\vmcore\src\class_support\classloader.cpp	1349
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
JNI_CreateJavaVM	c:\home\hy\1\trunk\working_vm\vm\vmcore\src\jni\jni.cpp	499
	C:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\deploy\jdk\jre\bin\java.exe!0x0000228d

	C:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\deploy\jdk\jre\bin\java.exe!0x00001b2d

main	C:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\deploy\jdk\jre\bin\java.exe!0x000000b3

	C:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\deploy\jdk\jre\bin\java.exe!0x000045b4

	C:\WINDOWS\system32\kernel32.dll!0x00016ff4	



-- 
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