[vmkit-commits] [vmkit] r95520 - /vmkit/trunk/lib/J3/Classpath/ClasspathVMSystem.inc
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Sun Feb 7 05:34:25 PST 2010
Author: geoffray
Date: Sun Feb 7 07:34:25 2010
New Revision: 95520
URL: http://llvm.org/viewvc/llvm-project?rev=95520&view=rev
Log:
Return hash code 0 for NULL.
Modified:
vmkit/trunk/lib/J3/Classpath/ClasspathVMSystem.inc
Modified: vmkit/trunk/lib/J3/Classpath/ClasspathVMSystem.inc
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/J3/Classpath/ClasspathVMSystem.inc?rev=95520&r1=95519&r2=95520&view=diff
==============================================================================
--- vmkit/trunk/lib/J3/Classpath/ClasspathVMSystem.inc (original)
+++ vmkit/trunk/lib/J3/Classpath/ClasspathVMSystem.inc Sun Feb 7 07:34:25 2010
@@ -109,6 +109,7 @@
JavaObject* obj) {
llvm_gcroot(obj, 0);
+ if (obj == NULL) return 0;
return obj->hashCode();
}
More information about the vmkit-commits
mailing list