Index: vm/vmcore/src/jit/jit_runtime_support.cpp =================================================================== --- vm/vmcore/src/jit/jit_runtime_support.cpp (revision 543458) +++ vm/vmcore/src/jit/jit_runtime_support.cpp (working copy) @@ -349,6 +349,7 @@ // General stats update static void rth_type_test_update_stats(VTable* sub, Class* super) { + UNSAFE_REGION_START VM_Statistics::get_vm_stats().num_type_checks ++; if (sub->clss == super) VM_Statistics::get_vm_stats().num_type_checks_equal_type ++; @@ -360,6 +361,7 @@ VM_Statistics::get_vm_stats().num_type_checks_super_is_interface ++; else if (super->get_depth() >= vm_max_fast_instanceof_depth()) VM_Statistics::get_vm_stats().num_type_checks_super_is_too_deep ++; + UNSAFE_REGION_END } // Checkcast stats update @@ -382,6 +384,7 @@ // Instanceof stats update static void rth_update_instanceof_stats(ManagedObject* o, Class* super) { + UNSAFE_REGION_START VM_Statistics::get_vm_stats().num_instanceof++; super->instanceof_slow_path_taken(); if (o == (ManagedObject*)VM_Global_State::loader_env->managed_null) { @@ -393,6 +396,7 @@ VM_Statistics::get_vm_stats().num_instanceof_fast_decision ++; rth_type_test_update_stats(o->vt(), super); } + UNSAFE_REGION_END } #endif // VM_STATS