harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arc...@apache.org
Subject svn commit: r408953 - /incubator/harmony/enhanced/jchevm/libjc/gc_scan.c
Date Tue, 23 May 2006 16:08:50 GMT
Author: archie
Date: Tue May 23 09:08:50 2006
New Revision: 408953

URL: http://svn.apache.org/viewvc?rev=408953&view=rev
Log:
Fix bug in r408937.

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

Modified: incubator/harmony/enhanced/jchevm/libjc/gc_scan.c
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/jchevm/libjc/gc_scan.c?rev=408953&r1=408952&r2=408953&view=diff
==============================================================================
--- incubator/harmony/enhanced/jchevm/libjc/gc_scan.c (original)
+++ incubator/harmony/enhanced/jchevm/libjc/gc_scan.c Tue May 23 09:08:50 2006
@@ -246,8 +246,9 @@
 				_JC_ASSERT(!_JC_NATIVE_REF_IS_FREE(frame, i));
 
 				/* If not keepable, clear the reference */
-				if (!_JC_LW_TEST(obj->lockword, KEEP))
-					_JC_NATIVE_REF_MARK_FREE(frame, i);
+				if (obj != NULL
+				    && !_JC_LW_TEST(obj->lockword, KEEP))
+					frame->refs[i] = NULL;
 			}
 		}
 	}



Mime
View raw message