Index: vm/vmcore/src/jit/jit_runtime_support.cpp =================================================================== --- vm/vmcore/src/jit/jit_runtime_support.cpp (revision 583448) +++ vm/vmcore/src/jit/jit_runtime_support.cpp (working copy) @@ -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