You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by ar...@apache.org on 2006/05/23 18:08:50 UTC

svn commit: r408953 - /incubator/harmony/enhanced/jchevm/libjc/gc_scan.c

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