harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r487596 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class.cpp
Date Fri, 15 Dec 2006 16:56:46 GMT
Author: gshimansky
Date: Fri Dec 15 08:56:45 2006
New Revision: 487596

URL: http://svn.apache.org/viewvc?view=rev&rev=487596
Log:
Applied HARMONY-2657 [drlvm] Memory leak for elements of CodeChunkInfo::_target_exception_handlers
arrays.

Tests passed on Ubuntu6 x86, WindowsXP and SuSE9 x86_64


Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class.cpp?view=diff&rev=487596&r1=487595&r2=487596
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class.cpp Fri Dec 15 08:56:45
2006
@@ -640,6 +640,12 @@
         VM_Global_State::loader_env->vm_methods->remove(jit_info);
         // ensure that jit_info was deleted
         assert (!VM_Global_State::loader_env->vm_methods->find(jit_info->get_code_block_addr()));
+
+        for(unsigned k = 0; k < jit_info->_num_target_exception_handlers; k++) {
+            delete jit_info->_target_exception_handlers[k];
+            jit_info->_target_exception_handlers[k] = NULL;
+        }
+        jit_info->_target_exception_handlers = NULL;
     }
 
     if (_notify_recompiled_records != NULL)



Mime
View raw message