harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arc...@apache.org
Subject svn commit: r381407 - /incubator/harmony/enhanced/jchevm/libjc/vm.c
Date Mon, 27 Feb 2006 18:43:06 GMT
Author: archie
Date: Mon Feb 27 10:43:03 2006
New Revision: 381407

URL: http://svn.apache.org/viewcvs?rev=381407&view=rev
Log:
Fix bug where vm->vm_destruction was not being initialized.

Modified:
    incubator/harmony/enhanced/jchevm/libjc/vm.c

Modified: incubator/harmony/enhanced/jchevm/libjc/vm.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/jchevm/libjc/vm.c?rev=381407&r1=381406&r2=381407&view=diff
==============================================================================
--- incubator/harmony/enhanced/jchevm/libjc/vm.c (original)
+++ incubator/harmony/enhanced/jchevm/libjc/vm.c Mon Feb 27 10:43:03 2006
@@ -84,8 +84,11 @@
 		goto pfail1;
 	if (_jc_cond_init(env, &vm->all_halted) != JNI_OK)
 		goto pfail2;
+	if (_jc_cond_init(env, &vm->vm_destruction) != JNI_OK)
+		goto pfail3;
 	if (_jc_cond_init(env, &vm->world_restarted) != JNI_OK) {
-		_jc_cond_destroy(&vm->all_halted);
+		_jc_cond_destroy(&vm->vm_destruction);
+pfail3:		_jc_cond_destroy(&vm->all_halted);
 pfail2:		_jc_mutex_destroy(&vm->mutex);
 pfail1:		_jc_vm_free(&vm);
 		vm = &temp_vm;
@@ -331,6 +334,7 @@
 	_jc_mutex_destroy(&vm->mutex);
 	_jc_cond_destroy(&vm->all_halted);
 	_jc_cond_destroy(&vm->world_restarted);
+	_jc_cond_destroy(&vm->vm_destruction);
 
 	/* Free the heap */
 	_jc_heap_destroy(vm);



Mime
View raw message