harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r583507 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/jit_runtime_support.cpp
Date Wed, 10 Oct 2007 15:13:27 GMT
Author: gshimansky
Date: Wed Oct 10 08:13:27 2007
New Revision: 583507

URL: http://svn.apache.org/viewvc?rev=583507&view=rev
Log:
Applied patch from HARMONY-4882
[drlvm][vmcore] vm throws an assertion when array size is big


Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/jit_runtime_support.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/jit_runtime_support.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/jit_runtime_support.cpp?rev=583507&r1=583506&r2=583507&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/jit_runtime_support.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/jit_runtime_support.cpp Wed Oct 10 08:13:27
2007
@@ -3300,8 +3300,8 @@
     c->instanceof_slow_path_taken();
 #endif
 
-    // managed null is NULL too
-    if (obj == NULL) {
+    ManagedObject *null_ref = (ManagedObject *)VM_Global_State::loader_env->managed_null;
+    if (obj == null_ref) {
 #ifdef VM_STATS
         VM_Statistics::get_vm_stats().num_instanceof_null++;
 #endif



Mime
View raw message