harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arc...@apache.org
Subject svn commit: r355965 - /incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/class_loader.c
Date Sun, 11 Dec 2005 16:45:16 GMT
Author: archie
Date: Sun Dec 11 08:45:13 2005
New Revision: 355965

URL: http://svn.apache.org/viewcvs?rev=355965&view=rev
Log:
Update a comment and simplify code slightly.

Modified:
    incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/class_loader.c

Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/class_loader.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/class_loader.c?rev=355965&r1=355964&r2=355965&view=diff
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/class_loader.c (original)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/class_loader.c Sun
Dec 11 08:45:13 2005
@@ -203,14 +203,7 @@
 	/* Unload associated native libraries */
 	_jc_unload_native_libraries(vm, loader);
 
-	/*
-	 * Walk the tree of classes defined by this loader
-	 * and for each class:
-	 *
-	 * 1. Remove the class' methods from the method tree
-	 * 2. Unreference class and dependencies from VM class file tree
-	 * 3. Destroy any associated ELF linking information
-	 */
+	/* Free non-class loader memory associated with each type */
 	while (loader->defined_types.size > 0) {
 		_jc_type *type;
 
@@ -219,12 +212,9 @@
 		type = _JC_NODE2ITEM(&loader->defined_types,
 		    loader->defined_types.root);
 
-		/* The following stuff does not apply to array types */
-		if (_JC_FLG_TEST(type, ARRAY))
-			goto remove_type;
-
-		/* Free supers info (unresolved ELF types) */
-		_jc_vm_free(&type->u.nonarray.supers);
+		/* Free any temporary superclass info (non-array types only) */
+		if (!_JC_FLG_TEST(type, ARRAY))
+			_jc_vm_free(&type->u.nonarray.supers);
 
 remove_type:
 		/* Remove this type from the tree */



Mime
View raw message